|
@@ -13,16 +13,16 @@
|
|
|
<view style="margin-top: 10px;" class="justify-between align-center">
|
|
<view style="margin-top: 10px;" class="justify-between align-center">
|
|
|
<u-search placeholder="搜索微信名称、手机、标签" v-model="keyword" :showAction="false" height="30px"
|
|
<u-search placeholder="搜索微信名称、手机、标签" v-model="keyword" :showAction="false" height="30px"
|
|
|
@search='searchKeyword'></u-search>
|
|
@search='searchKeyword'></u-search>
|
|
|
- <view v-if="current==1" class="fs24 ml20" @click="blackSel()">{{!isShowSelectAll?'批量管理':'取消批量'}}
|
|
|
|
|
|
|
+ <view v-if="current!==0 " class="fs24 ml20" @click="blackSel()">{{!isShowSelectAll?'批量管理':'取消批量'}}
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="x-bc" v-if="current==0">
|
|
<view class="x-bc" v-if="current==0">
|
|
|
<u-tabs :list="list2" :current='currentType' :lineWidth="40" lineColor="#1677ff"
|
|
<u-tabs :list="list2" :current='currentType' :lineWidth="40" lineColor="#1677ff"
|
|
|
:activeStyle="activeStyle" :inactiveStyle="inactiveStyle" @click="clickTypeTab"></u-tabs>
|
|
:activeStyle="activeStyle" :inactiveStyle="inactiveStyle" @click="clickTypeTab"></u-tabs>
|
|
|
<view class="participate-order x-f">
|
|
<view class="participate-order x-f">
|
|
|
- <image src="https://fbylive.obs.cn-southwest-2.myhuaweicloud.com/app/images/order_icon2.png"
|
|
|
|
|
|
|
+ <image :src="imgPath+'/app/images/order_icon2.png'"
|
|
|
mode="aspectFill" v-if="searchTypeIndex == 0 || searchTypeIndex == 2"></image>
|
|
mode="aspectFill" v-if="searchTypeIndex == 0 || searchTypeIndex == 2"></image>
|
|
|
- <image src="https://fbylive.obs.cn-southwest-2.myhuaweicloud.com/app/images/order_icon.png"
|
|
|
|
|
|
|
+ <image :src="imgPath+'/app/images/order_icon.png'"
|
|
|
mode="aspectFill" v-else></image>
|
|
mode="aspectFill" v-else></image>
|
|
|
<picker @change="bindPickerChange" :value="searchTypeIndex" :range="typeArray">
|
|
<picker @change="bindPickerChange" :value="searchTypeIndex" :range="typeArray">
|
|
|
{{typeoption[searchTypeIndex]}}
|
|
{{typeoption[searchTypeIndex]}}
|
|
@@ -97,6 +97,16 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view v-if="filterData[searchbarNav].type == 'project'">
|
|
|
|
|
+ <view class="boxnav x-bc">
|
|
|
|
|
+ <view class="boxnav-item" v-for="(item,index) in filterData[searchbarNav].option"
|
|
|
|
|
+ :key="index">
|
|
|
|
|
+ <view class="boxnav-item-info one-t"
|
|
|
|
|
+ :class="projectStatusIndex == index ? 'boxnav-active':''"
|
|
|
|
|
+ @click="handleParamItem('project',index,item.id)">{{item.label}}</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
</dropdownPanel>
|
|
</dropdownPanel>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -185,7 +195,7 @@
|
|
|
@confirm='singleChangeLable' ></u-picker> -->
|
|
@confirm='singleChangeLable' ></u-picker> -->
|
|
|
<u-popup :show="showTagSelect" @close='closetagselect' :closeOnClickOverlay='true' mode="bottom"
|
|
<u-popup :show="showTagSelect" @close='closetagselect' :closeOnClickOverlay='true' mode="bottom"
|
|
|
style="z-index: 999;">
|
|
style="z-index: 999;">
|
|
|
- <view class=" w100 bgf">
|
|
|
|
|
|
|
+ <view class=" w100 bgf pb120">
|
|
|
<view class="plr28 ptb16 justify-between" style="flex-direction: row-reverse">
|
|
<view class="plr28 ptb16 justify-between" style="flex-direction: row-reverse">
|
|
|
<u-icon class="" name="close-circle" color="#ccc" size="24" @click="closetagselect"></u-icon>
|
|
<u-icon class="" name="close-circle" color="#ccc" size="24" @click="closetagselect"></u-icon>
|
|
|
</view>
|
|
</view>
|
|
@@ -216,11 +226,23 @@
|
|
|
</view>
|
|
</view>
|
|
|
</u-popup>
|
|
</u-popup>
|
|
|
<view class="invite-member" :style="{right:vipInviteshow?'-72rpx':'20rpx'}">
|
|
<view class="invite-member" :style="{right:vipInviteshow?'-72rpx':'20rpx'}">
|
|
|
- <image src="https://fbylive.obs.cn-southwest-2.myhuaweicloud.com/app/images/invite-member-icon.png"
|
|
|
|
|
|
|
+ <image :src="imgPath+'/app/images/invite-member-icon.png'"
|
|
|
mode="aspectFill" @click="vipInvite" style="position: relative;" class="intimg"> </image>
|
|
mode="aspectFill" @click="vipInvite" style="position: relative;" class="intimg"> </image>
|
|
|
- <image src='https://fbylive.obs.cn-southwest-2.myhuaweicloud.com/app/image/tc_close_icon.png'
|
|
|
|
|
|
|
+ <image :src="imgPath+'/app/image/tc_close_icon.png'"
|
|
|
class="falseimg" @click="showinimg"></image>
|
|
class="falseimg" @click="showinimg"></image>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <u-popup :show="projectbox" :round="12" @close="projectbox = false" :zIndex="10074" style="flex: 0;">
|
|
|
|
|
+ <view class="pb120">
|
|
|
|
|
+ <view class="center bold fs32 mt30">选择项目</view>
|
|
|
|
|
+ <view class="p20 justify-start mb60" style="flex-wrap: wrap">
|
|
|
|
|
+ <view class="plr16 ptb8 u-border mlr10 radius8 " :class="projectId==item.dictValue?'probgsel':'probg'"
|
|
|
|
|
+ v-for="(item,index) in projectList" :key="index" @click="selproject(item)">
|
|
|
|
|
+ {{item.dictLabel}}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="quedingpro" @click="submitPro">确定</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </u-popup>
|
|
|
<!-- 邀请弹窗 -->
|
|
<!-- 邀请弹窗 -->
|
|
|
<u-popup :show="invitePop" :round="12" @close="invitePop = false" :zIndex="10074" style="flex: 0;">
|
|
<u-popup :show="invitePop" :round="12" @close="invitePop = false" :zIndex="10074" style="flex: 0;">
|
|
|
<view class="popbox">
|
|
<view class="popbox">
|
|
@@ -257,26 +279,26 @@
|
|
|
style="text-align: center;">
|
|
style="text-align: center;">
|
|
|
<!--#endif-->
|
|
<!--#endif-->
|
|
|
<image
|
|
<image
|
|
|
- src="https://fbylive.obs.cn-southwest-2.myhuaweicloud.com/app/images/card_icon.png"
|
|
|
|
|
|
|
+ :src="imgPath+'/app/images/card_icon.png'"
|
|
|
mode="aspectFill" style="width: 80rpx; height: 80rpx;margin-top: 20rpx;">
|
|
mode="aspectFill" style="width: 80rpx; height: 80rpx;margin-top: 20rpx;">
|
|
|
</image>
|
|
</image>
|
|
|
<view style="font-weight: bold;margin-bottom: 4px;">生成卡片</view>
|
|
<view style="font-weight: bold;margin-bottom: 4px;">生成卡片</view>
|
|
|
<view style="font-size: 12px;color: #888;">指导分享轻松转发</view>
|
|
<view style="font-size: 12px;color: #888;">指导分享轻松转发</view>
|
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
|
- <button open-type="share" class="share">分享卡片</button>
|
|
|
|
|
|
|
+ <button open-type="share" class="share" >分享卡片</button>
|
|
|
<!-- #endif -->
|
|
<!-- #endif -->
|
|
|
</view>
|
|
</view>
|
|
|
<!--#ifdef H5-->
|
|
<!--#ifdef H5-->
|
|
|
<view class="sharePop-item y-f " @click="buildimg" style="text-align: center;">
|
|
<view class="sharePop-item y-f " @click="buildimg" style="text-align: center;">
|
|
|
<image
|
|
<image
|
|
|
- src="https://fbylive.obs.cn-southwest-2.myhuaweicloud.com/app/images/poster_icon.png"
|
|
|
|
|
|
|
+ :src="imgPath+'/app/images/poster_icon.png'"
|
|
|
mode="aspectFill"></image>
|
|
mode="aspectFill"></image>
|
|
|
<view style="font-weight: bold;margin-bottom: 4px;">生成海报</view>
|
|
<view style="font-weight: bold;margin-bottom: 4px;">生成海报</view>
|
|
|
<view style="font-size: 12px;color: #888;">保存海报美观宣传</view>
|
|
<view style="font-size: 12px;color: #888;">保存海报美观宣传</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="sharePop-item y-f " @click="copyLink" style="text-align: center;">
|
|
<view class="sharePop-item y-f " @click="copyLink" style="text-align: center;">
|
|
|
<image
|
|
<image
|
|
|
- src="https://fbylive.obs.cn-southwest-2.myhuaweicloud.com/app/images/link_icon.png"
|
|
|
|
|
|
|
+ :src="imgPath+'/app/images/link_icon.png'"
|
|
|
mode="aspectFill"></image>
|
|
mode="aspectFill"></image>
|
|
|
<view style="font-weight: bold;margin-bottom: 4px;">复制链接</view>
|
|
<view style="font-weight: bold;margin-bottom: 4px;">复制链接</view>
|
|
|
<view style="font-size: 12px;color: #888; ">生成链接一键复制</view>
|
|
<view style="font-size: 12px;color: #888; ">生成链接一键复制</view>
|
|
@@ -303,7 +325,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="justify-around mb40">
|
|
<view class="justify-around mb40">
|
|
|
<view class="column justify-center align-center" @click="downimg">
|
|
<view class="column justify-center align-center" @click="downimg">
|
|
|
- <image src='https://fbylive.obs.cn-southwest-2.myhuaweicloud.com/app/image/downicon.png'
|
|
|
|
|
|
|
+ <image :src="imgPath+'/app/image/downicon.png'"
|
|
|
class="w80 h80"></image>
|
|
class="w80 h80"></image>
|
|
|
<view class="mt10">长按图片保存</view>
|
|
<view class="mt10">长按图片保存</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -313,13 +335,13 @@
|
|
|
<u-overlay :show="showzhidao" @click="showzhidao = false" style="z-index: 9999;">
|
|
<u-overlay :show="showzhidao" @click="showzhidao = false" style="z-index: 9999;">
|
|
|
<view class="point-box">
|
|
<view class="point-box">
|
|
|
<view class="imgshe">
|
|
<view class="imgshe">
|
|
|
- <image src='https://fbylive.obs.cn-southwest-2.myhuaweicloud.com/app/image/point.png'
|
|
|
|
|
|
|
+ <image :src="imgPath+'/app/image/point.png'"
|
|
|
class="w300 h300"></image>
|
|
class="w300 h300"></image>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="column colorf fs32 xu-box fs40
|
|
<view class="column colorf fs32 xu-box fs40
|
|
|
align-center justify-center">
|
|
align-center justify-center">
|
|
|
<view class="justify-center">点击右上角
|
|
<view class="justify-center">点击右上角
|
|
|
- <image src="https://fbylive.obs.cn-southwest-2.myhuaweicloud.com/app/image/wxmore.png"
|
|
|
|
|
|
|
+ <image :src="imgPath+'/app/image/wxmore.png'"
|
|
|
class="w50 h50 mlr10"></image>
|
|
class="w50 h50 mlr10"></image>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="mt20">选择 “转发给朋友”</view>
|
|
<view class="mt20">选择 “转发给朋友”</view>
|
|
@@ -349,6 +371,7 @@
|
|
|
removebalcklist,
|
|
removebalcklist,
|
|
|
getallTags
|
|
getallTags
|
|
|
} from "@/api/courseManage.js";
|
|
} from "@/api/courseManage.js";
|
|
|
|
|
+ import {getprojectlist} from "@/api/user.js"
|
|
|
import vipUserItem from "@/components/vipUserItem.vue"
|
|
import vipUserItem from "@/components/vipUserItem.vue"
|
|
|
import dropdownPanel from "@/components/dropdownPanel.vue"
|
|
import dropdownPanel from "@/components/dropdownPanel.vue"
|
|
|
import wx from 'weixin-js-sdk'
|
|
import wx from 'weixin-js-sdk'
|
|
@@ -368,7 +391,11 @@
|
|
|
|
|
|
|
|
}, {
|
|
}, {
|
|
|
name: '小黑屋(0)'
|
|
name: '小黑屋(0)'
|
|
|
- }],
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '黑名单(0)'
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
userList: [],
|
|
userList: [],
|
|
|
current: 0,
|
|
current: 0,
|
|
|
keyword: "",
|
|
keyword: "",
|
|
@@ -460,8 +487,17 @@
|
|
|
}]
|
|
}]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- name: '批量',
|
|
|
|
|
|
|
+ name: '项目',
|
|
|
value: 4,
|
|
value: 4,
|
|
|
|
|
+ type: 'project',
|
|
|
|
|
+ option: [{
|
|
|
|
|
+ label: '全部',
|
|
|
|
|
+ id: ''
|
|
|
|
|
+ }]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '批量',
|
|
|
|
|
+ value: 5,
|
|
|
type: 'piliang',
|
|
type: 'piliang',
|
|
|
special: true,
|
|
special: true,
|
|
|
stopPrevent: true
|
|
stopPrevent: true
|
|
@@ -472,6 +508,8 @@
|
|
|
registerTimeIndex: 0,
|
|
registerTimeIndex: 0,
|
|
|
watchStatusIndex: 0,
|
|
watchStatusIndex: 0,
|
|
|
courseStatusIndex: 0,
|
|
courseStatusIndex: 0,
|
|
|
|
|
+ projectStatusIndex: 0,
|
|
|
|
|
+ selprojectId:'',
|
|
|
showCalendar: false,
|
|
showCalendar: false,
|
|
|
date: '',
|
|
date: '',
|
|
|
mode: 'range',
|
|
mode: 'range',
|
|
@@ -529,8 +567,8 @@
|
|
|
zhanshitag: '',
|
|
zhanshitag: '',
|
|
|
copyLinks: '',
|
|
copyLinks: '',
|
|
|
showzhidao: false,
|
|
showzhidao: false,
|
|
|
- imgs: this.$store.state.imgpath+'/app/image/logo.png',
|
|
|
|
|
- currentIsBlack: false,
|
|
|
|
|
|
|
+ imgs: this.$store.state.imgpath+'/app/image/logoshare.png',
|
|
|
|
|
+ currentIsBlack: 1,
|
|
|
tagpageNum: 1,
|
|
tagpageNum: 1,
|
|
|
tagpageSize: 16,
|
|
tagpageSize: 16,
|
|
|
triggereds: false,
|
|
triggereds: false,
|
|
@@ -548,7 +586,10 @@
|
|
|
pagetagA: [],
|
|
pagetagA: [],
|
|
|
tops: '464rpx',
|
|
tops: '464rpx',
|
|
|
showInvite: false,
|
|
showInvite: false,
|
|
|
- vipInviteshow: false
|
|
|
|
|
|
|
+ vipInviteshow: false,
|
|
|
|
|
+ projectbox:false,
|
|
|
|
|
+ projectList:{},
|
|
|
|
|
+ projectId:''
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad() {
|
|
onLoad() {
|
|
@@ -558,15 +599,15 @@
|
|
|
menus: ['shareAppMessage']
|
|
menus: ['shareAppMessage']
|
|
|
});
|
|
});
|
|
|
// #endif
|
|
// #endif
|
|
|
|
|
+ this.getsalelist()
|
|
|
|
|
+ this.getprojectlistsA()
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
|
// #ifdef H5
|
|
// #ifdef H5
|
|
|
this.getjssdklist()
|
|
this.getjssdklist()
|
|
|
// #endif
|
|
// #endif
|
|
|
- this.user = uni.getStorageSync("companyUserInfo") ? JSON.parse(uni.getStorageSync("companyUserInfo")) : {}
|
|
|
|
|
- this.getcompanyTag()
|
|
|
|
|
|
|
+ this.user = uni.getStorageSync("companyUserInfo") ? JSON.parse(uni.getStorageSync("companyUserInfo")) : {},
|
|
|
this.getvipListnum()
|
|
this.getvipListnum()
|
|
|
- this.getsalelist()
|
|
|
|
|
this.userList = []
|
|
this.userList = []
|
|
|
this.getfsuserListdata()
|
|
this.getfsuserListdata()
|
|
|
},
|
|
},
|
|
@@ -574,8 +615,8 @@
|
|
|
onShareAppMessage() {
|
|
onShareAppMessage() {
|
|
|
return {
|
|
return {
|
|
|
title:this.$store.state.logoname+'小程序的'+this.user.userName + '邀请您成为会员!',
|
|
title:this.$store.state.logoname+'小程序的'+this.user.userName + '邀请您成为会员!',
|
|
|
- path: '/pages/user/users/becomeVIP?companyId=' +
|
|
|
|
|
- this.user.companyId + '&companyUserId=' + this.user.userId + '&tagids=' + this.sharetaglist,
|
|
|
|
|
|
|
+ path: '/pages/user/users/becomeVIP?companyId=' +this.user.companyId+'&projectId='+this.projectId
|
|
|
|
|
+ + '&companyUserId=' + this.user.userId + '&tagids=' + this.sharetaglist,
|
|
|
imageUrl: this.imgs,
|
|
imageUrl: this.imgs,
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -590,8 +631,74 @@
|
|
|
selectedCount() {
|
|
selectedCount() {
|
|
|
return this.userList.filter(item => item.checked).length;
|
|
return this.userList.filter(item => item.checked).length;
|
|
|
},
|
|
},
|
|
|
|
|
+ imgPath() {
|
|
|
|
|
+ return this.$store.state.imgpath
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ submitPro(){
|
|
|
|
|
+ if(this.projectId==''){
|
|
|
|
|
+ uni.showToast({
|
|
|
|
|
+ title: '请选择项目',
|
|
|
|
|
+ icon: 'none',
|
|
|
|
|
+ duration: 1000
|
|
|
|
|
+ });
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ this.projectbox=false
|
|
|
|
|
+ this.invitePop = true
|
|
|
|
|
+ },
|
|
|
|
|
+ selproject(item){
|
|
|
|
|
+ this.projectId=item.dictValue
|
|
|
|
|
+ },
|
|
|
|
|
+ getprojectlistsA(){
|
|
|
|
|
+ const oldlist = this.filterData[4].option
|
|
|
|
|
+ const data={
|
|
|
|
|
+ key:'sys_course_project'
|
|
|
|
|
+ }
|
|
|
|
|
+ getprojectlist(data).then(res=>{
|
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
|
+ const list = res.data
|
|
|
|
|
+ this.filterData[4].option = oldlist.concat(list.map(item => {
|
|
|
|
|
+ return {
|
|
|
|
|
+ id: item.dictValue,
|
|
|
|
|
+ label: item.dictLabel
|
|
|
|
|
+ };
|
|
|
|
|
+ }));
|
|
|
|
|
+ console.log('1212121212',this.filterData[4].option)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ uni.showToast({
|
|
|
|
|
+ title: res.msg,
|
|
|
|
|
+ icon: 'none',
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ getprojectlists(){
|
|
|
|
|
+ const data={
|
|
|
|
|
+ key:'sys_course_project'
|
|
|
|
|
+ }
|
|
|
|
|
+ getprojectlist(data).then(res=>{
|
|
|
|
|
+ // this.projectList=res.data
|
|
|
|
|
+ this.projectList = res.data.map(item => {
|
|
|
|
|
+ return {
|
|
|
|
|
+ ...item,
|
|
|
|
|
+ checked: false,
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ console.log(this.projectList)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ sharecard(){
|
|
|
|
|
+ console.log(11)
|
|
|
|
|
+ // if(this.projectId==null){
|
|
|
|
|
+ // uni.showToast({
|
|
|
|
|
+ // title: '请选择项目',
|
|
|
|
|
+ // icon: 'none',
|
|
|
|
|
+ // duration: 1000
|
|
|
|
|
+ // });
|
|
|
|
|
+ // }
|
|
|
|
|
+ },
|
|
|
changetagall() {
|
|
changetagall() {
|
|
|
this.showTagSelect = !this.showTagSelect
|
|
this.showTagSelect = !this.showTagSelect
|
|
|
this.tagchangekeywords = ''
|
|
this.tagchangekeywords = ''
|
|
@@ -650,7 +757,7 @@
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
this.pageOptions.pageNum = 1
|
|
this.pageOptions.pageNum = 1
|
|
|
// console.log(this.pageOptions.pageNum)
|
|
// console.log(this.pageOptions.pageNum)
|
|
|
- this.getfsuserListdata()
|
|
|
|
|
|
|
+ this.getfsuserListdata('refresh')
|
|
|
// 创建一个在**秒后执行的定时器
|
|
// 创建一个在**秒后执行的定时器
|
|
|
const timer = setTimeout(function() {
|
|
const timer = setTimeout(function() {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
@@ -660,6 +767,7 @@
|
|
|
}, 200);
|
|
}, 200);
|
|
|
this.getvipListnum()
|
|
this.getvipListnum()
|
|
|
this.isShowSelectAll = false
|
|
this.isShowSelectAll = false
|
|
|
|
|
+ this.isSelectAll=false
|
|
|
} else {
|
|
} else {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
icon: 'none',
|
|
icon: 'none',
|
|
@@ -688,6 +796,7 @@
|
|
|
label: item.nickName
|
|
label: item.nickName
|
|
|
};
|
|
};
|
|
|
}));
|
|
}));
|
|
|
|
|
+ console.log(78787878,this.filterData[0].option)
|
|
|
} else {
|
|
} else {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
title: res.msg,
|
|
title: res.msg,
|
|
@@ -695,7 +804,6 @@
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
getTagpage(type) {
|
|
getTagpage(type) {
|
|
|
if (type == 'last') {
|
|
if (type == 'last') {
|
|
@@ -859,7 +967,8 @@
|
|
|
getvipNum().then(res => {
|
|
getvipNum().then(res => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
this.list[0].name = "会员" + '(' + res.data.number + ')'
|
|
this.list[0].name = "会员" + '(' + res.data.number + ')'
|
|
|
- this.list[1].name = "小黑屋" + '(' + res.data.blackNum + ')'
|
|
|
|
|
|
|
+ this.list[1].name = "小黑屋" + '(' + res.data.smallBlackNum + ')'
|
|
|
|
|
+ this.list[2].name = "黑名单" + '(' + res.data.blackNum + ')'
|
|
|
} else {
|
|
} else {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
icon: 'none',
|
|
icon: 'none',
|
|
@@ -869,7 +978,7 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
getactNav(data) {
|
|
getactNav(data) {
|
|
|
- if (data.value == 4) {
|
|
|
|
|
|
|
+ if (data.value == 5) {
|
|
|
this.itemname = data.name
|
|
this.itemname = data.name
|
|
|
this.isShowSelectAll = !this.isShowSelectAll
|
|
this.isShowSelectAll = !this.isShowSelectAll
|
|
|
} else {
|
|
} else {
|
|
@@ -955,18 +1064,19 @@
|
|
|
//改标签选择按钮
|
|
//改标签选择按钮
|
|
|
const params = {
|
|
const params = {
|
|
|
tagIds: this.selectidtag,
|
|
tagIds: this.selectidtag,
|
|
|
- fsUserIds: this.selectidAll
|
|
|
|
|
|
|
+ userCompanyUserIds: this.selectidAll
|
|
|
}
|
|
}
|
|
|
changeLable(params).then(res => {
|
|
changeLable(params).then(res => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
this.userList = []
|
|
this.userList = []
|
|
|
- this.getfsuserListdata()
|
|
|
|
|
|
|
+ this.getfsuserListdata("refresh")
|
|
|
const timer = setTimeout(function() {
|
|
const timer = setTimeout(function() {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
icon: 'none',
|
|
icon: 'none',
|
|
|
title: '标签更改成功'
|
|
title: '标签更改成功'
|
|
|
})
|
|
})
|
|
|
}, 500);
|
|
}, 500);
|
|
|
|
|
+ this.isSelectAll=false
|
|
|
} else {
|
|
} else {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
icon: 'none',
|
|
icon: 'none',
|
|
@@ -1023,14 +1133,14 @@
|
|
|
registerEndTime: this.endTime, //注册结束
|
|
registerEndTime: this.endTime, //注册结束
|
|
|
watchCourseType: this.watchStatusIndex,
|
|
watchCourseType: this.watchStatusIndex,
|
|
|
missCourseStatus: this.courseStatusIndex,
|
|
missCourseStatus: this.courseStatusIndex,
|
|
|
|
|
+ projectId:this.selprojectId,
|
|
|
keyword: this.keyword,
|
|
keyword: this.keyword,
|
|
|
tagIds: this.idx,
|
|
tagIds: this.idx,
|
|
|
- isBlack: this.currentIsBlack,
|
|
|
|
|
|
|
+ status: this.currentIsBlack,
|
|
|
companyUserId: this.salesid,
|
|
companyUserId: this.salesid,
|
|
|
continueMissCourseSort: this.searchTypeIndex,
|
|
continueMissCourseSort: this.searchTypeIndex,
|
|
|
...this.pageOptions
|
|
...this.pageOptions
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
getfsuserList(param).then(res => {
|
|
getfsuserList(param).then(res => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
let dataList = res.data.list.map(item => {
|
|
let dataList = res.data.list.map(item => {
|
|
@@ -1060,11 +1170,13 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
onChange(index) {
|
|
onChange(index) {
|
|
|
- if (index == 4) return
|
|
|
|
|
|
|
+ if (index == 5) return
|
|
|
this.searchbarNav = index
|
|
this.searchbarNav = index
|
|
|
},
|
|
},
|
|
|
searchKeyword(value) {
|
|
searchKeyword(value) {
|
|
|
this.keyword = value
|
|
this.keyword = value
|
|
|
|
|
+ this.userList = []
|
|
|
|
|
+ this.pageOptions.pageNum=1
|
|
|
this.getfsuserListdata()
|
|
this.getfsuserListdata()
|
|
|
},
|
|
},
|
|
|
singleChange(data) {
|
|
singleChange(data) {
|
|
@@ -1084,7 +1196,7 @@
|
|
|
Addblacklist(this.selectidAll).then(res => {
|
|
Addblacklist(this.selectidAll).then(res => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
this.pageOptions.pageNum = 1
|
|
this.pageOptions.pageNum = 1
|
|
|
- this.getfsuserListdata()
|
|
|
|
|
|
|
+ this.getfsuserListdata('refresh')
|
|
|
// 创建一个在**秒后执行的定时器
|
|
// 创建一个在**秒后执行的定时器
|
|
|
const timer = setTimeout(function() {
|
|
const timer = setTimeout(function() {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
@@ -1093,7 +1205,8 @@
|
|
|
})
|
|
})
|
|
|
}, 200);
|
|
}, 200);
|
|
|
this.getvipListnum()
|
|
this.getvipListnum()
|
|
|
- this.isShowSelectAll = false
|
|
|
|
|
|
|
+ // this.isShowSelectAll = false
|
|
|
|
|
+ this.isSelectAll=false
|
|
|
} else {
|
|
} else {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
icon: 'none',
|
|
icon: 'none',
|
|
@@ -1115,7 +1228,7 @@
|
|
|
checked: this.isSelectAll
|
|
checked: this.isSelectAll
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- this.selectidAll = this.userList.filter(item => item.checked).map(item => item.userId)
|
|
|
|
|
|
|
+ this.selectidAll = this.userList.filter(item => item.checked).map(item => item.userCompanyUserId)
|
|
|
console.log(this.isSelectAll)
|
|
console.log(this.isSelectAll)
|
|
|
},
|
|
},
|
|
|
// 单选 /反选
|
|
// 单选 /反选
|
|
@@ -1126,7 +1239,7 @@
|
|
|
checked: !this.userList[i].checked
|
|
checked: !this.userList[i].checked
|
|
|
}
|
|
}
|
|
|
this.$set(this.userList, i, arr)
|
|
this.$set(this.userList, i, arr)
|
|
|
- this.selectidAll = this.userList.filter(item => item.checked).map(item => item.userId)
|
|
|
|
|
|
|
+ this.selectidAll = this.userList.filter(item => item.checked).map(item => item.userCompanyUserId)
|
|
|
console.log(this.selectidAll)
|
|
console.log(this.selectidAll)
|
|
|
this.isSelectAll = this.userList.every(item => item.checked)
|
|
this.isSelectAll = this.userList.every(item => item.checked)
|
|
|
if (this.isSelectAll) {
|
|
if (this.isSelectAll) {
|
|
@@ -1137,29 +1250,34 @@
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
- this.selectidAll = this.userList.filter(item => item.checked).map(item => item.userId)
|
|
|
|
|
|
|
+ this.selectidAll = this.userList.filter(item => item.checked).map(item => item.userCompanyUserId)
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
reset() {
|
|
reset() {
|
|
|
//重置时间选择等筛选
|
|
//重置时间选择等筛选
|
|
|
const type = this.filterData[this.searchbarNav].type
|
|
const type = this.filterData[this.searchbarNav].type
|
|
|
console.log(this.registerTimeIndex)
|
|
console.log(this.registerTimeIndex)
|
|
|
|
|
+ this.pageOptions.pageNum = 1
|
|
|
if (type == 'registerTime') {
|
|
if (type == 'registerTime') {
|
|
|
this.registerTimeIndex = ''
|
|
this.registerTimeIndex = ''
|
|
|
this.endTime = ''
|
|
this.endTime = ''
|
|
|
this.startTime = ''
|
|
this.startTime = ''
|
|
|
- this.getfsuserListdata()
|
|
|
|
|
|
|
+ this.getfsuserListdata("refresh")
|
|
|
// console.log(this.getfsuserListdata())
|
|
// console.log(this.getfsuserListdata())
|
|
|
} else if (type == 'watchStatus') {
|
|
} else if (type == 'watchStatus') {
|
|
|
this.watchStatusIndex = 0
|
|
this.watchStatusIndex = 0
|
|
|
- this.getfsuserListdata()
|
|
|
|
|
|
|
+ this.getfsuserListdata("refresh")
|
|
|
} else if (type == 'userStatus') {
|
|
} else if (type == 'userStatus') {
|
|
|
this.userStatusIndex = 0
|
|
this.userStatusIndex = 0
|
|
|
this.salesid = ''
|
|
this.salesid = ''
|
|
|
- this.getfsuserListdata()
|
|
|
|
|
|
|
+ this.getfsuserListdata("refresh")
|
|
|
} else if (type == 'courseStatus') {
|
|
} else if (type == 'courseStatus') {
|
|
|
this.courseStatusIndex = 0
|
|
this.courseStatusIndex = 0
|
|
|
- this.getfsuserListdata()
|
|
|
|
|
|
|
+ this.getfsuserListdata("refresh")
|
|
|
|
|
+ }else if (type == 'project') {
|
|
|
|
|
+ this.selprojectId=''
|
|
|
|
|
+ this.projectStatusIndex = 0
|
|
|
|
|
+ this.getfsuserListdata("refresh")
|
|
|
} else {
|
|
} else {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -1209,6 +1327,14 @@
|
|
|
} else if (type == 'courseStatus') {
|
|
} else if (type == 'courseStatus') {
|
|
|
this.getfsuserListdata()
|
|
this.getfsuserListdata()
|
|
|
console.log(this.courseStatusIndex)
|
|
console.log(this.courseStatusIndex)
|
|
|
|
|
+ }else if (type == 'project') {
|
|
|
|
|
+ if (this.projectStatusIndex == 0) {
|
|
|
|
|
+ this.selprojectId = ''
|
|
|
|
|
+ this.getfsuserListdata()
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.getfsuserListdata()
|
|
|
|
|
+ }
|
|
|
|
|
+ console.log(this.projectStatusIndex)
|
|
|
}
|
|
}
|
|
|
// this.mescroll.resetUpScroll()
|
|
// this.mescroll.resetUpScroll()
|
|
|
},
|
|
},
|
|
@@ -1225,6 +1351,9 @@
|
|
|
console.log(this.salesid)
|
|
console.log(this.salesid)
|
|
|
} else if (type == 'courseStatus') {
|
|
} else if (type == 'courseStatus') {
|
|
|
this.courseStatusIndex = index
|
|
this.courseStatusIndex = index
|
|
|
|
|
+ }else if (type == 'project') {
|
|
|
|
|
+ this.selprojectId =id
|
|
|
|
|
+ this.projectStatusIndex = index
|
|
|
} else {
|
|
} else {
|
|
|
this.ispopshow = false
|
|
this.ispopshow = false
|
|
|
}
|
|
}
|
|
@@ -1236,6 +1365,7 @@
|
|
|
this.endTime = '' //注册结束
|
|
this.endTime = '' //注册结束
|
|
|
this.watchStatusIndex = 0
|
|
this.watchStatusIndex = 0
|
|
|
this.salesid = ''
|
|
this.salesid = ''
|
|
|
|
|
+ this.selprojectId = ''
|
|
|
this.courseStatusIndex = 0
|
|
this.courseStatusIndex = 0
|
|
|
this.keyword = ''
|
|
this.keyword = ''
|
|
|
this.idx = []
|
|
this.idx = []
|
|
@@ -1243,11 +1373,15 @@
|
|
|
this.isShowSelectAll = false
|
|
this.isShowSelectAll = false
|
|
|
this.userList = []
|
|
this.userList = []
|
|
|
if (index == 0) {
|
|
if (index == 0) {
|
|
|
- this.currentIsBlack = false
|
|
|
|
|
- this.getfsuserListdata()
|
|
|
|
|
- } else {
|
|
|
|
|
- this.currentIsBlack = true
|
|
|
|
|
- this.getfsuserListdata()
|
|
|
|
|
|
|
+ // 0小黑屋 1正常 2拉黑
|
|
|
|
|
+ this.currentIsBlack = 1
|
|
|
|
|
+ this.getfsuserListdata("refresh")
|
|
|
|
|
+ } else if(index == 1) {
|
|
|
|
|
+ this.currentIsBlack = 0
|
|
|
|
|
+ this.getfsuserListdata("refresh")
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.currentIsBlack = 2
|
|
|
|
|
+ this.getfsuserListdata("refresh")
|
|
|
}
|
|
}
|
|
|
this.getvipListnum()
|
|
this.getvipListnum()
|
|
|
},
|
|
},
|
|
@@ -1268,7 +1402,9 @@
|
|
|
this.popTitle = type == 'search' ? '搜索选择' : type == 'tag' ? '标签筛选' : ''
|
|
this.popTitle = type == 'search' ? '搜索选择' : type == 'tag' ? '标签筛选' : ''
|
|
|
this.typeIndex = this.queryParam.typeIndex
|
|
this.typeIndex = this.queryParam.typeIndex
|
|
|
this.showPop = true
|
|
this.showPop = true
|
|
|
- if (type == 'tag') {}
|
|
|
|
|
|
|
+ if (type == 'tag') {
|
|
|
|
|
+ this.getcompanyTag()
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
closePop() {
|
|
closePop() {
|
|
|
this.showPop = false
|
|
this.showPop = false
|
|
@@ -1325,7 +1461,10 @@
|
|
|
},
|
|
},
|
|
|
vipInvite() {
|
|
vipInvite() {
|
|
|
if (!this.vipInviteshow) {
|
|
if (!this.vipInviteshow) {
|
|
|
- this.invitePop = true
|
|
|
|
|
|
|
+ this.getprojectlists()
|
|
|
|
|
+ // this.invitePop = true
|
|
|
|
|
+ this.projectId=''
|
|
|
|
|
+ this.projectbox=true
|
|
|
this.sharetaglist = null
|
|
this.sharetaglist = null
|
|
|
this.getlink('preload')
|
|
this.getlink('preload')
|
|
|
this.getjssdklist()
|
|
this.getjssdklist()
|
|
@@ -1357,10 +1496,9 @@
|
|
|
const param = {
|
|
const param = {
|
|
|
companyId: this.user.companyId,
|
|
companyId: this.user.companyId,
|
|
|
companyUserId: this.user.userId,
|
|
companyUserId: this.user.userId,
|
|
|
- realLink: url + '#/pages/user/users/becomeVIP' + '?companyId=' +
|
|
|
|
|
- this.user.companyId + '&companyUserId=' + this.user.userId + '&tagids=' + this.sharetaglist,
|
|
|
|
|
|
|
+ realLink: url + '#/pages/user/users/becomeVIP?companyId='+this.user.companyId + '&projectId='+this.projectId+
|
|
|
|
|
+ '&companyUserId=' + this.user.userId + '&tagids=' + this.sharetaglist,
|
|
|
tagIds: this.sharetaglist,
|
|
tagIds: this.sharetaglist,
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
becomeVipuserImg(param).then(res => {
|
|
becomeVipuserImg(param).then(res => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
@@ -1385,8 +1523,9 @@
|
|
|
}
|
|
}
|
|
|
const url = window.location.href.split('#')[0]
|
|
const url = window.location.href.split('#')[0]
|
|
|
// console.log(url)
|
|
// console.log(url)
|
|
|
- this.copyLinks = url + '#/pages/user/users/becomeVIP' + '?companyId=' +
|
|
|
|
|
- this.user.companyId + '&companyUserId=' + this.user.userId + '&tagids=' + this.sharetaglist
|
|
|
|
|
|
|
+ this.copyLinks = url + '#/pages/user/users/becomeVIP?companyId='+this.user.companyId +
|
|
|
|
|
+ '&projectId='+this.projectId+'&companyUserId=' + this.user.userId + '&tagids=' + this.sharetaglist
|
|
|
|
|
+ console.log('iddd',this.user.companyId)
|
|
|
},
|
|
},
|
|
|
getshareLink() {
|
|
getshareLink() {
|
|
|
//生成链接
|
|
//生成链接
|
|
@@ -1400,8 +1539,8 @@
|
|
|
}
|
|
}
|
|
|
const url = window.location.href.split('#')[0]
|
|
const url = window.location.href.split('#')[0]
|
|
|
console.log(url)
|
|
console.log(url)
|
|
|
- this.copyLinks = url + '#/pages/user/users/becomeVIP' + '?companyId=' +
|
|
|
|
|
- this.user.companyId + '&companyUserId=' + this.user.userId + '&tagids=' + this.sharetaglist
|
|
|
|
|
|
|
+ this.copyLinks = url + '#/pages/user/users/becomeVIP' + '?companyId='+this.user.companyId +'&projectId='+this.projectId+
|
|
|
|
|
+ '&companyUserId=' + this.user.userId + '&tagids=' + this.sharetaglist
|
|
|
console.log(this.copyLinks)
|
|
console.log(this.copyLinks)
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
uni.setClipboardData({
|
|
uni.setClipboardData({
|
|
@@ -1444,6 +1583,25 @@
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
|
|
+ .probg{
|
|
|
|
|
+ color: #666;
|
|
|
|
|
+ }
|
|
|
|
|
+ .probgsel{
|
|
|
|
|
+ background-color: #1677ff;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ border: none;
|
|
|
|
|
+ }
|
|
|
|
|
+ .quedingpro{
|
|
|
|
|
+ background-color: #1677ff;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ border-radius: 80rpx;
|
|
|
|
|
+ height: 80rpx;
|
|
|
|
|
+ line-height: 80rpx;
|
|
|
|
|
+ width: 60%;
|
|
|
|
|
+ margin: 0 auto;
|
|
|
|
|
+ margin-top: 40rpx;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ }
|
|
|
.card-share {
|
|
.card-share {
|
|
|
position: relative;
|
|
position: relative;
|
|
|
}
|
|
}
|
|
@@ -1597,7 +1755,7 @@
|
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
color: #333;
|
|
color: #333;
|
|
|
-
|
|
|
|
|
|
|
+ padding-bottom: 120rpx;
|
|
|
&-head {
|
|
&-head {
|
|
|
padding: 15px;
|
|
padding: 15px;
|
|
|
font-weight: bold;
|
|
font-weight: bold;
|