12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760 |
- <template>
- <view class="container column hb">
- <view class="headbox">
- <view style="padding: 10px 10px 0 10px;" class="mb20">
- <view>
- <u-subsection class="subsection" :list="list" :current="current" bgColor="#e7f1fe"
- activeColor="#1677ff" :fontSize="15" :bold="false" @change="sectionChange"></u-subsection>
- </view>
- <!-- <view style="width: 70%;">
- <u-subsection class="subsection" :list="list" :current="current" bgColor="#e7f1fe" activeColor="#1677ff"
- :fontSize="15" :bold="false" @change="sectionChange" ></u-subsection>
- </view> -->
- <view style="margin-top: 10px;" class="justify-between align-center">
- <u-search placeholder="搜索微信名称、手机、标签" v-model="keyword" :showAction="false" height="30px"
- @search='searchKeyword'></u-search>
- <view v-if="current==1" class="fs24 ml20" @click="blackSel()">{{!isShowSelectAll?'批量管理':'取消批量'}}
- </view>
- </view>
- <view class="x-bc" v-if="current==0">
- <u-tabs :list="list2" :current='currentType' :lineWidth="40" lineColor="#1677ff"
- :activeStyle="activeStyle" :inactiveStyle="inactiveStyle" @click="clickTypeTab"></u-tabs>
- <view class="participate-order x-f">
- <image src="@/static/images/order_icon2.png" mode="aspectFill"
- v-if="searchTypeIndex == 0 || searchTypeIndex == 2"></image>
- <image src="@/static/images/order_icon.png" mode="aspectFill" v-else></image>
- <picker @change="bindPickerChange" :value="searchTypeIndex" :range="typeArray">
- {{typeoption[searchTypeIndex]}}
- </picker>
- </view>
- </view>
- <view class="tagbox x-bc" v-if="current==0">
- <view class="tagbox-left x-f">
- <!-- <view class="x-f" @click="openPop('search')">{{array[queryParam.typeIndex].name}}<u-icon name="arrow-down-fill" color="#2979ff" size="11" style="margin: 0 3px;"></u-icon></view> -->
- <view v-if="showCompanytag.length<=0" style="color: #888;" class="ml30">请点击筛选,选择标签</view>
- <view class="tagbox-list x-f">
- <view class="tagbox-item x-f" v-for="(item,index) in showCompanytag" :key='item.tagId'
- :class="item.checked?'checked-bg':''">
- {{item.tagName}}
- </view>
- </view>
- </view>
- <view class="tagbox-right x-f" @click="openPop('tag')">筛选<u-icon name="arrow-down" color="#1677ff"
- size="12"></u-icon></view>
- </view>
- </view>
- <view v-if="current==0">
- <dropdownPanel :filterData='filterData' @onClick="getactNav" :itemname='itemname' @onChange="onChange"
- @confirm="confirm" @reset="reset" :ispopshow='ispopshow' :top="tops">
- <view v-if="filterData[searchbarNav].type == 'userStatus'">
- <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="userStatusIndex == index ? 'boxnav-active':''"
- @click="handleParamItem('userStatus',index,item.id)">{{item.label}}</view>
- </view>
- </view>
- </view>
- <view v-if="filterData[searchbarNav].type == 'registerTime'">
- <view class="boxnav x-bc ">
- <view class="boxnav-item" style="width: 25%;"
- v-for="(item,index) in filterData[searchbarNav].option" :key="index">
- <view class="boxnav-item-info one-t"
- :class="registerTimeIndex == index ? 'boxnav-active':''"
- @click="handleParamItem('registerTime',index)">{{item.label}}</view>
- </view>
- <view class="boxnav-item x-ac" style="width: 100%;" v-show="registerTimeIndex == 4">
- <view class="calendar-day x-c" @click="$refs.calendar.open()">
- <u-icon name="calendar" color="#999"
- size="20"></u-icon>{{queryParam.startTime || '选择日期'}}
- </view>
- <view class="calendar-day x-c" @click="$refs.calendar.open()">
- <u-icon name="calendar" color="#999"
- size="20"></u-icon>{{queryParam.endTime || '选择日期'}}
- </view>
- </view>
- </view>
- </view>
- <view v-if="filterData[searchbarNav].type == 'watchStatus'">
- <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="watchStatusIndex == index ? 'boxnav-active':''"
- @click="handleParamItem('watchStatus',index)">{{item.label}}</view>
- </view>
- </view>
- </view>
- <view v-if="filterData[searchbarNav].type == 'courseStatus'">
- <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="courseStatusIndex == index ? 'boxnav-active':''"
- @click="handleParamItem('courseStatus',index)">{{item.label}}</view>
- </view>
- </view>
- </view>
- </dropdownPanel>
- </view>
- </view>
- <uni-calendar ref="calendar" :clear-date="true" :date="date" :insert="false" :lunar="false"
- :startDate="$u.timeFormat(new Date().getTime() - (3600 * 24 * 365 * 1000), 'yyyy-mm-dd')" :range='true'
- @confirm="confirmCalendar" :endDate="$u.timeFormat(new Date().getTime(), 'yyyy-mm-dd')" />
- <!-- 搜索选择弹窗/标签筛选 -->
- <u-popup :show="showPop" :round="12" @close="closePop" class="model" :zIndex="10076" style="flex: 0;">
- <view class="popbox">
- <view class="popbox-head">
- <u-icon class="close-circle" name="close-circle" color="#ccc" size="24" @click="closePop"></u-icon>
- {{popTitle}}
- </view>
- <view class="popbox-body">
- <view class="radiobox" v-show="popTitle == '搜索选择'">
- <label class="radiobox-item x-bc mbline" v-for="(item, index) in array" :key="item.value"
- @click="bindTypeChange(index)">
- <view>{{item.name}}</view>
- <radio :value="item.value" :checked="index === typeIndex" style="transform:scale(0.75)" />
- </label>
- </view>
- <!-- <input placeholder="请输入标签 多个标签用 , 隔开" /> -->
- <view class="mb20" v-if="current==0">
- <u-search placeholder="请输入标签 多个标签用 , 隔开" v-model="tagkeywords" :showAction="false"
- height="30px" @search='getcompanyTag'></u-search>
- </view>
- <scroll-view scroll-y="true" class="hb" :refresher-enabled="isEnableds"
- :refresher-triggered="triggereds" refresher-background="rgba(0,0,0,0)"
- @refresherrefresh="pullDownRefreshs" @refresherrestore="triggereds = false"
- :upper-threshold="100" :lower-threshold="100" @refresherabort="triggereds = false"
- @scrolltolower="reachBottoms">
- <view class="tagbox-list x-f">
- <view class="tagbox-item x-f tag-active" v-if="companytag.length<=0">暂无标签</view>
- <view class="mlr10 mb10" v-for="(item,index) in companytag" :key='item.tagId'>
- <u-tag :text="item.tagName" :plain="!item.checked" :name="index"
- @click="chooseTag(index)"></u-tag>
- </view>
- </view>
- <view class="center fs24 mt20">
- <text class="mr20" @click="getTagpage('last')">上一页</text>
- <text class="base-color-red">{{pagetag.pageNum}}/{{pagetag.pages}}</text>
- <text class="ml20" @click="getTagpage('next')">下一页</text>
- </view>
- </scroll-view>
- </view>
- <view class="popbox-footer x-bc">
- <button class="popbox-footer-btn" @click="resetPop" v-show="popTitle == '标签筛选'">重置</button>
- <button class="popbox-footer-btn" @click="closePop" v-show="popTitle == '搜索选择'">取消</button>
- <button class="popbox-footer-btn con-btn" @click="confirmPop">确定</button>
- </view>
- </view>
- </u-popup>
- <view class="userbox column hb hidden ">
- <!-- <mescroll-body bottom="0" ref="mescrollRef" @init="mescrollInit" :down="downOption" :up="upOption" @down="downCallback" @up="upCallback"> -->
- <view class="userlist column hb hidden">
- <vipUserItem :viplist='userList' :isShowSelectAll="isShowSelectAll" @changeItem="changeItem"
- @getuserId='singleChange' @getlableId='singleChangeLable' @change='changesinglevip'
- @getuserIds='singleDelete' @pullDownRefresh="getfsuserListdata('refresh')"
- @changelistname="getfsuserListdata('more')" @reachBottom="getfsuserListdata('more')"
- @changePageOptions="e=>pageOptions=e" :pageOptions="pageOptions" :status="status"
- @changeStatus="e=>status=e" class="pb2" />
- <view class="justify-between base-bg-f foot-select" v-if="isShowSelectAll">
- <view class="align-center justify-between" v-if="isShowSelectAll">
- <u-checkbox-group @change="selectAll">
- <u-checkbox :checked="isSelectAll" shape="circle" activeColor="#FF6C47" :name="true"
- label="全选" labelColor="#333" /><text class="fs24 base-color-9 ml12">已选 {{selectedCount}}
- 个</text>
- </u-checkbox-group>
- </view>
- <view class="justify-center ">
- <button class="base-bg-red radius100 colorf h62 fs28 lh62 mlr10" @click="changeProhibit"
- v-if="current==0">禁用</button>
- <button class="base-bg-red radius100 colorf h62 fs28 lh62 mlr10" @click="changeblack"
- v-else>取消禁用</button>
- <button class="base-bg-blue radius100 colorf h62 fs28 lh62" @click="changetagall"
- v-if="current==0">改标签</button>
- <!-- <button class="base-bg-f radius100 base-color-red h62 ml10 fs28 lh60"
- style="border: #ef4c50 solid 2rpx;"
- @click="changevipuser" v-if="current==0">更换归属</button> -->
- </view>
- </view>
- </view>
- <!-- </mescroll-body> -->
- </view>
- <!-- <u-picker :show="showTagSelect" :columns="companytag" keyName="tag" @cancel='showTagSelect=false'
- @confirm='singleChangeLable' ></u-picker> -->
- <u-popup :show="showTagSelect" @close='closetagselect' :closeOnClickOverlay='true' mode="bottom"
- style="z-index: 999;">
- <view class=" w100 bgf">
- <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>
- </view>
- <view class="mb20">
- <u-search placeholder="请输入标签 多个标签用 , 隔开" v-model="tagchangekeywords" :showAction="false"
- height="30px" @search='getcompanyTags'></u-search>
- </view>
- <scroll-view scroll-y="true" class="hb" :refresher-enabled="isEnableds"
- :refresher-triggered="triggeredsA" refresher-background="rgba(0,0,0,0)"
- @refresherrefresh="pullDownRefreshsA" @refresherrestore="triggeredsA = false" :upper-threshold="100"
- :lower-threshold="100" @refresherabort="triggeredsA = false">
- <view class="justify-start p32 wrap">
- <view class="mlr10 mt10 " v-for="(item,index) in changetag" :key='item.tagId'>
- <u-tag :text="item.tag" :plain="!item.checked" :name="index"
- @click="choosechangeTag"></u-tag>
- </view>
- </view>
- <view class="center fs24 mt20">
- <text class="mr20" @click="getTagpageS('last')">上一页</text>
- <text class="base-color-red">{{pagetagA.pageNum}}/{{pagetagA.pages}}</text>
- <text class="ml20" @click="getTagpageS('next')">下一页</text>
- </view>
- </scroll-view>
- <view class="justify-between p32 " :class="isShowSelectAll?'pb120':''">
- <view class="changetagbtn base-bg-f8" @click="showTagSelect=!showTagSelect">取消</view>
- <view class="changetagbtn colorf base-bg-blue" @click="suretagchangeAll">确定</view>
- </view>
- </view>
- </u-popup>
- <view class="invite-member" :style="{right:vipInviteshow?'-72rpx':'20rpx'}">
- <image src="@/static/images/invite-member-icon.png" mode="aspectFill" @click="vipInvite"
- style="position: relative;" class="intimg"> </image>
- <image src='/static/image/tc_close_icon.png' class="falseimg" @click="showinimg"></image>
- </view>
- <!-- 邀请弹窗 -->
- <u-popup :show="invitePop" :round="12" @close="invitePop = false" :zIndex="10074" style="flex: 0;">
- <view class="popbox">
- <view class="popbox-head">
- <u-icon class="close-circle" name="close-circle" color="#ccc" size="24"
- @click="invitePop = false"></u-icon>
- 分享方式
- </view>
- <view class="popbox-body">
- <view class="choosetitle x-bc">
- <view>选择标签</view>
- <view v-if="sharetaglist" style="color:#1677ff" @click="addtag(0)">{{zhanshitag}}</view>
- <view class="x-f" style="color:#1677ff;" v-else @click="addtag(0)">
- <u-icon name="plus" color="#1677ff" size="14" style="margin-right: 5px;"></u-icon>添加标签
- </view>
- </view>
- <view class="invitetip">选择标签,当会员注册成功后,即可自动打标签</view>
- <!-- <view class="tagbox-list x-f" style="margin-top: 10px;margin-left: 0px;">
- <view class="tagbox-item x-f" @click="chooseTag">未打标签</view>
- <view class="tagbox-item x-f tag-active">未打标签</view>
- </view> -->
- <!--#ifdef MP-WEIXIN-->
- <view class="justify-center" style="margin-top: 10px;">
- <!--#endif-->
- <!--#ifdef H5-->
- <view class="justify-center" style="margin-top: 10px;">
- <!--#endif-->
- <!-- <view class="x-bc " style="margin-top: 30px;"> -->
- <!--#ifdef MP-WEIXIN-->
- <view class="sharePop-item y-f " style="text-align: center;">
- <!--#endif-->
- <!--#ifdef H5-->
- <view class="sharePop-item y-f card-share" @click="shareimg" style="text-align: center;">
- <!--#endif-->
- <image src="@/static/images/card_icon.png" mode="aspectFill"
- style="width: 80rpx; height: 80rpx;margin-top: 20rpx;"></image>
- <view style="font-weight: bold;margin-bottom: 4px;">生成卡片</view>
- <view style="font-size: 12px;color: #888;">指导分享轻松转发</view>
- <!-- #ifdef MP-WEIXIN -->
- <button open-type="share" class="share" @click="sharecard()">分享卡片</button>
- <!-- #endif -->
- </view>
- <!--#ifdef H5-->
- <view class="sharePop-item y-f " @click="buildimg" style="text-align: center;">
- <image src="@/static/images/poster_icon.png" mode="aspectFill"></image>
- <view style="font-weight: bold;margin-bottom: 4px;">生成海报</view>
- <view style="font-size: 12px;color: #888;">保存海报美观宣传</view>
- </view>
- <view class="sharePop-item y-f " @click="copyLink" style="text-align: center;">
- <image src="@/static/images/link_icon.png" mode="aspectFill"></image>
- <view style="font-weight: bold;margin-bottom: 4px;">复制链接</view>
- <view style="font-size: 12px;color: #888; ">生成链接一键复制</view>
- </view>
- <!--#endif-->
- </view>
- </view>
- </view>
- </u-popup>
- <!-- 设置链接有效时长弹窗 -->
- <u-modal :show="setTimeShow" content='content' class="model" @confirm="confirmTime">
- <view class="setTimebox">
- <view class="timetip">不传默认以系统参数为准</view>
- <view class="x-f">
- <text style="margin-right: 20px;">链接有效时长(分钟)</text>
- <u-input fontSize="14px" placeholder="链接有效时长" border="none" v-model="time" maxlength="5"></u-input>
- </view>
- </view>
- </u-modal>
- <!-- 长按保存海报 -->
- <u-popup :show="setImg" @close="closeimg" :round="12">
- <view class="w100 h500 center">
- <image :src="codeLink.url" mode="aspectFill"></image>
- </view>
- <view class="justify-around mb40">
- <view class="column justify-center align-center" @click="downimg">
- <image src='@/static/image/downicon.png' class="w80 h80"></image>
- <view class="mt10">长按图片保存</view>
- </view>
- </view>
- </u-popup>
- <!-- 卡片分享引导 -->
- <u-overlay :show="showzhidao" @click="showzhidao = false" style="z-index: 9999;">
- <view class="point-box">
- <view class="imgshe">
- <image src='@/static/image/point.png' class="w300 h300"></image>
- </view>
- <view class="column colorf fs32 xu-box fs40
- align-center justify-center">
- <view class="justify-center">点击右上角
- <image src="@/static/image/wxmore.png" class="w50 h50 mlr10"></image>
- </view>
- <view class="mt20">选择 “转发给朋友”</view>
- <view style="color: #cbcbcb;" class="fs28 mt40">点击任意位置关闭弹窗</view>
- </view>
- </view>
- </u-overlay>
- <!-- 更改归属 -->
- <u-picker :show="showcol" :columns="columns" @cancel='showcol=!showcol' @confirm='receiveA'
- keyName="nickName"></u-picker>
- </view>
- </template>
- <script>
- import {
- getfsuserList,
- getcompanyTaglist,
- Addblacklist,
- changeLable,
- getvipNum,
- changevipUser,
- getgroupList,
- becomeVipuser,
- becomeVipuserImg,
- getSDK,
- getusersales,
- removebalcklist,
- getallTags
- } from "@/api/courseManage.js";
- import vipUserItem from "@/components/vipUserItem.vue"
- import dropdownPanel from "@/components/dropdownPanel.vue"
- import wx from 'weixin-js-sdk'
- export default {
- components: {
- vipUserItem,
- dropdownPanel,
- },
- data() {
- return {
- showcol: false,
- setImg: false,
- columns: [],
- showTagSelect: false,
- list: [{
- name: '会员(0)',
- }, {
- name: '小黑屋(0)'
- }],
- userList: [],
- current: 0,
- keyword: "",
- companytag: [],
- showCompanytag: [],
- selectedList: [], //已经选中标签列表
- list2: [{
- name: '全部',
- }, {
- name: '今日新增',
- }, {
- name: '今日完播'
- }, {
- name: '未看过课'
- }],
- currentType: 0,
- activeStyle: {
- color: '#1677ff',
- fontSize: '14px',
- fontWeight: 'bold'
- },
- inactiveStyle: {
- fontSize: '14px'
- },
- searchTypeIndex: 0,
- typeArray: ['连续缺课天数多到少', '连续缺课天数少到多', '按注册时间晚到早', '会员姓名0-9-A-Z'],
- typeoption: ['连续缺课', '连续缺课', '注册时间', '会员姓名'],
- array: [{
- value: '0',
- name: '关联搜索',
- },
- {
- value: '1',
- name: '精准搜索'
- }
- ],
- typeIndex: 0,
- popTitle: '搜索选择',
- showPop: false,
- filterData: [{
- name: '销售',
- value: 0,
- type: 'userStatus',
- option: [{
- label: '全部',
- id: ''
- }, ]
- },
- {
- name: '注册',
- value: 1,
- type: 'registerTime',
- option: [{
- label: '全部',
- }, {
- label: '今天',
- }, {
- label: '昨天',
- }, {
- label: '近7天',
- }, {
- label: '自定义',
- }]
- }, {
- name: '看课',
- value: 2,
- type: 'watchStatus',
- option: [{
- label: '全部',
- }, {
- label: '未看过课',
- }, {
- label: '正常看课',
- }, {
- label: '停止看课',
- }]
- },
- {
- name: '缺课',
- value: 3,
- type: 'courseStatus',
- option: [{
- label: '全部',
- }, {
- label: '已缺课',
- }, {
- label: '未缺课',
- }]
- },
- {
- name: '批量',
- value: 4,
- type: 'piliang',
- special: true,
- stopPrevent: true
- }
- ],
- searchbarNav: 0,
- userStatusIndex: 0,
- registerTimeIndex: 0,
- watchStatusIndex: 0,
- courseStatusIndex: 0,
- showCalendar: false,
- date: '',
- mode: 'range',
- queryParam: {
- typeIndex: 0,
- startTime: '',
- endTime: ''
- },
- mescroll: null,
- downOption: {
- use: true,
- auto: false
- },
- upOption: {
- onScroll: false,
- use: true, // 是否启用上拉加载; 默认true
- auto: true,
- page: {
- pae: 0, // 当前页码,默认0,回调之前会加1,即callback(page)会从1开始
- size: 10 // 每页数据的数量,默认10
- },
- noMoreSize: 10, // 配置列表的总数量要大于等于5条才显示'-- END --'的提示
- textNoMore: "已经到底了",
- empty: {
- icon: 'https://cos.his.cdwjyyh.com/fs/20240423/cf4a86b913a04341bb44e34bb4d37aa2.png',
- tip: '暂无数据'
- }
- },
- dataList: [],
- invitePop: false,
- setTimeShow: false,
- time: "",
- user: {},
- idx: [],
- todayday: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd'),
- startTime: '',
- endTime: '',
- isShowSelectAll: false, //是否显示全选
- isSelectAll: false, //是否全选
- ispopshow: false,
- selectidAll: [],
- changetag: [],
- selectidtag: '',
- itemname: '',
- userid: '',
- groupid: [],
- pageOptions: {
- pageNum: 1,
- pageSize: 8,
- },
- status: 'loadmore',
- sharetag: 1,
- sharetaglist: [],
- codeLink: [],
- zhanshitag: '',
- copyLinks: '',
- showzhidao: false,
- imgs: 'https://fbylive.obs.cn-southwest-2.myhuaweicloud.com/fs/20250416/1744811256845.png',
- currentIsBlack: false,
- tagpageNum: 1,
- tagpageSize: 16,
- triggereds: false,
- statusA: 'loadmore',
- isEnableds: true,
- pagetag: [],
- tagkeywords: '',
- salesid: '',
- tagchangekeywords: '',
- tagpageNums: 1,
- tagpageSizes: 16,
- triggeredsA: false,
- statusAs: 'loadmore',
- isEnabledsA: true,
- pagetagA: [],
- tops: '464rpx',
- showInvite: false,
- vipInviteshow: false
- }
- },
- onLoad() {
- // #ifdef MP-WEIXIN
- uni.showShareMenu({
- withShareTicket: true,
- menus: ['shareAppMessage']
- });
- // #endif
- },
- onShow() {
- // #ifdef H5
- this.getjssdklist()
- // #endif
- this.user = uni.getStorageSync("companyUserInfo") ? JSON.parse(uni.getStorageSync("companyUserInfo")) : {}
- this.getcompanyTag()
- this.getvipListnum()
- this.getsalelist()
- this.userList=[]
- this.getfsuserListdata()
- },
- mounted() {
- },
- computed: {
- selectedCount() {
- return this.userList.filter(item => item.checked).length;
- },
- },
- methods: {
- sharecard(){
- console.log(123)
- uni.share({
- provider: 'weixin',
- scene: 'WXSceneSession', // 分享到会话
- type: 0,
- title: this.user.userId+'邀请您成为会员!',
- path: '/pages/user/users/becomeVIP?companyId='+
- this.user.companyId + '&companyUserId=' + this.user.userId + '&tagids=' + this.sharetaglist,
- imageUrl: this.imgs,
- success: (res) => {
- console.log('分享成功', res);
- uni.showToast({
- title: '分享成功',
- icon: 'none'
- });
- },
- fail: (err) => {
- console.log('分享失败', err);
- uni.showToast({
- title: '分享失败,请稍后再试',
- icon: 'none'
- });
- }
- });
- },
- changetagall() {
- this.showTagSelect = !this.showTagSelect
- this.tagchangekeywords = ''
- this.selectidtag = ''
- this.showInvite = false
- this.sharetag = 1
- this.getalltagtaglist()
- },
- getTagpageS(type) {
- if (type == 'last') {
- if (this.tagpageNums >= 2) {
- this.tagpageNums--
- this.getalltagtaglist()
- } else {
- uni.showToast({
- title: '已经是第一页',
- icon: 'none',
- duration: 1000
- });
- }
- } else {
- if (this.tagpageNums < this.pagetagA.pages) {
- this.tagpageNums++
- this.getalltagtaglist()
- } else {
- uni.showToast({
- title: '已经是最后一页',
- icon: 'none',
- duration: 1000
- });
- }
- }
- },
- getcompanyTags(value) {
- this.tagchangekeywords = value
- this.getalltagtaglist()
- },
- singleDelete(data) {
- this.pageOptions.pageNum = 1
- this.$emit('update:parentValue', '新值');
- this.userList = []
- this.selectidAll[0] = data
- this.changeblack()
- },
- changeblack() {
- // console.log(this.selectidAll[0])
- //取消禁用
- if (this.selectidAll.length < 1) {
- uni.showToast({
- icon: 'none',
- title: '所选列表为空'
- })
- return
- }
- removebalcklist(this.selectidAll).then(res => {
- if (res.code == 200) {
- this.pageOptions.pageNum = 1
- // console.log(this.pageOptions.pageNum)
- this.getfsuserListdata()
- // 创建一个在**秒后执行的定时器
- const timer = setTimeout(function() {
- uni.showToast({
- icon: 'none',
- title: '取消禁用成功'
- })
- }, 200);
- this.getvipListnum()
- this.isShowSelectAll = false
- } else {
- uni.showToast({
- icon: 'none',
- title: res.msg
- })
- }
- })
- },
- blackSel() {
- this.isShowSelectAll = !this.isShowSelectAll
- // if (data.value == 4) {
- // this.itemname = data.name
- // this.isShowSelectAll = !this.isShowSelectAll
- // } else {
- // this.isShowSelectAll = false
- // }
- },
- getsalelist() {
- const oldlist = this.filterData[0].option
- getusersales().then(res => {
- if (res.code == 200) {
- const list = res.data
- this.filterData[0].option = oldlist.concat(list.map(item => {
- return {
- id: item.userId,
- label: item.nickName
- };
- }));
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none',
- });
- }
- })
- },
- getTagpage(type) {
- if (type == 'last') {
- if (this.tagpageNum >= 2) {
- this.tagpageNum--
- this.getcompanyTag()
- } else {
- uni.showToast({
- title: '已经是第一页',
- icon: 'none',
- duration: 1000
- });
- }
- } else {
- if (this.tagpageNum < this.pagetag.pages) {
- this.tagpageNum++
- this.getcompanyTag()
- } else {
- uni.showToast({
- title: '已经是最后一页',
- icon: 'none',
- duration: 1000
- });
- }
- }
- },
- //标签展示下拉
- pullDownRefreshs() {
- // 下拉
- this.triggereds = true; //下拉了状态为true
- setTimeout(() => {
- this.triggereds = false;
- uni.stopPullDownRefresh()
- this.tagpageNum = 1;
- this.getcompanyTag('refresh') //触底 不穿执行else
- // 请求接口里面需要判断是不是最后一页 是最后一页 status赋值为‘loadmore’没有更多了
- // 请求接口
- }, 1000)
- },
- getjssdklist() {
- const param = {
- url: window.location.href
- }
- getSDK(param).then(res => {
- wx.config({
- appId: res.data.appId, // 必填,公众号的唯一标识
- timestamp: res.data.timestamp, // 必填,生成签名的时间戳
- nonceStr: res.data.nonceStr, // 必填,生成签名的随机串
- signature: res.data.signature, // 必填,签名
- jsApiList: ["updateAppMessageShareData"] // 必填,需要使用的JS接口列表
- });
- })
- },
- shareimg() {
- //分享好友
- this.getlink()
- let self = this
- // 配置--你到时候把配置全局 --就是这些东西 调接口拿
- wx.ready(function() { //需在用户可能点击分享按钮前就先调用
- wx.updateAppMessageShareData({
- title: self.user.userName + "邀请您成为会员", // 分享标题
- desc: self.user.deptName, // 分享描述
- link: self.copyLinks,
- imgUrl: self.codeLink.url || self.imgs, // 分享图标
- success: function(res) {
- self.showzhidao = true
- self.setImg = false
- self.showShare = false
- // 设置成功
- uni.showToast({
- title: '卡片已生成',
- icon: 'none',
- duration: 1000
- });
- },
- fail: function(err) {
- console.log(err);
- uni.showToast({
- title: '卡片生成失败,请重试',
- icon: 'none',
- duration: 2000
- })
- }
- })
- });
- },
- downimg() {},
- closeimg() {
- this.setImg = false
- this.invitePop = false
- },
- buildimg() {
- this.setImg = !this.setImg
- this.getshareimg()
- },
- addtag(add) {
- this.sharetag = add
- this.showTagSelect = !this.showTagSelect
- this.invitePop = !this.invitePop
- this.showInvite = true
- this.getalltagtaglist()
- },
- changevipuser() {
- this.showcol = !this.showcol
- this.getgrouplist()
- },
- getgrouplist() {
- //获取群管列表
- getgroupList().then(res => {
- if (res.code == 200) {
- this.columns = [res.data]
- // console.log(this.columns)
- } else {
- uni.showToast({
- icon: 'none',
- title: res.msg
- })
- }
- })
- },
- changeall() {
- //更换全部会员
- console.log(1)
- const param = {
- companyId: this.user.companyId,
- companyUserId: this.userid,
- userId: this.groupid
- }
- changevipUser(param).then(res => {
- if (res.code == 200) {
- uni.showToast({
- icon: 'none',
- title: '更换会员归属成功'
- })
- } else {
- uni.showToast({
- icon: 'none',
- title: res.msg
- })
- }
- })
- },
- receiveA(e) {
- console.log(e)
- this.userid = e.value[0].userId
- if (this.isShowSelectAll == true) {
- this.groupid = this.selectidAll
- this.changeall()
- this.showcol = !this.showcol
- setTimeout(() => {
- this.getfsuserListdata()
- }, 200)
- } else {
- this.changeall()
- this.showcol = !this.showcol
- this.getfsuserListdata()
- }
- this.isSelectAll = false
- },
- getvipListnum() {
- getvipNum().then(res => {
- if (res.code == 200) {
- this.list[0].name = "会员" + '(' + res.data.number + ')'
- this.list[1].name = "小黑屋" + '(' + res.data.blackNum + ')'
- } else {
- uni.showToast({
- icon: 'none',
- title: res.msg
- })
- }
- })
- },
- getactNav(data) {
- if (data.value == 4) {
- this.itemname = data.name
- this.isShowSelectAll = !this.isShowSelectAll
- } else {
- this.isShowSelectAll = false
- }
- },
- closetagselect() {
- this.showTagSelect = !this.showTagSelect
- },
- suretagchangeAll() {
- if (this.sharetag == 0) {
- this.sharetaglist = this.changetag.filter(item => item.checked).map(v => v.tagId).join(',')
- this.showTagSelect = !this.showTagSelect
- this.zhanshitag = this.changetag.filter(item => item.checked).map(v => v.tag).join(',')
- // console.log(this.sharetaglist)
- } else {
- //多选改标签确认按钮
- this.showTagSelect = !this.showTagSelect
- if (this.selectidAll.length == 0) {
- uni.showToast({
- icon: 'none',
- title: '未选中用户'
- })
- return
- }
- this.selectidtag = this.changetag.filter(item => item.checked).map(v => v.tagId)
- this.changeLabelmore()
- }
- if (this.showInvite) {
- this.invitePop = true
- }
- },
- singleChangeLable(data) {
- this.showTagSelect = !this.showTagSelect
- this.selectidAll[0] = data
- this.tagchangekeywords = ''
- this.selectidtag = []
- this.sharetag = 1
- this.showInvite = false
- this.getalltagtaglist()
- },
- getalltagtaglist(type) {
- //获取公司标签列表
- const data = {
- pageNum: this.tagpageNums,
- pageSize: this.tagpageSizes,
- keyword: this.tagchangekeywords
- }
- getallTags(data).then(res => {
- if (res.code == 200) {
- const dataList = res.data.list.map(item => {
- return {
- ...item,
- checked: false,
- }
- })
- if (type == 'refresh') {
- this.changetag = dataList
- } else {
- this.changetag = dataList
- }
- if (res.data.isLastPage) {
- this.statusAs = 'nomore'
- } else {
- this.statusAs = 'loadmore'
- }
- this.pagetagA = res.data
- } else {
- uni.showToast({
- icon: 'none',
- title: res.msg
- })
- }
- })
- },
- changesinglevip(data) {
- this.showcol = !this.showcol
- // console.log(data)
- this.groupid[0] = data
- this.getgrouplist()
- },
- changeLabelmore() {
- //改标签选择按钮
- const params = {
- tagIds: this.selectidtag,
- fsUserIds: this.selectidAll
- }
- changeLable(params).then(res => {
- if (res.code == 200) {
- this.userList = []
- this.getfsuserListdata()
- const timer = setTimeout(function() {
- uni.showToast({
- icon: 'none',
- title: '标签更改成功'
- })
- }, 500);
- } else {
- uni.showToast({
- icon: 'none',
- title: res.msg
- })
- }
- })
- },
- changeOwnership() {
- //更换归属(经销商功能)
- },
- getcompanyTag(type) {
- this.companytag = []
- this.tagkeywords = this.tagkeywords.replace(/,/g, ',')
- const data = {
- pageNum: this.tagpageNum,
- pageSize: this.tagpageSize,
- keyword: this.tagkeywords
- }
- getcompanyTaglist(data).then(res => {
- if (res.code == 200) {
- // this.showCompanytag = res.data.list
- const dataList = res.data.list.map(item => {
- return {
- ...item,
- checked: false,
- }
- })
- if (type == 'refresh') {
- this.companytag = dataList
- } else {
- this.companytag = [...this.companytag, ...dataList]
- }
- if (res.data.isLastPage) {
- this.statusA = 'nomore'
- } else {
- this.statusA = 'loadmore'
- }
- this.pagetag = res.data
- } else {
- uni.showToast({
- icon: 'none',
- title: res.msg
- })
- }
- })
- },
- getfsuserListdata(type) {
- // this.userList=[]
- const param = {
- userId: this.user.userId,
- tabValue: this.currentType,
- registerStartTime: this.startTime, //注册开始
- registerEndTime: this.endTime, //注册结束
- watchCourseType: this.watchStatusIndex,
- missCourseStatus: this.courseStatusIndex,
- keyword: this.keyword,
- tagIds: this.idx,
- isBlack: this.currentIsBlack,
- companyUserId: this.salesid,
- continueMissCourseSort: this.searchTypeIndex,
- ...this.pageOptions
- }
- getfsuserList(param).then(res => {
- if (res.code == 200) {
- let dataList = res.data.list.map(item => {
- return {
- ...item,
- checked: false,
- }
- })
- if (type == 'refresh') {
- this.userList = dataList
- } else {
- this.userList = [...this.userList, ...dataList]
- }
- if (res.data.isLastPage) {
- this.status = 'nomore'
- } else {
- this.status = 'loadmore'
- }
- } else {
- uni.showToast({
- icon: 'none',
- title: res.msg
- })
- }
- })
- },
- onChange(index) {
- if (index == 4) return
- this.searchbarNav = index
- },
- searchKeyword(value) {
- this.keyword = value
- this.getfsuserListdata()
- },
- singleChange(data) {
- this.userList = []
- this.selectidAll[0] = data
- this.changeProhibit()
- },
- changeProhibit() {
- //批量禁用选择按钮
- if (this.selectidAll.length < 1) {
- uni.showToast({
- icon: 'none',
- title: '所选列表为空'
- })
- return
- }
- Addblacklist(this.selectidAll).then(res => {
- if (res.code == 200) {
- this.pageOptions.pageNum = 1
- this.getfsuserListdata()
- // 创建一个在**秒后执行的定时器
- const timer = setTimeout(function() {
- uni.showToast({
- icon: 'none',
- title: '禁用成功'
- })
- }, 200);
- this.getvipListnum()
- this.isShowSelectAll = false
- } else {
- uni.showToast({
- icon: 'none',
- title: res.msg
- })
- }
- })
- },
- // 全选
- selectAll() {
- // 先设置全选
- this.isSelectAll = !this.isSelectAll
- // 然后设置列表 checked没得this不会报错吗 这是返回新数组
- console.log(this.isSelectAll)
- this.userList = this.userList.map(item => {
- // 每一项的 checked为 全选的状态
- return {
- ...item,
- checked: this.isSelectAll
- }
- })
- this.selectidAll = this.userList.filter(item => item.checked).map(item => item.userId)
- console.log(this.isSelectAll)
- },
- // 单选 /反选
- changeItem(i) {
- let arr = {
- ...this.userList[i],
- checked: !this.userList[i].checked
- }
- this.$set(this.userList, i, arr)
- this.selectidAll = this.userList.filter(item => item.checked).map(item => item.userId)
- console.log(this.selectidAll)
- this.isSelectAll = this.userList.every(item => item.checked)
- if (this.isSelectAll) {
- this.userList = this.userList.map(item => {
- return {
- ...item,
- checked: this.isSelectAll
- }
- })
- }
- this.selectidAll = this.userList.filter(item => item.checked).map(item => item.userId)
- },
- reset() {
- //重置时间选择等筛选
- const type = this.filterData[this.searchbarNav].type
- console.log(this.registerTimeIndex)
- if (type == 'registerTime') {
- this.registerTimeIndex = ''
- this.endTime = ''
- this.startTime = ''
- this.getfsuserListdata()
- // console.log(this.getfsuserListdata())
- } else if (type == 'watchStatus') {
- this.watchStatusIndex = 0
- this.getfsuserListdata()
- } else if (type == 'userStatus') {
- this.userStatusIndex = 0
- this.salesid = ''
- this.getfsuserListdata()
- } else if (type == 'courseStatus') {
- this.courseStatusIndex = 0
- this.getfsuserListdata()
- } else {
- }
- },
- confirm(e) {
- this.pageOptions.pageNum = 1
- this.userList = []
- const type = this.filterData[this.searchbarNav].type
- const value = this.registerTimeIndex
- if (type == 'registerTime') {
- if (value == 0) {
- this.startTime = ''
- this.endTime = ''
- this.getfsuserListdata()
- } else if (value == 1) {
- this.startTime = this.todayday + ' 00:00:00'
- this.endTime = this.todayday + ' 23:59:59'
- this.getfsuserListdata()
- } else if (value == 2) {
- let yesterday = new Date();
- yesterday.setDate(yesterday.getDate() - 1);
- this.startTime = uni.$u.timeFormat(yesterday, 'yyyy-mm-dd') + ' 00:00:00'
- this.endTime = uni.$u.timeFormat(yesterday, 'yyyy-mm-dd') + ' 23:59:59'
- this.getfsuserListdata()
- } else if (value == 3) {
- let yesterday = new Date();
- yesterday.setDate(yesterday.getDate() - 6);
- this.startTime = uni.$u.timeFormat(yesterday, 'yyyy-mm-dd') + ' 00:00:00'
- this.endTime = this.todayday + ' 23:59:59'
- this.getfsuserListdata()
- } else {
- this.getfsuserListdata()
- }
- } else if (type == 'watchStatus') {
- // this.watchStatusIndex=value
- this.getfsuserListdata()
- // console.log(this.filterData)
- } else if (type == 'userStatus') {
- if (this.userStatusIndex == 0) {
- this.salesid = ''
- this.getfsuserListdata()
- } else {
- this.getfsuserListdata()
- }
- // console.log(this.userStatusIndex)
- } else if (type == 'courseStatus') {
- this.getfsuserListdata()
- console.log(this.courseStatusIndex)
- }
- // this.mescroll.resetUpScroll()
- },
- handleParamItem(type, index, id) {
- if (type == 'registerTime') {
- this.registerTimeIndex = index
- } else if (type == 'watchStatus') {
- this.watchStatusIndex = index
- // console.log('watchStatus',index)
- } else if (type == 'userStatus') {
- this.userStatusIndex = index
- this.salesid = id
- console.log(this.salesid)
- } else if (type == 'courseStatus') {
- this.courseStatusIndex = index
- } else {
- this.ispopshow = false
- }
- },
- sectionChange(index) {
- this.current = index;
- this.currentType = 0
- this.startTime = '' //注册开始
- this.endTime = '' //注册结束
- this.watchStatusIndex = 0
- this.salesid = ''
- this.courseStatusIndex = 0
- this.keyword = ''
- this.idx = []
- this.pageOptions.pageNum = 1
- this.isShowSelectAll = false
- this.userList = []
- if (index == 0) {
- this.currentIsBlack = false
- this.getfsuserListdata()
- } else {
- this.currentIsBlack = true
- this.getfsuserListdata()
- }
- this.getvipListnum()
- },
- clickTypeTab(e) {
- this.currentType = e.index
- this.userList = []
- this.getfsuserListdata()
- },
- bindPickerChange(e) {
- console.log('picker发送选择改变,携带值为', e.detail.value)
- this.userList = []
- this.searchTypeIndex = e.detail.value
- this.getfsuserListdata()
- },
- openPop(type) {
- this.popTitle = type == 'search' ? '搜索选择' : type == 'tag' ? '标签筛选' : ''
- this.typeIndex = this.queryParam.typeIndex
- this.showPop = true
- if (type == 'tag') {}
- },
- closePop() {
- this.showPop = false
- },
- resetPop(i) {
- this.idx = []
- this.tagkeywords = ''
- this.tagpageNum = 1
- this.showCompanytag = []
- this.companytag.forEach(tag => {
- tag.checked = false; // 将所有标签的show属性重置为true
- });
- this.showPop = false
- this.$nextTick(() => {
- this.getcompanyTag()
- this.getfsuserListdata()
- })
- },
- closeCalendar() {
- this.showCalendar = false
- },
- confirmCalendar(e) {
- // this.startTime = e[0]
- // this.endTime = e[e.length-1]
- this.showCalendar = false
- this.queryParam.startTime = e.range.after
- this.queryParam.endTime = e.range.before
- this.endTime = e.range.before + ' 23:59:59'
- this.startTime = e.range.after + ' 00:00:00'
- console.log(e)
- // this.getCount()
- },
- bindTypeChange(i) {
- this.typeIndex = i
- },
- confirmPop() {
- this.queryParam.typeIndex = this.typeIndex
- this.showPop = false
- this.showCompanytag = this.companytag.filter(item => item.checked)
- this.idx = this.showCompanytag.map(v => v.tagId)
- //filtter(过滤) 筛选所有checked==true的 然后map返回每一项的id
- if (this.idx.length == 0) {
- this.showCompanytag = this.companytag
- }
- this.$nextTick(() => {
- this.getfsuserListdata("refresh")
- })
- },
- chooseTag(i) {
- this.companytag[i].checked = !this.companytag[i].checked
- },
- choosechangeTag(i) {
- this.changetag[i].checked = !this.changetag[i].checked
- },
- vipInvite() {
- if (!this.vipInviteshow) {
- this.invitePop = true
- this.sharetaglist = null
- this.getlink('preload')
- this.getjssdklist()
- } else {
- this.vipInviteshow = false
- }
- },
- showinimg() {
- this.vipInviteshow = true
- },
- copyLink() {
- this.setTimeShow = true
- },
- confirmTime() {
- this.setTimeShow = false
- this.showShare = false
- console.log(this.showInvite)
- this.getshareLink()
- },
- getshareimg() {
- //生成海报
- this.getlink()
- this.codeLink = ''
- uni.showLoading({
- title: '正在生成中...'
- })
- const url = window.location.href.split('#')[0]
- const param = {
- companyId: this.user.companyId,
- companyUserId: this.user.userId,
- realLink: url + '#/pages/user/users/becomeVIP' + '?companyId=' +
- this.user.companyId + '&companyUserId=' + this.user.userId + '&tagids=' + this.sharetaglist,
- tagIds: this.sharetaglist,
- }
- becomeVipuserImg(param).then(res => {
- if (res.code == 200) {
- this.codeLink = res.posterImage
- console.log(res)
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none',
- duration: 2000
- });
- }
- })
- },
- getlink(type) {
- //生成链接
- const param = {
- companyId: this.user.companyId,
- companyUserId: this.user.userId,
- tagids: this.sharetaglist,
- limitTime: this.time
- }
- const url = window.location.href.split('#')[0]
- // console.log(url)
- this.copyLinks = url + '#/pages/user/users/becomeVIP' + '?companyId=' +
- this.user.companyId + '&companyUserId=' + this.user.userId + '&tagids=' + this.sharetaglist
- },
- getshareLink() {
- //生成链接
- this.copyLinks = []
- const param = {
- code: '',
- companyId: this.user.companyId,
- companyUserId: this.user.userId,
- tagids: this.sharetaglist,
- limitTime: this.time
- }
- const url = window.location.href.split('#')[0]
- console.log(url)
- this.copyLinks = url + '#/pages/user/users/becomeVIP' + '?companyId=' +
- this.user.companyId + '&companyUserId=' + this.user.userId + '&tagids=' + this.sharetaglist
- console.log(this.copyLinks)
- setTimeout(() => {
- uni.setClipboardData({
- data: String(this.copyLinks),
- success: () => {
- uni.showToast({
- title: '复制成功',
- icon: 'none',
- duration: 2000
- });
- setTimeout(() => {
- this.invitePop = false
- }, 200)
- },
- })
- }, 100)
- },
- mescrollInit(mescroll) {
- this.mescroll = mescroll;
- },
- /*下拉刷新的回调 */
- downCallback(mescroll) {
- mescroll.resetUpScroll()
- },
- upCallback(page) {
- //联网加载数据
- var that = this;
- var data = {
- courseId: this.courseId,
- status: '',
- pageNum: page.num,
- pageSize: page.size
- };
- uni.showLoading({
- title: "加载中..."
- })
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- .card-share{
- position: relative;
- }
- .share{
- display: inline-block;
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- opacity: 0;
- }
- .imgshe {
- display: flex;
- flex-direction: row-reverse
- }
- .point-box {
- height: 100%;
- width: 100%;
- .xu-box {
- border: #f5f5f5 4rpx dashed;
- padding: 20rpx 20rpx;
- }
- }
- .codeimg {
- position: absolute;
- z-index: 9999;
- left: 40rpx;
- top: 40rpx;
- }
- #codeurl {
- position: relative;
- }
- .checked-bg {
- border: 1px solid #1677ff !important;
- color: #1677ff !important;
- background-color: #e7f1fe !important;
- }
- .changetagbtn {
- width: 45%;
- height: 80rpx;
- border-radius: 50rpx;
- text-align: center;
- line-height: 80rpx;
- }
- ::v-deep {
- .foot-select {
- width: 100%;
- padding: 20rpx 20rpx;
- z-index: 10000 !important;
- position: fixed;
- bottom: 0;
- margin-left: -24rpx !important;
- }
- }
- ::v-deep {
- .model .u-fade-enter-active {
- z-index: 10075 !important;
- }
- }
- ::v-deep {
- .uni-calendar__mask {
- z-index: 11000 !important;
- }
- .uni-calendar__content {
- z-index: 12000 !important;
- }
- }
- .container {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #222222;
- height: 100%;
- overflow: hidden;
- }
- .boxnav {
- flex-wrap: wrap;
- padding: 0 0 0 10px;
- &-item {
- width: 50%;
- overflow: hidden;
- }
- &-item-info {
- border: 1px solid #f5f5f5;
- text-align: center;
- color: #222;
- background-color: #f5f5f5;
- border-radius: 3px;
- padding: 5px;
- margin: 0 10px 10px 0;
- }
- &-active {
- border: 1px solid #1677ff !important;
- color: #1677ff !important;
- background-color: #e7f1fe !important;
- }
- }
- .calendar-day {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 12px;
- color: #999;
- flex: 1;
- min-height: 30px;
- background-color: #f5f5f5;
- border-radius: 4px;
- margin: 0 10px 10px 0;
- }
- .setTimebox {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- width: fit-content;
- height: fit-content;
- }
- .timetip {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #2979ff;
- text-align: center;
- margin-bottom: 5px;
- }
- .popbox {
- background-color: #fff;
- border-radius: 12px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #333;
- &-head {
- padding: 15px;
- font-weight: bold;
- font-size: 15px;
- text-align: center;
- position: relative;
- }
- .close-circle {
- position: absolute;
- right: 10px;
- top: 50%;
- transform: translateY(-50%);
- }
- &-body {
- padding: 10px 10px;
- }
- .radiobox {
- &-item {
- padding: 10px 0;
- border-bottom: 1px solid #f5f5f5;
- &:last-child {
- border-bottom: none;
- }
- }
- }
- &-footer {
- padding: 15px 0;
- }
- &-footer-btn {
- flex: 1;
- height: 44px;
- line-height: 44px;
- margin: 0 10px;
- border-radius: 50px;
- border: none;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #333;
- &::after {
- border: none;
- }
- }
- .con-btn {
- background-color: #1677ff;
- color: #fff;
- }
- .choosetitle {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 15px;
- color: #333;
- }
- .invitetip {
- margin-top: 10px;
- background-color: #ebf5fb;
- color: #1677ff;
- padding: 5px 10px;
- border-radius: 5px;
- }
- .sharePop-item {
- padding: 0 10px;
- box-sizing: border-box;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- display: inline-flex !important;
- image {
- height: 48px;
- width: 48px;
- margin-bottom: 10px;
- }
- }
- }
- .headbox {
- background-color: #fff;
- flex: 1;
- height: 100%;
- .subsection {
- height: 45px;
- padding: 4px;
- }
- .participate-order {
- font-size: 12px;
- image {
- width: 15px;
- height: 15px;
- }
- }
- }
- .tag-active {
- background-color: #ffeceb !important;
- color: #f93e3e !important;
- border: 1px solid #f93e3e !important;
- }
- .tagbox {
- padding-top: 10rpx;
- font-size: 12px;
- color: #1677ff;
- &-list {
- margin: 0 0 -6px 6px;
- flex-wrap: wrap;
- }
- &-item {
- height: 26px;
- padding: 0 8px;
- margin: 0 6px 6px 0;
- border-radius: 4px;
- background-color: #f5f5f5;
- color: #999;
- border: 1px solid #f5f5f5;
- box-sizing: border-box;
- font-size: 12px;
- }
- }
- .invite-member {
- height: 55px;
- width: 50px;
- position: fixed;
- bottom: 110px;
- right: 10px;
- cursor: pointer;
- .intimg {
- width: 50px;
- height: 55px;
- }
- }
- .invite-members {
- right: -68rpx;
- }
- .falseimg {
- position: absolute;
- width: 30rpx;
- height: 30rpx;
- top: 0rpx;
- right: -8rpx;
- }
- .userlist {
- padding: 24rpx;
- }
- </style>
|