123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872 |
- <template>
- <!-- <view class="container" v-if="!loading" style="position: relative;z-index: 0;"> -->
- <view class="container" style="position: relative;z-index: 0;">
- <navBar title="GIGESI 吉格斯" :back="false" color="black"
- background="linear-gradient(to bottom,#FDEDD2,#FEF9ED)" />
- <view class="content">
- <!-- <view class="top" :style="{'background-image':`url(${picUrl}/static/other/myW.png)`}"> -->
- <view class="top">
- <!-- <image class="myW" :src="picUrl+'/static/other/myW.png'" mode=""></image> -->
- <view class="userInfo">
- <view class="left">
- <view class="avatarBox" @click="toPage('info')">
- <image class="avatar"
- :src="userInfo&&userInfo.head?userInfo.head:picUrl+'/static/other/defaultAvatar.png'">
- </image>
- </view>
- <text class="btn" v-if="!token" @click="login">请点击登录</text>
- <text class="btn" v-if="token&&role=='cydg'"
- @click="toPage('info')">{{userInfo.nickname?userInfo.nickname+'(产业电工)':'默认用户(产业电工)'}}</text>
- <text class="btn" v-if="token&&role=='hy'"
- @click="toPage('info')">{{userInfo.nickname?userInfo.nickname+'(会员)':'默认用户(会员)'}}</text>
- <view class="lMember" v-if="token&&role=='lhy'" style="" @click="toPage('info')">
- <text class="btn1">{{userInfo.nickname?userInfo.nickname+'(L会员)':'默认用户(L会员)'}}</text>
- <view class="botDes" style="width: 450rpx;">
- 查看商品会员价,{{hours}}小时后自动恢复为售价。会员价格还剩
- <view class="" style="display: inline-block;margin-left: 10rpx;">
- <u-count-down @change="cutDownChange" style="display: inline-block;"
- :time="remainTime" format="HH:mm:ss"></u-count-down>
- </view>
- </view>
- </view>
- <view class="lMember" v-if="token&&role=='hdyh'" @click="toPage('info')">
- <text class="btn1">{{userInfo.nickname?userInfo.nickname+'(活动会员)':'默认用户(活动会员)'}}</text>
- <view class="botDes" v-if="userInfo.phone">
- {{userInfo.phone}}
- </view>
- </view>
- <view class="lMember" v-if="token&&role=='svip'" @click="toPage('info')">
- <text class="btn1">{{userInfo.nickname?userInfo.nickname+'(S-VIP)':'默认用户(S-VIP)'}}</text>
- <view class="botDes" v-if="userInfo.phone">
- {{userInfo.phone}}
- </view>
- </view>
- <view class="lMember" v-if="token&&role=='gvip'" @click="toPage('info')">
- <text class="btn1">{{userInfo.nickname?userInfo.nickname+'(G-VIP)':'默认用户(G-VIP)'}}</text>
- <view class="botDes" v-if="userInfo.phone">
- {{userInfo.phone}}
- </view>
- </view>
- <view class="lMember" v-if="token&&role=='yk'" @click="toPage('info')">
- <text class="btn1">{{userInfo.nickname?userInfo.nickname+'(游客)':'默认用户(游客)'}}</text>
- <view class="botDes" v-if="userInfo.phone">
- {{userInfo.phone}}
- </view>
- </view>
- <text class="btn" v-if="token&&role=='sjkf'"
- @click="toPage('info')">{{userInfo.nickname?userInfo.nickname+'(设计客服)':'默认用户(设计客服)'}}</text>
- <text class="btn" v-if="token&&role=='shkf'"
- @click="toPage('info')">{{userInfo.nickname?userInfo.nickname+'(售后客服)':'默认用户(售后客服)'}}</text>
- <text class="btn" v-if="token&&role=='yw'"
- @click="toPage('info')">{{userInfo.nickname?userInfo.nickname+'(业务客服)':'默认用户(业务客服)'}}</text>
- <text class="btn" v-if="token&&role=='superAdmin'"
- @click="toPage('info')">{{userInfo.nickname?userInfo.nickname+'(超级管理员)':'默认用户(超级管理员)'}}</text>
- <text class="btn" v-if="token&&role=='nomal'"
- @click="toPage('info')">{{userInfo.nickname?userInfo.nickname+'(普通员工)':'默认用户(普通员工)'}}</text>
- </view>
- <image :src="picUrl+'/static/my/set2.png'" mode="" @click="toPage('info')"
- style="width: 37rpx;height: 41rpx;margin-right: 22rpx;">
- </image>
- </view>
- <view class="invite" @click="token?show=true:$toast('请先登录')"
- v-if="role=='sjkf'||role=='shkf'||role=='yw'||role=='superAdmin'">
- <view class="left">
- <image :src="picUrl+'/static/my/vip.png'" mode="" style="width: 27rpx;height: 30rpx;">
- </image>
- <text>邀约用户</text>
- </view>
- <view class="right">
- <text class="price">尊享专属价</text>
- <image :src="picUrl+'/static/my/yellowR.png'" mode=""
- style="width: 12rpx;height: 20rpx;margin-left: 8rpx;"></image>
- </view>
- <image :src="picUrl+'/static/my/diwen.png'" mode=""
- style="width: 136rpx;height: 80rpx;position: absolute;z-index: 0;right: 0;right: 32rpx;border-radius: 0rpx 24rpx 8rpx 0rpx;">
- </image>
- </view>
- </view>
- <view class="serList">
- <view class="item" @click="toPage(item)" v-for="(item,index) in serList">
- <view class="left">
- <!-- <image :src="item.icon" mode="heightFix" style="height: 31rpx;width: 36rpx;" ></image> -->
- <image :src="item.icon" :mode="item.name!='关于我们'?'heightFix':'widthFix'" style="width: 36rpx;"
- :style="{height:item.name=='关于我们'?'36rpx':'31rpx'}"></image>
- <text>{{item.name}}</text>
- </view>
- <view class="right">
- <text class="num" v-if="item.phone">{{item.phone}}</text>
- <image src="/static/my/arr_r.png" mode="" style="height: 24rpx;width: 14rpx;">
- </image>
- </view>
- </view>
- <view class="item" @click="toPage(item)" v-for="(item,index) in serList2">
- <view class="left">
- <!-- <image :src="item.icon" mode="heightFix" style="height: 31rpx;width: 36rpx;" ></image> -->
- <image :src="item.icon" :mode="item.name!='关于我们'?'heightFix':'widthFix'" style="width: 36rpx;"
- :style="{height:item.name=='关于我们'?'36rpx':'31rpx'}"></image>
- <text>{{item.name}}</text>
- </view>
- <view class="right">
- <text class="num" v-if="item.phone">{{item.phone}}</text>
- <image src="/static/my/arr_r.png" mode="" style="height: 24rpx;width: 14rpx;">
- </image>
- </view>
- </view>
- </view>
- </view>
- <u-action-sheet :actions="list" :title="title" :show="show" cancelText="取消" @close="show=false"
- @select="handleSel"></u-action-sheet>
- </view>
- <!-- <u-loading-page v-else :loading="loading" image="/static/index/logo.png" loading-text="页面加载中..."></u-loading-page> -->
- </template>
- <script>
- import uploadUrl from '@/common/config.js'
- import {
- wxAuthLoginReq,
- getUserInfoReq,
- updateUserInfoReq,
- addInviteReq
- } from '@/api/test/index.js'
- import moment from 'moment'
- export default {
- // components: {
- // navBar
- // },
- data() {
- return {
- picUrl: this.$picUrl,
- token: uni.getStorageSync('token'),
- role: null,
- // status==1
- // role: 'cydg',3
- // role: 'hy', 5
- // role: 'lhy',2
- // role: 'svip',type==1
- // role: 'hdyh',type==4
- // role: 'youke',type==0
- // status==0
- // role: 'yw',
- // role: 'sjkf',
- // role: 'shkf',
- // role: 'superAdmin',
- serList: [{
- icon: this.$picUrl + '/static/my/sc.png',
- name: '收藏',
- url: '/pages/my/collect/index'
- },
- {
- icon: this.$picUrl + '/static/my/qt.png',
- name: '小程序使用指南',
- url: '/pages/my/useLead/index'
- },
- // {
- // icon: this.$picUrl + '/static/other/aboutMe.png',
- // name: '关于我们',
- // url: '/pages/my/aboutMe/index',
- // },
- {
- icon: this.$picUrl + '/static/my/qt.png',
- name: '其他信息',
- url: '/pages/my/otherInfo/index'
- },
- ],
- showPrivacy: true,
- avatarUrl: '',
- nickName: '',
- PhoneCode: '',
- imgUrl: '',
- isPhone: false,
- user_img: '', //微信头像
- user_name: '',
- show: false,
- list: [],
- userInfo: null,
- hours: 0,
- remainTime: 0,
- watchTimeObj: {
- days: 0,
- hours: 0,
- minutes: 0,
- seconds: 0,
- milliseconds: 0
- },
- loading: true,
- serList2: []
- }
- },
- async onShow() {
- if (!uni.getStorageSync('switchs')) {
- uni.setStorageSync('switchs', [1, 0, 0])
- }
- // if (!uni.getStorageSync('priceConfig')) {
- uni.request({
- url: uploadUrl.baseUrl + '/api/common/getPriceConfig',
- method: "GET",
- success: (res) => {
- if (res.data.code == 0) {
- console.log('my中获取的会员折扣数据', res.data.data)
- uni.setStorageSync('priceConfig', res.data.data)
- }
- }
- })
- // }
- if (uni.getStorageSync('token')) {
- let res = await getUserInfoReq()
- if (res.code == 0) {
- this.userInfo = res.data
- // this.userInfo.role = 3
- if (this.userInfo.role == 1) {
- this.serList2 = [{
- icon: this.$picUrl + '/static/my/tg.png',
- name: '活动商品',
- url: '/pages/my/actGoods/index'
- }, ]
- } else if (this.userInfo.role == 2) {
- this.serList2 = [{
- icon: this.$picUrl + '/static/my/qt.png',
- name: '售后',
- url: '/pages/my/sellAfter/index'
- }, ]
- } else if (this.userInfo.role == 3) {
- this.serList2 = [{
- icon: this.$picUrl + '/static/my/tg.png',
- name: '活动商品',
- url: '/pages/my/actGoods/index'
- },
- {
- icon: this.$picUrl + '/static/my/qt.png',
- name: '售后',
- url: '/pages/my/sellAfter/index'
- },
- ]
- }
- // this.userInfo = {
- // head: null,
- // name: null,
- // nickname: null,
- // birthday: null,
- // phone: null,
- // sex: null,
- // }
- console.log('用户信息', this.userInfo, new Date(this.userInfo.ls_expire_time), moment(this.userInfo
- .ls_expire_time).format("YYYY-MM-DD HH:mm:ss"), );
- let ms = this.userInfo.ls_expire_time - Date.now();
- if (ms > 0) {
- this.hours = (ms / 1000 / 60 / 60).toFixed(1)
- this.remainTime = ms
- }
- // this.role = 'yw'
- // this.checkRole()
- // return
- if (res.data.status) {
- switch (res.data.type) {
- case 0:
- this.role = 'yk'
- break
- case 1:
- this.role = 'svip'
- break
- case 2:
- this.role = 'lhy'
- uni.setStorageSync('switchs', [0, 1, 0])
- break
- case 3:
- this.role = 'cydg'
- break
- case 4:
- this.role = 'hdyh'
- break
- case 5:
- this.role = 'hy'
- uni.setStorageSync('switchs', [0, 1, 0])
- break
- case 6:
- this.role = 'gvip'
- break
- }
- console.log('当前用户角色', this.role);
- } else {
- switch (res.data.type) {
- case 0:
- this.role = 'nomal'
- break
- case 1:
- this.role = 'superAdmin'
- break
- case 2:
- this.role = 'sjkf'
- break
- case 3:
- this.role = 'shkf'
- break
- case 4:
- this.role = 'yw'
- break
- }
- }
- console.log('当前员工角色', this.role);
- this.checkRole()
- this.loading = false
- } else {
- uni.showToast({
- title: res.message,
- icon: 'none'
- })
- }
- }
- },
- async onLoad() {
- wx.onNeedPrivacyAuthorization((resolve, eventInfo) => {
- console.log('触发本次事件的接口是:' + eventInfo.referrer)
- // 需要用户同意隐私授权时
- // 弹出开发者自定义的隐私授权弹窗
- this.showPrivacy = true
- this.resolvePrivacyAuthorization = resolve
- })
- // wx.getUserProfile({
- // success: console.log,
- // fail: console.error
- // })
- },
- computed: {},
- watch: {
- watchTimeObj: {
- handler(n, o) {
- console.log('handler(n, o)', n, this.role);
- if (n.days == 0 && n.hours == 0 && n.minutes == 0 && n.seconds == 1) {
- setTimeout(() => {
- uni.reLaunch({
- url: '/pages/my'
- })
- console.log('L会员到期-----------------------------------------', n, this.role);
- }, 1000)
- }
- },
- deep: true
- }
- },
- methods: {
- cutDownChange(e) {
- this.watchTimeObj = {
- ...e
- }
- console.log('e-------------', this.watchTimeObj);
- },
- call(phone) {
- uni.makePhoneCall({
- phoneNumber: phone,
- })
- },
- toPage(page) {
- console.log('page----------------', page);
- if (page == 'info' && !this.token) {
- return this.$toast('请先登录')
- }
- if (page.url == '/pages/my/collect/index' && !this.token) {
- return this.$toast('请先登录')
- }
- if (page == 'set') {
- uni.navigateTo({
- url: '/pages/my/set/index?role=' + this.role
- })
- } else if (page == 'info') {
- uni.navigateTo({
- url: '/pages/my/userInfo/index'
- })
- } else if (page.phone) {
- this.call(page.phone)
- } else {
- uni.navigateTo({
- url: page.url
- })
- }
- },
- login() {
- let _this = this
- uni.showLoading({
- title: '登录中...'
- })
- uni.login({
- provider: 'weixin',
- success: async (res) => {
- if (res.errMsg == 'login:ok') {
- let parmas = {
- code: res.code,
- }
- if (uni.getStorageSync('inviteId')) {
- parmas['inviteId'] = uni.getStorageSync('inviteId')
- }
- if (uni.getStorageSync('afterSaleId')) {
- parmas['afterSaleId'] = uni.getStorageSync('afterSaleId')
- }
- console.log('登录所传的parmas参数:', parmas);
- let res1 = await wxAuthLoginReq(parmas)
- console.log('登录返回值--------', res1);
- if (res1.code == 0) {
- uni.hideLoading()
- uni.setStorageSync('token', res1.data.token)
- _this.$toast('登录成功')
- uni.removeStorageSync('inviteId')
- uni.removeStorageSync('afterSaleId')
- setTimeout(() => {
- uni.reLaunch({
- url: '/pages/my'
- })
- }, 1500)
- } else {
- uni.hideLoading()
- uni.showToast({
- title: res1.msg,
- icon: 'none'
- })
- }
- }
- }
- });
- },
- handleSel(e) {
- console.log('sheet选择参数:', e);
- let type = -1
- if (e.name == '邀约VIP') {
- type = 'vip'
- } else if (e.name == '邀约L会员') {
- type = 'ls'
- } else if (e.name == '邀约会员') {
- type = 'hy'
- } else if (e.name == '邀约活动用户') {
- type = 'yh'
- } else if (e.name == '邀约电工') {
- type = 'dg'
- }
- uni.navigateTo({
- url: '/pages/my/inviteDetail/index?type=' + type
- })
- },
- checkRole() {
- if (this.role == 'yk') {
- this.serList = [{
- icon: this.picUrl + '/static/my/sc.png',
- name: '收藏',
- url: '/pages/my/collect/index'
- },
- {
- icon: this.picUrl + '/static/my/qt.png',
- name: '小程序使用指南',
- url: '/pages/my/useLead/index'
- },
- // {
- // icon: this.picUrl + '/static/other/aboutMe.png',
- // name: '关于我们',
- // url: '/pages/my/aboutMe/index'
- // },
- {
- icon: this.$picUrl + '/static/my/qt.png',
- name: '其他信息',
- url: '/pages/my/otherInfo/index'
- },
- ]
- } else if (this.role == 'svip') {
- this.serList = [{
- icon: this.picUrl + '/static/my/set.png',
- name: '设置',
- url: '/pages/my/set/index?role=' + this.role
- }, {
- icon: this.picUrl + '/static/my/sc.png',
- name: '收藏',
- url: '/pages/my/collect/index'
- }, {
- icon: this.picUrl + '/static/my/yjlx.png',
- name: '一键联系',
- phone: this.userInfo.invitePhone
- }, {
- icon: this.picUrl + '/static/my/qt.png',
- name: '小程序使用指南',
- url: '/pages/my/useLead/index'
- },
- // {
- // icon: this.picUrl + '/static/other/aboutMe.png',
- // name: '关于我们',
- // url: '/pages/my/aboutMe/index'
- // },
- {
- icon: this.$picUrl + '/static/my/qt.png',
- name: '其他信息',
- url: '/pages/my/otherInfo/index'
- },
- ]
- } else if (this.role == 'gvip') {
- this.serList = [{
- icon: this.picUrl + '/static/my/set.png',
- name: '设置',
- url: '/pages/my/set/index?role=' + this.role
- }, {
- icon: this.picUrl + '/static/my/sc.png',
- name: '收藏',
- url: '/pages/my/collect/index'
- }, {
- icon: this.picUrl + '/static/my/yjlx.png',
- name: '一键联系',
- phone: this.userInfo.invitePhone
- }, {
- icon: this.picUrl + '/static/my/qt.png',
- name: '小程序使用指南',
- url: '/pages/my/useLead/index'
- },
- // {
- // icon: this.picUrl + '/static/other/aboutMe.png',
- // name: '关于我们',
- // url: '/pages/my/aboutMe/index'
- // },
- {
- icon: this.$picUrl + '/static/my/qt.png',
- name: '其他信息',
- url: '/pages/my/otherInfo/index'
- },
- ]
- } else if (this.role == 'lhy') {
- this.serList = [{
- icon: this.picUrl + '/static/my/sc.png',
- name: '收藏',
- url: '/pages/my/collect/index'
- },
- {
- icon: this.picUrl + '/static/my/yjlx.png',
- name: '一键联系',
- phone: this.userInfo.invitePhone
- },
- {
- icon: this.picUrl + '/static/my/qt.png',
- name: '小程序使用指南',
- url: '/pages/my/useLead/index'
- },
- // {
- // icon: this.picUrl + '/static/other/aboutMe.png',
- // name: '关于我们',
- // url: '/pages/my/aboutMe/index'
- // },
- {
- icon: this.$picUrl + '/static/my/qt.png',
- name: '其他信息',
- url: '/pages/my/otherInfo/index'
- },
- ]
- } else if (this.role == 'hy') {
- this.serList = [{
- icon: this.picUrl + '/static/my/sc.png',
- name: '收藏',
- url: '/pages/my/collect/index'
- },
- {
- icon: this.picUrl + '/static/my/yjlx.png',
- name: '一键联系',
- phone: this.userInfo.invitePhone
- },
- {
- icon: this.picUrl + '/static/my/qt.png',
- name: '小程序使用指南',
- url: '/pages/my/useLead/index'
- },
- // {
- // icon: this.picUrl + '/static/other/aboutMe.png',
- // name: '关于我们',
- // url: '/pages/my/aboutMe/index'
- // },
- {
- icon: this.$picUrl + '/static/my/qt.png',
- name: '其他信息',
- url: '/pages/my/otherInfo/index'
- },
- ]
- } else if (this.role == 'cydg') {
- this.serList = [{
- icon: this.picUrl + '/static/my/set.png',
- name: '设置',
- url: '/pages/my/set/index?role=' + this.role
- },
- {
- icon: this.picUrl + '/static/my/sc.png',
- name: '收藏',
- url: '/pages/my/collect/index'
- },
- {
- icon: this.picUrl + '/static/my/yjlx.png',
- name: '一键联系',
- phone: this.userInfo.invitePhone
- },
- {
- icon: this.picUrl + '/static/my/qt.png',
- name: '小程序使用指南',
- url: '/pages/my/useLead/index'
- },
- {
- icon: this.picUrl + '/static/my/qt.png',
- name: '兑奖记录',
- url: '/pages/my/duijiang/index?from=1'
- },
- // {
- // icon: this.picUrl + '/static/my/qt.png',
- // name: '兑奖记录',
- // url: '/pages/my/recordCydg/index'
- // },
- // {
- // icon: this.picUrl + '/static/other/aboutMe.png',
- // name: '关于我们',
- // url: '/pages/my/aboutMe/index'
- // },
- {
- icon: this.$picUrl + '/static/my/qt.png',
- name: '其他信息',
- url: '/pages/my/otherInfo/index'
- },
- ]
- // 活动用户附加于其他用户角色之上,不是一种角色,而是一种查看功能
- } else if (this.role == 'hdyh') {
- return
- this.serList = [
- // {
- // icon: this.picUrl + '/static/my/set.png',
- // name: '设置',
- // url: '/pages/my/set/index?role=' + this.role
- // }, {
- // icon: this.picUrl + '/static/my/sc.png',
- // name: '收藏',
- // url: '/pages/my/collect/index'
- // }, {
- // icon: this.picUrl + '/static/my/yjlx.png',
- // name: '一键联系',
- // phone: '12983098478'
- // }, {
- // icon: this.picUrl + '/static/my/jiang.png',
- // name: '兑奖信息',
- // url: '/pages/my/duijiang/index'
- // }, {
- // icon: this.picUrl + '/static/my/qt.png',
- // name: '小程序使用指南',
- // url: '/pages/my/useLead/index'
- // },
- ]
- } else if (this.role == 'superAdmin') {
- this.serList = [{
- icon: this.picUrl + '/static/my/set.png',
- name: '设置',
- url: '/pages/my/set/index?role=' + this.role
- },
- {
- icon: this.picUrl + '/static/my/sh.png',
- name: '售后',
- url: '/pages/my/sellAfter/index'
- },
- {
- icon: this.picUrl + '/static/my/jiang.png',
- name: '兑奖信息',
- url: '/pages/my/duijiang/index'
- },
- {
- icon: this.picUrl + '/static/my/tg.png',
- name: '活动商品',
- url: '/pages/my/actGoods/index'
- },
- {
- icon: this.picUrl + '/static/my/sc.png',
- name: '收藏',
- url: '/pages/my/collect/index'
- },
- {
- icon: this.picUrl + '/static/my/qt.png',
- name: '新增兑奖记录',
- url: '/pages/my/inviteSellAfter/index'
- },
- {
- icon: this.picUrl + '/static/my/qt.png',
- name: '其他信息',
- url: '/pages/my/otherInfo/index'
- },
- ]
- this.list = [{
- name: '邀约VIP'
- },
- {
- name: '邀约L会员'
- },
- {
- name: '邀约会员'
- },
- {
- name: '邀约电工'
- },
- {
- name: '邀约活动用户'
- }
- ]
- } else if (this.role == 'sjkf' || this.role == 'yw') {
- if (this.role == 'sjkf') {
- this.serList = [{
- icon: this.picUrl + '/static/my/set.png',
- name: '设置',
- url: '/pages/my/set/index?role=' + this.role
- },
- {
- icon: this.picUrl + '/static/my/sh.png',
- name: '售后',
- url: '/pages/my/sellAfter/index'
- },
- {
- icon: this.picUrl + '/static/my/tg.png',
- name: '活动商品',
- url: '/pages/my/actGoods/index'
- },
- {
- icon: this.picUrl + '/static/my/sc.png',
- name: '收藏',
- url: '/pages/my/collect/index'
- },
- {
- icon: this.picUrl + '/static/my/qt.png',
- name: '其他信息',
- url: '/pages/my/otherInfo/index'
- },
- ]
- } else {
- this.serList = [{
- icon: this.picUrl + '/static/my/set.png',
- name: '设置',
- url: '/pages/my/set/index?role=' + this.role
- },
- {
- icon: this.picUrl + '/static/my/sh.png',
- name: '售后',
- url: '/pages/my/sellAfter/index'
- }, {
- icon: this.picUrl + '/static/my/tg.png',
- name: '活动商品',
- url: '/pages/my/actGoods/index'
- }, {
- icon: this.picUrl + '/static/my/sc.png',
- name: '收藏',
- url: '/pages/my/collect/index'
- },
- {
- icon: this.picUrl + '/static/my/qt.png',
- name: '其他信息',
- url: '/pages/my/otherInfo/index'
- },
- ]
- }
- this.list = [{
- name: '邀约VIP'
- },
- {
- name: '邀约L会员'
- },
- {
- name: '邀约活动用户'
- }
- ]
- } else if (this.role == 'shkf') {
- this.serList = [{
- icon: this.picUrl + '/static/my/set.png',
- name: '设置',
- url: '/pages/my/set/index?role=' + this.role
- },
- {
- icon: this.picUrl + '/static/my/sh.png',
- name: '售后',
- url: '/pages/my/sellAfter/index'
- }, {
- icon: this.picUrl + '/static/my/tg.png',
- name: '活动商品',
- url: '/pages/my/actGoods/index'
- }, {
- icon: this.picUrl + '/static/my/sc.png',
- name: '收藏',
- url: '/pages/my/collect/index'
- },
- {
- icon: this.picUrl + '/static/my/qt.png',
- name: '其他信息',
- url: '/pages/my/otherInfo/index'
- },
- ]
- this.list = [{
- name: '邀约VIP'
- },
- {
- name: '邀约L会员'
- },
- {
- name: '邀约会员'
- },
- {
- name: '邀约活动用户'
- }
- ]
- } else if (this.role == 'nomal') {
- return
- this.serList = []
- }
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- @import "./my.scss";
- ::v-deep .u-loading-page {
- position: relative !important;
- z-index: 999999999 !important;
- // background: red;
- }
- ::v-deep .u-loading-page__warpper__loading-icon__img {
- width: 150rpx !important;
- height: 150rpx !important;
- }
- </style>
|