master
parent
8d7f3b8c8e
commit
0cec80bb7d
|
@ -7,6 +7,11 @@
|
|||
<image v-else :src="item.iconPath" style="width: 22px;height: 22px;"></image>
|
||||
<view :class="current==index?'footactive':'footmo'" style="margin-top: 4px;">{{item.text}}</view>
|
||||
</view>
|
||||
<view v-if="user_type!='personal'" @tap="choosefoot(index)" v-for="(item,index) in tabArr" :key="index" style="display: flex;justify-content: center;flex-direction: column;align-items: center;">
|
||||
<image v-if="current==index" :src="item.selectedIconPath" style="width: 22px;height: 22px;"></image>
|
||||
<image v-else :src="item.iconPath" style="width: 22px;height: 22px;"></image>
|
||||
<view :class="current==index?'footactive':'footmo'" style="margin-top: 4px;">{{item.text}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
src="/static/img/my/myb.png" mode="scaleToFill"></image>
|
||||
<view :style="{height:(statusBarHeight+50)+'px'}"></view>
|
||||
<!-- 内容框 -->
|
||||
<view class="posia zIn2 width100">
|
||||
<view class="posia zIn2 width100 padding-x120">
|
||||
<view class="disba padding20" style="margin: 0 20rpx 20rpx 20rpx;">
|
||||
<view class="disac width100">
|
||||
<!-- 头像 -->
|
||||
|
@ -204,11 +204,11 @@
|
|||
{src: '/static/img/my/shouh.png',title: '售后'},
|
||||
],
|
||||
useArr: [
|
||||
{src: '/static/img/my/pingt.png',title: '平台说明'},
|
||||
{src: '/static/img/my/hez.png',title: '商务合作'},
|
||||
{src: '/static/img/my/kef.png',title: '在线客服'},
|
||||
{src: '/static/img/my/diz.png',title: '地址管理'},
|
||||
{src: '/static/img/my/wenj.png',title: '分红规则'},
|
||||
// {src: '/static/img/my/pingt.png',title: '平台说明'},
|
||||
// {src: '/static/img/my/hez.png',title: '商务合作'},
|
||||
// {src: '/static/img/my/kef.png',title: '在线客服'},
|
||||
// {src: '/static/img/my/diz.png',title: '地址管理'},
|
||||
// {src: '/static/img/my/wenj.png',title: '分红规则'},
|
||||
],
|
||||
isMa: false,
|
||||
qRcode: '/static/img/my/ma.png',
|
||||
|
@ -262,6 +262,20 @@
|
|||
if(res.code==0){
|
||||
if(res.data.token!=''){
|
||||
this.user_type = res.data.user_type//权限
|
||||
if(this.user_type=='personal'){
|
||||
this.useArr = [
|
||||
{src: '/static/img/public/shoucactive.png',title: '收藏'},
|
||||
{src: '/static/img/my/hez.png',title: '商务合作'},
|
||||
]
|
||||
} else {
|
||||
this.useArr = [
|
||||
{src: '/static/img/my/pingt.png',title: '平台说明'},
|
||||
{src: '/static/img/my/hez.png',title: '商务合作'},
|
||||
{src: '/static/img/my/kef.png',title: '在线客服'},
|
||||
{src: '/static/img/my/diz.png',title: '地址管理'},
|
||||
{src: '/static/img/my/wenj.png',title: '分红规则'},
|
||||
]
|
||||
}
|
||||
uni.setStorageSync('token',res.data.token)//缓存token
|
||||
uni.setStorageSync('openid',res.data.openid)//缓存Openid
|
||||
uni.setStorageSync('expire',res.data.expire)//缓存失效时间(时间戳格式)
|
||||
|
@ -279,12 +293,6 @@
|
|||
this.checkCollection()
|
||||
this.userInfo()//调用获取用户信息事件
|
||||
}
|
||||
if(this.user_type=='personal'){
|
||||
this.useArr = [
|
||||
{src: '/static/img/public/shoucactive.png',title: '收藏'},
|
||||
{src: '/static/img/my/hez.png',title: '商务合作'},
|
||||
]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
zhuan(index){//调起转换分红收益弹框
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view>
|
||||
<view v-if="pageShow">
|
||||
<view v-if="pageShow" class="padding-x120">
|
||||
<!-- 使用标题栏 -->
|
||||
<status-nav @inputConfirm="inputConfirm" :statusBackg="true" :statusInput="true" :whereCome="whereCome*1" :backgroudColor="'#ffffff'" :tabcolor="'#ffffff'"></status-nav>
|
||||
<!-- 导航 -->
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -126,6 +126,11 @@ __webpack_require__.r(__webpack_exports__);
|
|||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
var _default =
|
||||
{
|
||||
name: 'footTab',
|
||||
|
|
|
@ -1 +1 @@
|
|||
<view><view style="height:56px;font-size:10px;border-top:1rpx solid #FFFFFF;background-color:#FFFFFF;position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;align-items:center;z-index:10;"><block wx:for="{{tabArr}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{user_type=='personal'&&index!=2}}"><view data-event-opts="{{[['tap',[['choosefoot',[index]]]]]}}" style="{{'display:flex;justify-content:center;flex-direction:column;align-items:center;'+('width:'+(user_type=='personal'?'33.3%':'25%')+';')}}" bindtap="__e"><block wx:if="{{current==index}}"><image style="width:22px;height:22px;" src="{{item.selectedIconPath}}"></image></block><block wx:else><image style="width:22px;height:22px;" src="{{item.iconPath}}"></image></block><view class="{{[current==index?'footactive':'footmo']}}" style="margin-top:4px;">{{item.text}}</view></view></block></block></view></view>
|
||||
<view><view style="height:56px;font-size:10px;border-top:1rpx solid #FFFFFF;background-color:#FFFFFF;position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;align-items:center;z-index:10;"><block wx:for="{{tabArr}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{user_type=='personal'&&index!=2}}"><view data-event-opts="{{[['tap',[['choosefoot',[index]]]]]}}" style="{{'display:flex;justify-content:center;flex-direction:column;align-items:center;'+('width:'+(user_type=='personal'?'33.3%':'25%')+';')}}" bindtap="__e"><block wx:if="{{current==index}}"><image style="width:22px;height:22px;" src="{{item.selectedIconPath}}"></image></block><block wx:else><image style="width:22px;height:22px;" src="{{item.iconPath}}"></image></block><view class="{{[current==index?'footactive':'footmo']}}" style="margin-top:4px;">{{item.text}}</view></view></block></block><block wx:for="{{tabArr}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{user_type!='personal'}}"><view data-event-opts="{{[['tap',[['choosefoot',[index]]]]]}}" style="display:flex;justify-content:center;flex-direction:column;align-items:center;" bindtap="__e"><block wx:if="{{current==index}}"><image style="width:22px;height:22px;" src="{{item.selectedIconPath}}"></image></block><block wx:else><image style="width:22px;height:22px;" src="{{item.iconPath}}"></image></block><view class="{{[current==index?'footactive':'footmo']}}" style="margin-top:4px;">{{item.text}}</view></view></block></block></view></view>
|
|
@ -341,12 +341,12 @@ var QRCode = __webpack_require__(/*! ../../../jsFile/qrcode.js */ 51).default;va
|
|||
{ src: '/static/img/my/shouh.png', title: '售后' }],
|
||||
|
||||
useArr: [
|
||||
{ src: '/static/img/my/pingt.png', title: '平台说明' },
|
||||
{ src: '/static/img/my/hez.png', title: '商务合作' },
|
||||
{ src: '/static/img/my/kef.png', title: '在线客服' },
|
||||
{ src: '/static/img/my/diz.png', title: '地址管理' },
|
||||
{ src: '/static/img/my/wenj.png', title: '分红规则' }],
|
||||
|
||||
// {src: '/static/img/my/pingt.png',title: '平台说明'},
|
||||
// {src: '/static/img/my/hez.png',title: '商务合作'},
|
||||
// {src: '/static/img/my/kef.png',title: '在线客服'},
|
||||
// {src: '/static/img/my/diz.png',title: '地址管理'},
|
||||
// {src: '/static/img/my/wenj.png',title: '分红规则'},
|
||||
],
|
||||
isMa: false,
|
||||
qRcode: '/static/img/my/ma.png',
|
||||
showScan: false,
|
||||
|
@ -399,6 +399,20 @@ var QRCode = __webpack_require__(/*! ../../../jsFile/qrcode.js */ 51).default;va
|
|||
if (res.code == 0) {
|
||||
if (res.data.token != '') {
|
||||
_this2.user_type = res.data.user_type; //权限
|
||||
if (_this2.user_type == 'personal') {
|
||||
_this2.useArr = [
|
||||
{ src: '/static/img/public/shoucactive.png', title: '收藏' },
|
||||
{ src: '/static/img/my/hez.png', title: '商务合作' }];
|
||||
|
||||
} else {
|
||||
_this2.useArr = [
|
||||
{ src: '/static/img/my/pingt.png', title: '平台说明' },
|
||||
{ src: '/static/img/my/hez.png', title: '商务合作' },
|
||||
{ src: '/static/img/my/kef.png', title: '在线客服' },
|
||||
{ src: '/static/img/my/diz.png', title: '地址管理' },
|
||||
{ src: '/static/img/my/wenj.png', title: '分红规则' }];
|
||||
|
||||
}
|
||||
uni.setStorageSync('token', res.data.token); //缓存token
|
||||
uni.setStorageSync('openid', res.data.openid); //缓存Openid
|
||||
uni.setStorageSync('expire', res.data.expire); //缓存失效时间(时间戳格式)
|
||||
|
@ -416,12 +430,6 @@ var QRCode = __webpack_require__(/*! ../../../jsFile/qrcode.js */ 51).default;va
|
|||
this.checkCollection();
|
||||
this.userInfo(); //调用获取用户信息事件
|
||||
}
|
||||
if (this.user_type == 'personal') {
|
||||
this.useArr = [
|
||||
{ src: '/static/img/public/shoucactive.png', title: '收藏' },
|
||||
{ src: '/static/img/my/hez.png', title: '商务合作' }];
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
zhuan: function zhuan(index) {//调起转换分红收益弹框
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue