|
@@ -3,14 +3,12 @@
|
|
|
<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">
|
|
|
|
|
+ <!-- <view class="top"
|
|
|
|
|
+ :style="{'background':`linear-gradient(to bottom,#FEF9ED,#fff) ,url(${picUrl}/static/other/myW.png) no-repeat`}"> -->
|
|
|
|
|
+ <!-- <image class="myW" :src="picUrl+'/static/other/myW.png'" mode=""></image> -->
|
|
|
<view class="top">
|
|
<view class="top">
|
|
|
- <!-- <image class="myW" :src="picUrl+'/static/other/myW.png'" mode=""></image> -->
|
|
|
|
|
<view class="userInfo">
|
|
<view class="userInfo">
|
|
|
<view class="left">
|
|
<view class="left">
|
|
|
- <!-- <button class="avatarBox" @click="toPage('info')">
|
|
|
|
|
- <image class="avatar"
|
|
|
|
|
- :src="userInfo?userInfo.head:picUrl+'/static/other/defaultAvatar.png'"></image>
|
|
|
|
|
- </button> -->
|
|
|
|
|
<view class="avatarBox" @click="toPage('info')">
|
|
<view class="avatarBox" @click="toPage('info')">
|
|
|
<image class="avatar"
|
|
<image class="avatar"
|
|
|
:src="userInfo&&userInfo.head?userInfo.head:picUrl+'/static/other/defaultAvatar.png'">
|
|
:src="userInfo&&userInfo.head?userInfo.head:picUrl+'/static/other/defaultAvatar.png'">
|
|
@@ -98,7 +96,9 @@
|
|
|
<view class="serList">
|
|
<view class="serList">
|
|
|
<view class="item" @click="toPage(item)" v-for="(item,index) in serList">
|
|
<view class="item" @click="toPage(item)" v-for="(item,index) in serList">
|
|
|
<view class="left">
|
|
<view class="left">
|
|
|
- <image :src="item.icon" mode="heightFix" style="height: 31rpx;width: 36rpx;"></image>
|
|
|
|
|
|
|
+ <!-- <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>
|
|
<text>{{item.name}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="right">
|
|
<view class="right">
|
|
@@ -132,7 +132,6 @@
|
|
|
picUrl: this.$picUrl,
|
|
picUrl: this.$picUrl,
|
|
|
|
|
|
|
|
token: uni.getStorageSync('token'),
|
|
token: uni.getStorageSync('token'),
|
|
|
- // role: uni.getStorageSync('role'),
|
|
|
|
|
|
|
|
|
|
role: null,
|
|
role: null,
|
|
|
|
|
|
|
@@ -164,7 +163,7 @@
|
|
|
{
|
|
{
|
|
|
icon: this.$picUrl + '/static/other/aboutMe.png',
|
|
icon: this.$picUrl + '/static/other/aboutMe.png',
|
|
|
name: '关于我们',
|
|
name: '关于我们',
|
|
|
- url: '/pages/my/aboutMe/index'
|
|
|
|
|
|
|
+ url: '/pages/my/aboutMe/index',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
icon: this.$picUrl + '/static/my/qt.png',
|
|
icon: this.$picUrl + '/static/my/qt.png',
|
|
@@ -332,11 +331,6 @@
|
|
|
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
|
|
@@ -376,20 +370,6 @@
|
|
|
if (res1.code == 0) {
|
|
if (res1.code == 0) {
|
|
|
uni.setStorageSync('token', res1.data.token)
|
|
uni.setStorageSync('token', res1.data.token)
|
|
|
_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)
|
|
|
|
|
- // }
|
|
|
|
|
- // }
|
|
|
|
|
uni.removeStorageSync('inviteId')
|
|
uni.removeStorageSync('inviteId')
|
|
|
uni.removeStorageSync('afterSaleId')
|
|
uni.removeStorageSync('afterSaleId')
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -448,7 +428,6 @@
|
|
|
name: '其他信息',
|
|
name: '其他信息',
|
|
|
url: '/pages/my/otherInfo/index'
|
|
url: '/pages/my/otherInfo/index'
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
]
|
|
]
|
|
|
if (this.userInfo.role == 1) {
|
|
if (this.userInfo.role == 1) {
|
|
|
this.serList.push({
|
|
this.serList.push({
|
|
@@ -492,6 +471,20 @@
|
|
|
url: '/pages/my/otherInfo/index'
|
|
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 == 'gvip') {
|
|
} else if (this.role == 'gvip') {
|
|
|
this.serList = [{
|
|
this.serList = [{
|
|
|
icon: this.picUrl + '/static/my/set.png',
|
|
icon: this.picUrl + '/static/my/set.png',
|
|
@@ -521,6 +514,19 @@
|
|
|
url: '/pages/my/otherInfo/index'
|
|
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 == 'lhy') {
|
|
} else if (this.role == 'lhy') {
|
|
|
this.serList = [{
|
|
this.serList = [{
|
|
|
icon: this.picUrl + '/static/my/sc.png',
|
|
icon: this.picUrl + '/static/my/sc.png',
|
|
@@ -548,6 +554,19 @@
|
|
|
url: '/pages/my/otherInfo/index'
|
|
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 == 'hy') {
|
|
} else if (this.role == 'hy') {
|
|
|
this.serList = [{
|
|
this.serList = [{
|
|
|
icon: this.picUrl + '/static/my/sc.png',
|
|
icon: this.picUrl + '/static/my/sc.png',
|
|
@@ -575,6 +594,19 @@
|
|
|
url: '/pages/my/otherInfo/index'
|
|
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 == 'cydg') {
|
|
} else if (this.role == 'cydg') {
|
|
|
this.serList = [{
|
|
this.serList = [{
|
|
|
icon: this.picUrl + '/static/my/set.png',
|
|
icon: this.picUrl + '/static/my/set.png',
|
|
@@ -591,12 +623,6 @@
|
|
|
name: '一键联系',
|
|
name: '一键联系',
|
|
|
phone: this.userInfo.invitePhone
|
|
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: '小程序使用指南',
|
|
@@ -613,28 +639,43 @@
|
|
|
url: '/pages/my/otherInfo/index'
|
|
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 == 'hdhy') {
|
|
} else if (this.role == 'hdhy') {
|
|
|
- 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'
|
|
|
|
|
- }, ]
|
|
|
|
|
|
|
+ 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') {
|
|
} else if (this.role == 'superAdmin') {
|
|
|
this.serList = [{
|
|
this.serList = [{
|
|
|
icon: this.picUrl + '/static/my/set.png',
|
|
icon: this.picUrl + '/static/my/set.png',
|
|
@@ -646,6 +687,11 @@
|
|
|
name: '售后',
|
|
name: '售后',
|
|
|
url: '/pages/my/sellAfter/index'
|
|
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',
|
|
icon: this.picUrl + '/static/my/tg.png',
|
|
|
name: '团购商品',
|
|
name: '团购商品',
|
|
@@ -733,13 +779,7 @@
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
} else if (this.role == 'shkf') {
|
|
} else if (this.role == 'shkf') {
|
|
|
- this.serList = [
|
|
|
|
|
- // {
|
|
|
|
|
- // icon: this.picUrl + '/static/my/set.png',
|
|
|
|
|
- // name: '设置',
|
|
|
|
|
- // url: '/pages/my/set/index?role=' + this.role
|
|
|
|
|
- // },
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ this.serList = [{
|
|
|
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'
|