|
@@ -22,11 +22,14 @@
|
|
<text class="btn"
|
|
<text class="btn"
|
|
v-if="token&&role=='hy'">{{userInfo.nickname?userInfo.nickname:'默认用户(会员)'}}</text>
|
|
v-if="token&&role=='hy'">{{userInfo.nickname?userInfo.nickname:'默认用户(会员)'}}</text>
|
|
|
|
|
|
- <view class="lMember" v-if="token&&role=='lhy'">
|
|
|
|
|
|
+ <view class="lMember" v-if="token&&role=='lhy'" style="">
|
|
<text class="btn1">{{userInfo.nickname?userInfo.nickname:'默认用户(L会员)'}}</text>
|
|
<text class="btn1">{{userInfo.nickname?userInfo.nickname:'默认用户(L会员)'}}</text>
|
|
- <view class="botDes">
|
|
|
|
- 查看商品会员价,72小时后自动恢复
|
|
|
|
- 为售价。会员价格还剩 00:05:59
|
|
|
|
|
|
+ <view class="botDes" style="width: 420rpx;">
|
|
|
|
+ 查看商品会员价,{{hours}}小时后自动恢复为售价。会员价格还剩
|
|
|
|
+ <view class="" style="display: inline-block;">
|
|
|
|
+ <u-count-down @change="cutDownChange" style="display: inline-block;"
|
|
|
|
+ :time="remainTime" format="HH:mm:ss"></u-count-down>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="lMember" v-if="token&&role=='hdhy'">
|
|
<view class="lMember" v-if="token&&role=='hdhy'">
|
|
@@ -42,6 +45,13 @@
|
|
{{userInfo.phone}}
|
|
{{userInfo.phone}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+
|
|
|
|
+ <view class="lMember" v-if="token&&role=='gvip'">
|
|
|
|
+ <text class="btn1">{{userInfo.nickname?userInfo.nickname:'默认用户(G-VIP)'}}</text>
|
|
|
|
+ <view class="botDes" v-if="userInfo.phone">
|
|
|
|
+ {{userInfo.phone}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
<view class="lMember" v-if="token&&role=='yk'">
|
|
<view class="lMember" v-if="token&&role=='yk'">
|
|
<text class="btn1">{{userInfo.nickname?userInfo.nickname:'默认用户(游客)'}}</text>
|
|
<text class="btn1">{{userInfo.nickname?userInfo.nickname:'默认用户(游客)'}}</text>
|
|
<view class="botDes" v-if="userInfo.phone">
|
|
<view class="botDes" v-if="userInfo.phone">
|
|
@@ -112,6 +122,7 @@
|
|
updateUserInfoReq,
|
|
updateUserInfoReq,
|
|
addInviteReq
|
|
addInviteReq
|
|
} from '@/api/test/index.js'
|
|
} from '@/api/test/index.js'
|
|
|
|
+ import moment from 'moment'
|
|
export default {
|
|
export default {
|
|
// components: {
|
|
// components: {
|
|
// navBar
|
|
// navBar
|
|
@@ -175,7 +186,18 @@
|
|
|
|
|
|
show: false,
|
|
show: false,
|
|
list: [],
|
|
list: [],
|
|
- userInfo: null
|
|
|
|
|
|
+ userInfo: null,
|
|
|
|
+
|
|
|
|
+ hours: 0,
|
|
|
|
+ remainTime: 0,
|
|
|
|
+
|
|
|
|
+ watchTimeObj: {
|
|
|
|
+ days: 0,
|
|
|
|
+ hours: 0,
|
|
|
|
+ minutes: 0,
|
|
|
|
+ seconds: 0,
|
|
|
|
+ milliseconds: 0
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async onShow() {
|
|
async onShow() {
|
|
@@ -192,8 +214,17 @@
|
|
// phone: null,
|
|
// phone: null,
|
|
// sex: null,
|
|
// sex: null,
|
|
// }
|
|
// }
|
|
- console.log('用户信息', this.userInfo);
|
|
|
|
- // this.role = 'cydg'
|
|
|
|
|
|
+ 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 = 'yk'
|
|
// this.checkRole()
|
|
// this.checkRole()
|
|
// return
|
|
// return
|
|
if (res.data.status) {
|
|
if (res.data.status) {
|
|
@@ -216,6 +247,9 @@
|
|
case 5:
|
|
case 5:
|
|
this.role = 'hy'
|
|
this.role = 'hy'
|
|
break
|
|
break
|
|
|
|
+ case 6:
|
|
|
|
+ this.role = 'gvip'
|
|
|
|
+ break
|
|
}
|
|
}
|
|
console.log('当前用户角色', this.role);
|
|
console.log('当前用户角色', this.role);
|
|
} else {
|
|
} else {
|
|
@@ -260,7 +294,29 @@
|
|
// })
|
|
// })
|
|
},
|
|
},
|
|
computed: {},
|
|
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: {
|
|
methods: {
|
|
|
|
+ cutDownChange(e) {
|
|
|
|
+ this.watchTimeObj = {
|
|
|
|
+ ...e
|
|
|
|
+ }
|
|
|
|
+ console.log('e-------------', this.watchTimeObj);
|
|
|
|
+ },
|
|
call(phone) {
|
|
call(phone) {
|
|
uni.makePhoneCall({
|
|
uni.makePhoneCall({
|
|
phoneNumber: phone,
|
|
phoneNumber: phone,
|
|
@@ -268,9 +324,19 @@
|
|
},
|
|
},
|
|
toPage(page) {
|
|
toPage(page) {
|
|
console.log('page----------------', page);
|
|
console.log('page----------------', page);
|
|
- if (!this.token && page != '/pages/my/otherInfo/index' && !page.phone) {
|
|
|
|
|
|
+
|
|
|
|
+ if (page == 'info' && !this.token) {
|
|
|
|
+ return this.$toast('请先登录')
|
|
|
|
+ }
|
|
|
|
+ if (page.url == '/pages/my/collect/index' && !this.token) {
|
|
return this.$toast('请先登录')
|
|
return this.$toast('请先登录')
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ // if (!this.token && page != '/pages/my/otherInfo/index' && !page.phone) {
|
|
|
|
+ // return this.$toast('请先登录')
|
|
|
|
+ // }
|
|
|
|
+
|
|
|
|
+
|
|
if (page == 'set') {
|
|
if (page == 'set') {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: '/pages/my/set/index?role=' + this.role
|
|
url: '/pages/my/set/index?role=' + this.role
|
|
@@ -293,29 +359,39 @@
|
|
provider: 'weixin',
|
|
provider: 'weixin',
|
|
success: async (res) => {
|
|
success: async (res) => {
|
|
if (res.errMsg == 'login:ok') {
|
|
if (res.errMsg == 'login:ok') {
|
|
- let res1 = await wxAuthLoginReq({
|
|
|
|
- code: res.code
|
|
|
|
- })
|
|
|
|
|
|
+
|
|
|
|
+ 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)
|
|
if (res1.code == 0) {
|
|
if (res1.code == 0) {
|
|
uni.setStorageSync('token', res1.data.token)
|
|
uni.setStorageSync('token', res1.data.token)
|
|
- // uni.setStorageSync('role', 'yk')
|
|
|
|
- // uni.setStorageSync('userInfo', res1.data.user_info)
|
|
|
|
_this.$toast('登录成功')
|
|
_this.$toast('登录成功')
|
|
- console.log('登录时返回的用户信息', res1.data.user_info);
|
|
|
|
- if (res1.data.user_info.status && res1.data.user_info.type == 0) {
|
|
|
|
- console.log('当前登录的用户是游客,此时的邀请id', uni.getStorageSync('inviteId'));
|
|
|
|
- let res3 = await addInviteReq({
|
|
|
|
- inviteId: uni.getStorageSync('inviteId') || ''
|
|
|
|
- })
|
|
|
|
- if (res3.code == 0) {
|
|
|
|
- console.log('登录时提交邀请返回值', res3);
|
|
|
|
-
|
|
|
|
- uni.removeStorageSync('inviteId')
|
|
|
|
- } else {
|
|
|
|
- _this.$toast(res3.message)
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ // console.log('登录时返回的用户信息', res1.data.user_info);
|
|
|
|
+ // if (res1.data.user_info.status && res1.data.user_info.type == 0) {
|
|
|
|
+ // console.log('当前登录的用户是游客,此时的邀请id', uni.getStorageSync('inviteId'));
|
|
|
|
+ // let res3 = await addInviteReq({
|
|
|
|
+ // inviteId: uni.getStorageSync('inviteId') || ''
|
|
|
|
+ // })
|
|
|
|
+ // if (res3.code == 0) {
|
|
|
|
+ // console.log('登录时提交邀请返回值', res3);
|
|
|
|
+
|
|
|
|
+ // uni.removeStorageSync('inviteId')
|
|
|
|
+ // } else {
|
|
|
|
+ // _this.$toast(res3.message)
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ uni.removeStorageSync('inviteId')
|
|
|
|
+ uni.removeStorageSync('afterSaleId')
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
uni.reLaunch({
|
|
uni.reLaunch({
|
|
url: '/pages/my'
|
|
url: '/pages/my'
|
|
@@ -367,7 +443,26 @@
|
|
name: '关于我们',
|
|
name: '关于我们',
|
|
url: '/pages/my/aboutMe/index'
|
|
url: '/pages/my/aboutMe/index'
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ icon: this.$picUrl + '/static/my/qt.png',
|
|
|
|
+ name: '其他信息',
|
|
|
|
+ url: '/pages/my/otherInfo/index'
|
|
|
|
+ },
|
|
|
|
+
|
|
]
|
|
]
|
|
|
|
+ if (this.userInfo.role == 1) {
|
|
|
|
+ this.serList.push({
|
|
|
|
+ icon: this.picUrl + '/static/my/tg.png',
|
|
|
|
+ name: '团购商品',
|
|
|
|
+ url: '/pages/my/actGoods/index'
|
|
|
|
+ })
|
|
|
|
+ } else if (this.userInfo.role == 2) {
|
|
|
|
+ this.serList.push({
|
|
|
|
+ icon: this.picUrl + '/static/my/sh.png',
|
|
|
|
+ name: '售后',
|
|
|
|
+ url: '/pages/my/sellAfter/index'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
} else if (this.role == 'svip') {
|
|
} else if (this.role == 'svip') {
|
|
this.serList = [{
|
|
this.serList = [{
|
|
icon: this.picUrl + '/static/my/set.png',
|
|
icon: this.picUrl + '/static/my/set.png',
|
|
@@ -380,7 +475,7 @@
|
|
}, {
|
|
}, {
|
|
icon: this.picUrl + '/static/my/yjlx.png',
|
|
icon: this.picUrl + '/static/my/yjlx.png',
|
|
name: '一键联系',
|
|
name: '一键联系',
|
|
- phone: '12983098478'
|
|
|
|
|
|
+ phone: this.userInfo.invitePhone
|
|
}, {
|
|
}, {
|
|
icon: this.picUrl + '/static/my/qt.png',
|
|
icon: this.picUrl + '/static/my/qt.png',
|
|
name: '小程序使用指南',
|
|
name: '小程序使用指南',
|
|
@@ -391,21 +486,95 @@
|
|
name: '关于我们',
|
|
name: '关于我们',
|
|
url: '/pages/my/aboutMe/index'
|
|
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') {
|
|
} else if (this.role == 'lhy') {
|
|
this.serList = [{
|
|
this.serList = [{
|
|
- icon: this.picUrl + '/static/my/sh.png',
|
|
|
|
- name: '售后',
|
|
|
|
- url: '/pages/my/sellAfterCon/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/useLead/index'
|
|
|
|
- }, ]
|
|
|
|
|
|
+ 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') {
|
|
} else if (this.role == 'cydg') {
|
|
this.serList = [{
|
|
this.serList = [{
|
|
icon: this.picUrl + '/static/my/set.png',
|
|
icon: this.picUrl + '/static/my/set.png',
|
|
@@ -420,20 +589,29 @@
|
|
{
|
|
{
|
|
icon: this.picUrl + '/static/my/yjlx.png',
|
|
icon: this.picUrl + '/static/my/yjlx.png',
|
|
name: '一键联系',
|
|
name: '一键联系',
|
|
- phone: '12983098478'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- icon: this.picUrl + '/static/my/jiang.png',
|
|
|
|
- name: '兑奖信息',
|
|
|
|
- url: '/pages/my/duijiang/index'
|
|
|
|
- // phone: '12983098478'
|
|
|
|
|
|
+ phone: this.userInfo.invitePhone
|
|
},
|
|
},
|
|
|
|
+ // {
|
|
|
|
+ // icon: this.picUrl + '/static/my/jiang.png',
|
|
|
|
+ // name: '兑奖信息',
|
|
|
|
+ // url: '/pages/my/duijiang/index'
|
|
|
|
+ // // phone: '12983098478'
|
|
|
|
+ // },
|
|
{
|
|
{
|
|
icon: this.picUrl + '/static/my/qt.png',
|
|
icon: this.picUrl + '/static/my/qt.png',
|
|
name: '小程序使用指南',
|
|
name: '小程序使用指南',
|
|
url: '/pages/my/useLead/index'
|
|
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 == 'hdhy') {
|
|
} else if (this.role == 'hdhy') {
|
|
this.serList = [{
|
|
this.serList = [{
|
|
@@ -457,48 +635,31 @@
|
|
name: '小程序使用指南',
|
|
name: '小程序使用指南',
|
|
url: '/pages/my/useLead/index'
|
|
url: '/pages/my/useLead/index'
|
|
}, ]
|
|
}, ]
|
|
- } else if (this.role == 'hy') {
|
|
|
|
|
|
+ } else if (this.role == 'superAdmin') {
|
|
this.serList = [{
|
|
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',
|
|
icon: this.picUrl + '/static/my/sh.png',
|
|
name: '售后',
|
|
name: '售后',
|
|
url: '/pages/my/sellAfter/index'
|
|
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',
|
|
icon: this.picUrl + '/static/my/sc.png',
|
|
name: '收藏',
|
|
name: '收藏',
|
|
url: '/pages/my/collect/index'
|
|
url: '/pages/my/collect/index'
|
|
}, {
|
|
}, {
|
|
icon: this.picUrl + '/static/my/qt.png',
|
|
icon: this.picUrl + '/static/my/qt.png',
|
|
- name: '小程序使用指南',
|
|
|
|
- url: '/pages/my/useLead/index'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- icon: this.picUrl + '/static/my/yjlx.png',
|
|
|
|
- name: '一键联系',
|
|
|
|
- phone: '12983098478'
|
|
|
|
|
|
+ name: '其他信息',
|
|
|
|
+ url: '/pages/my/otherInfo/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/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 = [{
|
|
this.list = [{
|
|
name: '邀约VIP'
|
|
name: '邀约VIP'
|
|
@@ -519,28 +680,66 @@
|
|
} else if (this.role == 'sjkf' || this.role == 'yw') {
|
|
} else if (this.role == 'sjkf' || this.role == 'yw') {
|
|
if (this.role == 'sjkf') {
|
|
if (this.role == 'sjkf') {
|
|
this.serList = [{
|
|
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/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/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 {
|
|
} else {
|
|
this.serList = [{
|
|
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',
|
|
icon: this.picUrl + '/static/my/sh.png',
|
|
name: '售后',
|
|
name: '售后',
|
|
url: '/pages/my/sellAfter/index'
|
|
url: '/pages/my/sellAfter/index'
|
|
@@ -552,46 +751,14 @@
|
|
icon: this.picUrl + '/static/my/sc.png',
|
|
icon: this.picUrl + '/static/my/sc.png',
|
|
name: '收藏',
|
|
name: '收藏',
|
|
url: '/pages/my/collect/index'
|
|
url: '/pages/my/collect/index'
|
|
- }, {
|
|
|
|
- icon: this.picUrl + '/static/my/qt.png',
|
|
|
|
- name: '小程序使用指南',
|
|
|
|
- url: '/pages/my/useLead/index'
|
|
|
|
- }, ]
|
|
|
|
- }
|
|
|
|
- this.list = [{
|
|
|
|
- name: '邀约VIP'
|
|
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- name: '邀约L会员'
|
|
|
|
|
|
+ icon: this.picUrl + '/static/my/qt.png',
|
|
|
|
+ name: '其他信息',
|
|
|
|
+ url: '/pages/my/otherInfo/index'
|
|
},
|
|
},
|
|
- {
|
|
|
|
- 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/useLead/index'
|
|
|
|
- }, ]
|
|
|
|
-
|
|
|
|
this.list = [{
|
|
this.list = [{
|
|
name: '邀约VIP'
|
|
name: '邀约VIP'
|
|
},
|
|
},
|