|
@@ -1,6 +1,7 @@
|
|
<template>
|
|
<template>
|
|
|
|
|
|
- <view class="container" v-if="!loading" style="position: relative;z-index: 0;">
|
|
|
|
|
|
+ <!-- <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"
|
|
<navBar title="GIGESI 吉格斯" :back="false" color="black"
|
|
background="linear-gradient(to bottom,#FDEDD2,#FEF9ED)" />
|
|
background="linear-gradient(to bottom,#FDEDD2,#FEF9ED)" />
|
|
<view class="content">
|
|
<view class="content">
|
|
@@ -16,12 +17,12 @@
|
|
</view>
|
|
</view>
|
|
<text class="btn" v-if="!token" @click="login">请点击登录</text>
|
|
<text class="btn" v-if="!token" @click="login">请点击登录</text>
|
|
<text class="btn" v-if="token&&role=='cydg'"
|
|
<text class="btn" v-if="token&&role=='cydg'"
|
|
- @click="toPage('info')">{{userInfo.nickname?userInfo.nickname:'默认用户(产业电工)'}}</text>
|
|
|
|
|
|
+ @click="toPage('info')">{{userInfo.nickname?userInfo.nickname+'(产业电工)':'默认用户(产业电工)'}}</text>
|
|
<text class="btn" v-if="token&&role=='hy'"
|
|
<text class="btn" v-if="token&&role=='hy'"
|
|
- @click="toPage('info')">{{userInfo.nickname?userInfo.nickname:'默认用户(会员)'}}</text>
|
|
|
|
|
|
+ @click="toPage('info')">{{userInfo.nickname?userInfo.nickname+'(会员)':'默认用户(会员)'}}</text>
|
|
|
|
|
|
<view class="lMember" v-if="token&&role=='lhy'" style="" @click="toPage('info')">
|
|
<view class="lMember" v-if="token&&role=='lhy'" style="" @click="toPage('info')">
|
|
- <text class="btn1">{{userInfo.nickname?userInfo.nickname:'默认用户(L会员)'}}</text>
|
|
|
|
|
|
+ <text class="btn1">{{userInfo.nickname?userInfo.nickname+'(L会员)':'默认用户(L会员)'}}</text>
|
|
<view class="botDes" style="width: 450rpx;">
|
|
<view class="botDes" style="width: 450rpx;">
|
|
查看商品会员价,{{hours}}小时后自动恢复为售价。会员价格还剩
|
|
查看商品会员价,{{hours}}小时后自动恢复为售价。会员价格还剩
|
|
<view class="" style="display: inline-block;margin-left: 10rpx;">
|
|
<view class="" style="display: inline-block;margin-left: 10rpx;">
|
|
@@ -31,44 +32,44 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="lMember" v-if="token&&role=='hdyh'" @click="toPage('info')">
|
|
<view class="lMember" v-if="token&&role=='hdyh'" @click="toPage('info')">
|
|
- <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">
|
|
{{userInfo.phone}}
|
|
{{userInfo.phone}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view class="lMember" v-if="token&&role=='svip'" @click="toPage('info')">
|
|
<view class="lMember" v-if="token&&role=='svip'" @click="toPage('info')">
|
|
- <text class="btn1">{{userInfo.nickname?userInfo.nickname:'默认用户(S-VIP)'}}</text>
|
|
|
|
|
|
+ <text class="btn1">{{userInfo.nickname?userInfo.nickname+'(S-VIP)':'默认用户(S-VIP)'}}</text>
|
|
<view class="botDes" v-if="userInfo.phone">
|
|
<view class="botDes" v-if="userInfo.phone">
|
|
{{userInfo.phone}}
|
|
{{userInfo.phone}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view class="lMember" v-if="token&&role=='gvip'" @click="toPage('info')">
|
|
<view class="lMember" v-if="token&&role=='gvip'" @click="toPage('info')">
|
|
- <text class="btn1">{{userInfo.nickname?userInfo.nickname:'默认用户(G-VIP)'}}</text>
|
|
|
|
|
|
+ <text class="btn1">{{userInfo.nickname?userInfo.nickname+'(G-VIP)':'默认用户(G-VIP)'}}</text>
|
|
<view class="botDes" v-if="userInfo.phone">
|
|
<view class="botDes" v-if="userInfo.phone">
|
|
{{userInfo.phone}}
|
|
{{userInfo.phone}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="lMember" v-if="token&&role=='yk'" @click="toPage('info')">
|
|
<view class="lMember" v-if="token&&role=='yk'" @click="toPage('info')">
|
|
- <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">
|
|
{{userInfo.phone}}
|
|
{{userInfo.phone}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<text class="btn" v-if="token&&role=='sjkf'"
|
|
<text class="btn" v-if="token&&role=='sjkf'"
|
|
- @click="toPage('info')">{{userInfo.nickname?userInfo.nickname:'默认用户(设计客服)'}}</text>
|
|
|
|
|
|
+ @click="toPage('info')">{{userInfo.nickname?userInfo.nickname+'(设计客服)':'默认用户(设计客服)'}}</text>
|
|
<text class="btn" v-if="token&&role=='shkf'"
|
|
<text class="btn" v-if="token&&role=='shkf'"
|
|
- @click="toPage('info')">{{userInfo.nickname?userInfo.nickname:'默认用户(售后客服)'}}</text>
|
|
|
|
|
|
+ @click="toPage('info')">{{userInfo.nickname?userInfo.nickname+'(售后客服)':'默认用户(售后客服)'}}</text>
|
|
<text class="btn" v-if="token&&role=='yw'"
|
|
<text class="btn" v-if="token&&role=='yw'"
|
|
- @click="toPage('info')">{{userInfo.nickname?userInfo.nickname:'默认用户(业务客服)'}}</text>
|
|
|
|
|
|
+ @click="toPage('info')">{{userInfo.nickname?userInfo.nickname+'(业务客服)':'默认用户(业务客服)'}}</text>
|
|
|
|
|
|
<text class="btn" v-if="token&&role=='superAdmin'"
|
|
<text class="btn" v-if="token&&role=='superAdmin'"
|
|
- @click="toPage('info')">{{userInfo.nickname?userInfo.nickname:'默认用户(超级管理员)'}}</text>
|
|
|
|
|
|
+ @click="toPage('info')">{{userInfo.nickname?userInfo.nickname+'(超级管理员)':'默认用户(超级管理员)'}}</text>
|
|
|
|
|
|
<text class="btn" v-if="token&&role=='nomal'"
|
|
<text class="btn" v-if="token&&role=='nomal'"
|
|
- @click="toPage('info')">{{userInfo.nickname?userInfo.nickname:'默认用户(普通员工)'}}</text>
|
|
|
|
|
|
+ @click="toPage('info')">{{userInfo.nickname?userInfo.nickname+'(普通员工)':'默认用户(普通员工)'}}</text>
|
|
</view>
|
|
</view>
|
|
<image :src="picUrl+'/static/my/set2.png'" mode="" @click="toPage('info')"
|
|
<image :src="picUrl+'/static/my/set2.png'" mode="" @click="toPage('info')"
|
|
style="width: 37rpx;height: 41rpx;margin-right: 22rpx;">
|
|
style="width: 37rpx;height: 41rpx;margin-right: 22rpx;">
|
|
@@ -113,7 +114,7 @@
|
|
<u-action-sheet :actions="list" :title="title" :show="show" cancelText="取消" @close="show=false"
|
|
<u-action-sheet :actions="list" :title="title" :show="show" cancelText="取消" @close="show=false"
|
|
@select="handleSel"></u-action-sheet>
|
|
@select="handleSel"></u-action-sheet>
|
|
</view>
|
|
</view>
|
|
- <u-loading-page v-else :loading="loading" image="/static/index/logo.png" loading-text="页面加载中..."></u-loading-page>
|
|
|
|
|
|
+ <!-- <u-loading-page v-else :loading="loading" image="/static/index/logo.png" loading-text="页面加载中..."></u-loading-page> -->
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -226,9 +227,9 @@
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- // this.role = 'hdyh'
|
|
|
|
- // this.checkRole()
|
|
|
|
- // return
|
|
|
|
|
|
+ this.role = 'superAdmin'
|
|
|
|
+ this.checkRole()
|
|
|
|
+ return
|
|
if (res.data.status) {
|
|
if (res.data.status) {
|
|
switch (res.data.type) {
|
|
switch (res.data.type) {
|
|
case 0:
|
|
case 0:
|
|
@@ -446,7 +447,7 @@
|
|
if (this.userInfo.role == 1) {
|
|
if (this.userInfo.role == 1) {
|
|
this.serList.push({
|
|
this.serList.push({
|
|
icon: this.picUrl + '/static/my/tg.png',
|
|
icon: this.picUrl + '/static/my/tg.png',
|
|
- name: '团购商品',
|
|
|
|
|
|
+ name: '活动商品',
|
|
url: '/pages/my/actGoods/index'
|
|
url: '/pages/my/actGoods/index'
|
|
})
|
|
})
|
|
} else if (this.userInfo.role == 2) {
|
|
} else if (this.userInfo.role == 2) {
|
|
@@ -489,7 +490,7 @@
|
|
if (this.userInfo.role == 1) {
|
|
if (this.userInfo.role == 1) {
|
|
this.serList.push({
|
|
this.serList.push({
|
|
icon: this.picUrl + '/static/my/tg.png',
|
|
icon: this.picUrl + '/static/my/tg.png',
|
|
- name: '团购商品',
|
|
|
|
|
|
+ name: '活动商品',
|
|
url: '/pages/my/actGoods/index'
|
|
url: '/pages/my/actGoods/index'
|
|
})
|
|
})
|
|
} else if (this.userInfo.role == 2) {
|
|
} else if (this.userInfo.role == 2) {
|
|
@@ -531,7 +532,7 @@
|
|
if (this.userInfo.role == 1) {
|
|
if (this.userInfo.role == 1) {
|
|
this.serList.push({
|
|
this.serList.push({
|
|
icon: this.picUrl + '/static/my/tg.png',
|
|
icon: this.picUrl + '/static/my/tg.png',
|
|
- name: '团购商品',
|
|
|
|
|
|
+ name: '活动商品',
|
|
url: '/pages/my/actGoods/index'
|
|
url: '/pages/my/actGoods/index'
|
|
})
|
|
})
|
|
} else if (this.userInfo.role == 2) {
|
|
} else if (this.userInfo.role == 2) {
|
|
@@ -571,7 +572,7 @@
|
|
if (this.userInfo.role == 1) {
|
|
if (this.userInfo.role == 1) {
|
|
this.serList.push({
|
|
this.serList.push({
|
|
icon: this.picUrl + '/static/my/tg.png',
|
|
icon: this.picUrl + '/static/my/tg.png',
|
|
- name: '团购商品',
|
|
|
|
|
|
+ name: '活动商品',
|
|
url: '/pages/my/actGoods/index'
|
|
url: '/pages/my/actGoods/index'
|
|
})
|
|
})
|
|
} else if (this.userInfo.role == 2) {
|
|
} else if (this.userInfo.role == 2) {
|
|
@@ -611,7 +612,7 @@
|
|
if (this.userInfo.role == 1) {
|
|
if (this.userInfo.role == 1) {
|
|
this.serList.push({
|
|
this.serList.push({
|
|
icon: this.picUrl + '/static/my/tg.png',
|
|
icon: this.picUrl + '/static/my/tg.png',
|
|
- name: '团购商品',
|
|
|
|
|
|
+ name: '活动商品',
|
|
url: '/pages/my/actGoods/index'
|
|
url: '/pages/my/actGoods/index'
|
|
})
|
|
})
|
|
} else if (this.userInfo.role == 2) {
|
|
} else if (this.userInfo.role == 2) {
|
|
@@ -642,6 +643,16 @@
|
|
name: '小程序使用指南',
|
|
name: '小程序使用指南',
|
|
url: '/pages/my/useLead/index'
|
|
url: '/pages/my/useLead/index'
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ icon: this.picUrl + '/static/my/jiang.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',
|
|
// icon: this.picUrl + '/static/other/aboutMe.png',
|
|
// name: '关于我们',
|
|
// name: '关于我们',
|
|
@@ -656,7 +667,7 @@
|
|
if (this.userInfo.role == 1) {
|
|
if (this.userInfo.role == 1) {
|
|
this.serList.push({
|
|
this.serList.push({
|
|
icon: this.picUrl + '/static/my/tg.png',
|
|
icon: this.picUrl + '/static/my/tg.png',
|
|
- name: '团购商品',
|
|
|
|
|
|
+ name: '活动商品',
|
|
url: '/pages/my/actGoods/index'
|
|
url: '/pages/my/actGoods/index'
|
|
})
|
|
})
|
|
} else if (this.userInfo.role == 2) {
|
|
} else if (this.userInfo.role == 2) {
|
|
@@ -671,7 +682,7 @@
|
|
if (this.userInfo.role == 1) {
|
|
if (this.userInfo.role == 1) {
|
|
this.serList.push({
|
|
this.serList.push({
|
|
icon: this.picUrl + '/static/my/tg.png',
|
|
icon: this.picUrl + '/static/my/tg.png',
|
|
- name: '团购商品',
|
|
|
|
|
|
+ name: '活动商品',
|
|
url: '/pages/my/actGoods/index'
|
|
url: '/pages/my/actGoods/index'
|
|
})
|
|
})
|
|
} else if (this.userInfo.role == 2) {
|
|
} else if (this.userInfo.role == 2) {
|
|
@@ -723,13 +734,21 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
icon: this.picUrl + '/static/my/tg.png',
|
|
icon: this.picUrl + '/static/my/tg.png',
|
|
- name: '团购商品',
|
|
|
|
|
|
+ name: '活动商品',
|
|
url: '/pages/my/actGoods/index'
|
|
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',
|
|
|
|
+ name: '添加售后',
|
|
|
|
+ url: '/pages/my/inviteSellAfter/index'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
icon: this.picUrl + '/static/my/qt.png',
|
|
icon: this.picUrl + '/static/my/qt.png',
|
|
name: '其他信息',
|
|
name: '其他信息',
|
|
url: '/pages/my/otherInfo/index'
|
|
url: '/pages/my/otherInfo/index'
|
|
@@ -761,7 +780,7 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
icon: this.picUrl + '/static/my/tg.png',
|
|
icon: this.picUrl + '/static/my/tg.png',
|
|
- name: '团购商品',
|
|
|
|
|
|
+ name: '活动商品',
|
|
url: '/pages/my/actGoods/index'
|
|
url: '/pages/my/actGoods/index'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -782,7 +801,7 @@
|
|
url: '/pages/my/sellAfter/index'
|
|
url: '/pages/my/sellAfter/index'
|
|
}, {
|
|
}, {
|
|
icon: this.picUrl + '/static/my/tg.png',
|
|
icon: this.picUrl + '/static/my/tg.png',
|
|
- name: '团购商品',
|
|
|
|
|
|
+ name: '活动商品',
|
|
url: '/pages/my/actGoods/index'
|
|
url: '/pages/my/actGoods/index'
|
|
}, {
|
|
}, {
|
|
icon: this.picUrl + '/static/my/sc.png',
|
|
icon: this.picUrl + '/static/my/sc.png',
|
|
@@ -814,7 +833,7 @@
|
|
url: '/pages/my/sellAfter/index'
|
|
url: '/pages/my/sellAfter/index'
|
|
}, {
|
|
}, {
|
|
icon: this.picUrl + '/static/my/tg.png',
|
|
icon: this.picUrl + '/static/my/tg.png',
|
|
- name: '团购商品',
|
|
|
|
|
|
+ name: '活动商品',
|
|
url: '/pages/my/actGoods/index'
|
|
url: '/pages/my/actGoods/index'
|
|
}, {
|
|
}, {
|
|
icon: this.picUrl + '/static/my/sc.png',
|
|
icon: this.picUrl + '/static/my/sc.png',
|