feat(global): 测试账号添加特殊判断,部分内容不可见
This commit is contained in:
parent
070f0e61cd
commit
a483b4c336
|
@ -98,7 +98,7 @@
|
||||||
ref="child2"
|
ref="child2"
|
||||||
@childMethodTrigger="callChildMethod"
|
@childMethodTrigger="callChildMethod"
|
||||||
></znNewsPopup>
|
></znNewsPopup>
|
||||||
<RegionSelect />
|
<RegionSelect v-if="userInfo.memberCode != 'BF66886688'" />
|
||||||
<!-- 直推排行弹窗
|
<!-- 直推排行弹窗
|
||||||
<directrank-popup
|
<directrank-popup
|
||||||
@callznMethodTrigger="callznMethod"
|
@callznMethodTrigger="callznMethod"
|
||||||
|
|
|
@ -1,333 +1,370 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<u-toast ref="uToast"></u-toast>
|
<u-toast ref="uToast"></u-toast>
|
||||||
<view v-if="!ifshowBtn" class="topbar">
|
<view v-if="!ifshowBtn" class="topbar">
|
||||||
<view class="levelList_i" v-for="(item, index) in topList" :key="index" @click.prevent="handleLink(item)">
|
<view
|
||||||
{{ item.name }}
|
class="levelList_i"
|
||||||
</view>
|
v-for="(item, index) in topList"
|
||||||
|
:key="index"
|
||||||
|
@click.prevent="handleLink(item)"
|
||||||
|
>
|
||||||
|
{{ item.name }}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="balance">
|
||||||
|
<view
|
||||||
|
class="ba_list"
|
||||||
|
:style="{ backgroundImage: 'url(' + item.backgroundImg + ')' }"
|
||||||
|
v-for="(item, index) in balanceList"
|
||||||
|
:key="index"
|
||||||
|
>
|
||||||
|
<view class="balance_title">
|
||||||
|
<view class="title_left">
|
||||||
|
<view class="">{{ item.pkAccountVal }}</view>
|
||||||
|
<image
|
||||||
|
v-if="!item.canSee"
|
||||||
|
@click="item.canSee = !item.canSee"
|
||||||
|
class="eyeimg"
|
||||||
|
src="../../../static/images/my_eye.png"
|
||||||
|
mode=""
|
||||||
|
></image>
|
||||||
|
<image
|
||||||
|
v-if="item.canSee"
|
||||||
|
@click="item.canSee = !item.canSee"
|
||||||
|
class="eyeimg"
|
||||||
|
src="../../../static/images/my_eye2.png"
|
||||||
|
mode=""
|
||||||
|
></image>
|
||||||
|
</view>
|
||||||
|
<view class="title_right" @click="goTrans">{{ '交易明细' }}</view>
|
||||||
|
</view>
|
||||||
|
<view class="balance_total">
|
||||||
|
{{ `${'总余额'}(${userInfo.currencyIcon})` }}
|
||||||
|
</view>
|
||||||
|
<view class="balance_total2">
|
||||||
|
<text v-if="item.canSee">{{ item.balance | numberToCurrency }}</text>
|
||||||
|
<text v-else>****</text>
|
||||||
|
</view>
|
||||||
|
|
||||||
</view>
|
<view class="balance_line">
|
||||||
<view class="balance">
|
<view>{{ `${'可用余额'}(${userInfo.currencyIcon})` }}</view>
|
||||||
<view class="ba_list" :style="{ backgroundImage: 'url(' + item.backgroundImg + ')' }"
|
<view>
|
||||||
v-for="(item,index) in balanceList" :key="index">
|
<text v-if="item.canSee">{{
|
||||||
<view class="balance_title">
|
item.availableBalance | numberToCurrency
|
||||||
<view class="title_left">
|
}}</text>
|
||||||
<view class="">{{item.pkAccountVal}}</view>
|
<text v-else>****</text>
|
||||||
<image v-if="!item.canSee" @click="item.canSee=!item.canSee" class="eyeimg"
|
</view>
|
||||||
src="../../../static/images/my_eye.png" mode=""></image>
|
</view>
|
||||||
<image v-if="item.canSee" @click="item.canSee=!item.canSee" class="eyeimg"
|
|
||||||
src="../../../static/images/my_eye2.png" mode=""></image>
|
|
||||||
</view>
|
|
||||||
<view class="title_right" @click="goTrans">{{'交易明细'}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="balance_total">
|
|
||||||
{{`${'总余额'}(${userInfo.currencyIcon})`}}
|
|
||||||
</view>
|
|
||||||
<view class="balance_total2">
|
|
||||||
<text v-if="item.canSee">{{item.balance|numberToCurrency}}</text>
|
|
||||||
<text v-else>****</text>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<view class="balance_line">
|
<view class="balance_line">
|
||||||
<view>{{`${'可用余额'}(${userInfo.currencyIcon})`}}</view>
|
<view style="display: flex; align-items: center">
|
||||||
<view>
|
<view style="margin-right: 20rpx">{{
|
||||||
<text v-if="item.canSee">{{item.availableBalance|numberToCurrency}}</text>
|
`${'不可用余额'}(${userInfo.currencyIcon})`
|
||||||
<text v-else>****</text>
|
}}</view>
|
||||||
</view>
|
<image
|
||||||
</view>
|
@click="showToast(item)"
|
||||||
|
style="width: 25rpx; height: 25rpx"
|
||||||
<view class="balance_line">
|
src="../../../static/images/my_tip.png"
|
||||||
|
mode=""
|
||||||
<view style="display: flex;align-items: center;">
|
>
|
||||||
<view style="margin-right: 20rpx;">{{`${'不可用余额'}(${userInfo.currencyIcon})`}}</view>
|
</image>
|
||||||
<image @click="showToast(item)" style="width: 25rpx;height:25rpx;"
|
</view>
|
||||||
src="../../../static/images/my_tip.png" mode="">
|
<view>
|
||||||
</image>
|
<text v-if="item.canSee">{{
|
||||||
|
item.unavailableBalance | numberToCurrency
|
||||||
</view>
|
}}</text>
|
||||||
<view>
|
<text v-else>****</text>
|
||||||
<text v-if="item.canSee">{{item.unavailableBalance|numberToCurrency}}</text>
|
</view>
|
||||||
<text v-else>****</text>
|
</view>
|
||||||
</view>
|
<view v-if="item.accountType == 4" class="balance_line">
|
||||||
</view>
|
<view>{{ `${'可提现金额'}(${userInfo.currencyIcon})` }}</view>
|
||||||
<view v-if="item.accountType == 4" class="balance_line">
|
<view>
|
||||||
<view>{{`${'可提现金额'}(${userInfo.currencyIcon})`}}</view>
|
<text v-if="item.canSee">{{
|
||||||
<view>
|
item.withdrawBalance | numberToCurrency
|
||||||
<text v-if="item.canSee">{{item.withdrawBalance|numberToCurrency}}</text>
|
}}</text>
|
||||||
<text v-else>****</text>
|
<text v-else>****</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<u-modal @confirm="toUnBind" @cancel='isNoBind=false' :show="isNoBind" title="提示" width="100%"
|
<u-modal
|
||||||
:showCancelButton="true" content='请先进行经销商认证'></u-modal>
|
@confirm="toUnBind"
|
||||||
</view>
|
@cancel="isNoBind = false"
|
||||||
|
:show="isNoBind"
|
||||||
|
title="提示"
|
||||||
|
width="100%"
|
||||||
|
:showCancelButton="true"
|
||||||
|
content="请先进行经销商认证"
|
||||||
|
></u-modal>
|
||||||
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import * as bal from "@/config/balance.js"
|
import * as bal from '@/config/balance.js'
|
||||||
export default {
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
topList: [
|
||||||
|
{
|
||||||
|
name: '充值',
|
||||||
|
path: '/pages/pay/index',
|
||||||
|
id: '1',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '提现',
|
||||||
|
path: '/pages/mine/balance/withdrawal',
|
||||||
|
id: '2',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '转账',
|
||||||
|
path: '/pages/mine/balance/transfer',
|
||||||
|
id: '3',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
tabActive: '',
|
||||||
|
balanceList: [],
|
||||||
|
userInfo: {},
|
||||||
|
ifshowBtn: false,
|
||||||
|
isNoBind: false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
|
let params = {
|
||||||
|
ifcz: true,
|
||||||
|
}
|
||||||
|
this.topList[0].path =
|
||||||
|
'/pages/pay/index?paramsPost=' + JSON.stringify(params)
|
||||||
|
this.getList()
|
||||||
|
this.userInfo = uni.getStorageSync('User')
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
this.gettopList()
|
||||||
|
this.ifCodeName()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
ifCodeName() {
|
||||||
|
if (this.userInfo.memberCode == 'BF66886688') {
|
||||||
|
this.ifshowBtn = true
|
||||||
|
} else {
|
||||||
|
this.ifshowBtn = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
gettopList() {
|
||||||
|
if (this.userInfo.pkCountry == 1 && this.userInfo.pkGradeId == 1) {
|
||||||
|
this.topList = [
|
||||||
|
{
|
||||||
|
name: '充值',
|
||||||
|
path: '/pages/pay/index',
|
||||||
|
id: '1',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '提现',
|
||||||
|
path: '/pages/mine/balance/withdrawal',
|
||||||
|
id: '2',
|
||||||
|
},
|
||||||
|
]
|
||||||
|
} else {
|
||||||
|
this.topList = [
|
||||||
|
{
|
||||||
|
name: '充值',
|
||||||
|
path: '/pages/pay/index',
|
||||||
|
id: '1',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '提现',
|
||||||
|
path: '/pages/mine/balance/withdrawal',
|
||||||
|
id: '2',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '转账',
|
||||||
|
path: '/pages/mine/balance/transfer',
|
||||||
|
id: '3',
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//交易明细跳转
|
||||||
|
goTrans() {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/mine/balance/transDetail',
|
||||||
|
})
|
||||||
|
},
|
||||||
|
showToast(item) {
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
message: `${'禁止消费金额'}:${item.lockAccount}\n${'禁止转账金额'}:${item.transferAccount}\n${'禁止提现金额'}:${item.withdrawAccount}`,
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
bal.getWalletBalance().then(res => {
|
||||||
|
res.data.memberWalletBalanceVOList.forEach(ele => {
|
||||||
|
ele.canSee = false
|
||||||
|
})
|
||||||
|
this.balanceList = res.data.memberWalletBalanceVOList
|
||||||
|
})
|
||||||
|
},
|
||||||
|
checkExit(item) {
|
||||||
|
bal
|
||||||
|
.getIsExist({
|
||||||
|
businessModule: item.id - 1,
|
||||||
|
})
|
||||||
|
.then(res => {
|
||||||
|
if (res.code == 200 && res.flag == 'Y') {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: item.path,
|
||||||
|
})
|
||||||
|
} else if (res.code == 200 && res.flag == 'N') {
|
||||||
|
this.isNoBind = true
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: "/pages/mine/addLicense/addLicense"
|
||||||
|
// })
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
toUnBind() {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/delear/index',
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
data() {
|
handleLink(item) {
|
||||||
return {
|
this.tabActive = item.path
|
||||||
topList: [{
|
if (item.id == 2 || item.id == 3) {
|
||||||
name: '充值',
|
if (this.userInfo.pkCountry == 1) {
|
||||||
path: '/pages/pay/index',
|
if (this.userInfo.pkGradeId == 1 && item.id == 2) {
|
||||||
id: '1'
|
} else {
|
||||||
}, {
|
bal
|
||||||
name: '提现',
|
.getIfAuth({
|
||||||
path: '/pages/mine/balance/withdrawal',
|
businessModule: item.id - 1,
|
||||||
id: '2'
|
})
|
||||||
}, {
|
.then(res => {
|
||||||
name: '转账',
|
if (res.code == 200 && res.flag == 'Y') {
|
||||||
path: '/pages/mine/balance/transfer',
|
this.checkExit(item)
|
||||||
id: '3'
|
} else if (res.code == 200 && res.flag == 'N') {
|
||||||
}, ],
|
this.smShow = true
|
||||||
tabActive: "",
|
uni.showToast({
|
||||||
balanceList: [],
|
title: '请先进行实名认证',
|
||||||
userInfo: {},
|
})
|
||||||
ifshowBtn: false,
|
uni.navigateTo({
|
||||||
isNoBind:false
|
url: '/pages/selfService/realName/realName',
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
})
|
||||||
onLoad() {
|
}
|
||||||
let params = {
|
} else {
|
||||||
ifcz: true
|
uni.navigateTo({
|
||||||
}
|
url: item.path,
|
||||||
this.topList[0].path = '/pages/pay/index?paramsPost=' + JSON.stringify(params)
|
})
|
||||||
this.getList()
|
}
|
||||||
this.userInfo = uni.getStorageSync('User')
|
} else {
|
||||||
},
|
let paramsPost = {
|
||||||
onShow() {
|
ifcz: true,
|
||||||
this.gettopList()
|
}
|
||||||
this.ifCodeName()
|
uni.navigateTo({
|
||||||
},
|
url: `${item.path}?paramsPost=${encodeURIComponent(JSON.stringify(paramsPost))}`,
|
||||||
methods: {
|
})
|
||||||
ifCodeName() {
|
}
|
||||||
if (this.userInfo.memberCode == 'CN68880628') {
|
},
|
||||||
this.ifshowBtn = true
|
},
|
||||||
} else {
|
}
|
||||||
this.ifshowBtn = false
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
gettopList() {
|
|
||||||
if (this.userInfo.pkCountry == 1 && this.userInfo.pkGradeId == 1) {
|
|
||||||
this.topList = [{
|
|
||||||
name: '充值',
|
|
||||||
path: '/pages/pay/index',
|
|
||||||
id: '1'
|
|
||||||
}, {
|
|
||||||
name: '提现',
|
|
||||||
path: '/pages/mine/balance/withdrawal',
|
|
||||||
id: '2'
|
|
||||||
}, ]
|
|
||||||
} else {
|
|
||||||
this.topList = [{
|
|
||||||
name: '充值',
|
|
||||||
path: '/pages/pay/index',
|
|
||||||
id: '1'
|
|
||||||
}, {
|
|
||||||
name: '提现',
|
|
||||||
path: '/pages/mine/balance/withdrawal',
|
|
||||||
id: '2'
|
|
||||||
}, {
|
|
||||||
name: '转账',
|
|
||||||
path: '/pages/mine/balance/transfer',
|
|
||||||
id: '3'
|
|
||||||
}, ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
//交易明细跳转
|
|
||||||
goTrans() {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/mine/balance/transDetail'
|
|
||||||
})
|
|
||||||
},
|
|
||||||
showToast(item) {
|
|
||||||
this.$refs.uToast.show({
|
|
||||||
message: `${'禁止消费金额'}:${item.lockAccount}\n${'禁止转账金额'}:${item.transferAccount}\n${'禁止提现金额'}:${item.withdrawAccount}`,
|
|
||||||
})
|
|
||||||
},
|
|
||||||
getList() {
|
|
||||||
|
|
||||||
bal.getWalletBalance().then(res => {
|
|
||||||
res.data.memberWalletBalanceVOList.forEach(ele => {
|
|
||||||
ele.canSee = false
|
|
||||||
})
|
|
||||||
this.balanceList = res.data.memberWalletBalanceVOList
|
|
||||||
})
|
|
||||||
},
|
|
||||||
checkExit(item) {
|
|
||||||
bal.getIsExist({
|
|
||||||
businessModule: item.id - 1
|
|
||||||
}).then((res) => {
|
|
||||||
if (res.code == 200 && res.flag == "Y") {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: item.path
|
|
||||||
})
|
|
||||||
} else if (res.code == 200 && res.flag == "N") {
|
|
||||||
this.isNoBind = true
|
|
||||||
// uni.navigateTo({
|
|
||||||
// url: "/pages/mine/addLicense/addLicense"
|
|
||||||
// })
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
toUnBind(){
|
|
||||||
uni.navigateTo({
|
|
||||||
url: "/pages/delear/index"
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
handleLink(item) {
|
|
||||||
this.tabActive = item.path;
|
|
||||||
if (item.id == 2 || item.id == 3) {
|
|
||||||
if (this.userInfo.pkCountry == 1) {
|
|
||||||
if (this.userInfo.pkGradeId == 1 && item.id == 2) {
|
|
||||||
|
|
||||||
} else {
|
|
||||||
bal.getIfAuth({
|
|
||||||
businessModule: item.id - 1
|
|
||||||
}).then(res => {
|
|
||||||
if (res.code == 200 && res.flag == "Y") {
|
|
||||||
|
|
||||||
this.checkExit(item)
|
|
||||||
} else if (res.code == 200 && res.flag == "N") {
|
|
||||||
this.smShow = true;
|
|
||||||
uni.showToast({
|
|
||||||
title: '请先进行实名认证'
|
|
||||||
})
|
|
||||||
uni.navigateTo({
|
|
||||||
url: "/pages/selfService/realName/realName"
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: item.path
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
|
||||||
let paramsPost = {
|
|
||||||
ifcz: true
|
|
||||||
};
|
|
||||||
uni.navigateTo({
|
|
||||||
url: `${item.path}?paramsPost=${encodeURIComponent(JSON.stringify(paramsPost))}`
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.content {
|
.content {
|
||||||
|
background: #f2f2f2;
|
||||||
|
padding-bottom: 40rpx;
|
||||||
|
|
||||||
background: #f2f2f2;
|
.topbar {
|
||||||
padding-bottom: 40rpx;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 27rpx 0;
|
||||||
|
background-color: #ffffff;
|
||||||
|
|
||||||
.topbar {
|
.levelList_i {
|
||||||
|
min-width: 200rpx;
|
||||||
|
height: 60rpx;
|
||||||
|
border: 2rpx solid #dddddd;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 30rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
margin: 0 22rpx;
|
||||||
|
}
|
||||||
|
|
||||||
display: flex;
|
.levelList_i:active {
|
||||||
align-items: center;
|
background-color: #005bac;
|
||||||
justify-content: center;
|
color: #ffffff;
|
||||||
padding: 27rpx 0;
|
}
|
||||||
background-color: #FFFFFF;
|
}
|
||||||
|
|
||||||
.levelList_i {
|
.balance {
|
||||||
min-width: 200rpx;
|
padding: 0 23rpx;
|
||||||
height: 60rpx;
|
background: #f2f2f2;
|
||||||
border: 2rpx solid #DDDDDD;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
cursor: pointer;
|
|
||||||
border-radius: 30rpx;
|
|
||||||
font-size: 30rpx;
|
|
||||||
margin: 0 22rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.levelList_i:active {
|
.ba_list {
|
||||||
background-color: #005BAC;
|
margin-top: 30rpx;
|
||||||
color: #ffffff;
|
padding: 40rpx 20rpx;
|
||||||
}
|
border-radius: 25rpx;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
|
||||||
}
|
.balance_title {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
.balance {
|
.title_left {
|
||||||
padding: 0 23rpx;
|
font-size: 32rpx;
|
||||||
background: #F2F2F2;
|
font-family: Source Han Sans CN;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333333;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.eyeimg {
|
||||||
|
margin-left: 18rpx;
|
||||||
|
width: 38rpx;
|
||||||
|
height: 25rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.ba_list {
|
.title_right {
|
||||||
margin-top: 30rpx;
|
font-size: 24rpx;
|
||||||
padding: 40rpx 20rpx;
|
font-family: Source Han Sans CN;
|
||||||
border-radius: 25rpx;
|
font-weight: 400;
|
||||||
background-size: 100% 100%;
|
color: #2e1aca;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.balance_title {
|
.balance_total {
|
||||||
display: flex;
|
font-size: 24rpx;
|
||||||
align-items: center;
|
font-family: Source Han Sans CN;
|
||||||
justify-content: space-between;
|
font-weight: 400;
|
||||||
|
color: #333333;
|
||||||
|
margin-top: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
.title_left {
|
.balance_total2 {
|
||||||
font-size: 32rpx;
|
font-size: 48rpx;
|
||||||
font-family: Source Han Sans CN;
|
font-family: Source Han Sans CN;
|
||||||
font-weight: bold;
|
font-weight: 400;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
display: flex;
|
margin-top: 5rpx;
|
||||||
align-items: center;
|
margin-bottom: 50rpx;
|
||||||
|
}
|
||||||
|
|
||||||
.eyeimg {
|
.balance_line {
|
||||||
margin-left: 18rpx;
|
display: flex;
|
||||||
width: 38rpx;
|
align-items: center;
|
||||||
height: 25rpx;
|
justify-content: space-between;
|
||||||
}
|
font-size: 24rpx;
|
||||||
}
|
font-family: Source Han Sans CN;
|
||||||
|
font-weight: 400;
|
||||||
.title_right {
|
color: #333333;
|
||||||
font-size: 24rpx;
|
margin-top: 5rpx;
|
||||||
font-family: Source Han Sans CN;
|
}
|
||||||
font-weight: 400;
|
}
|
||||||
color: #2e1aca;
|
}
|
||||||
}
|
}
|
||||||
}
|
</style>
|
||||||
|
|
||||||
.balance_total {
|
|
||||||
font-size: 24rpx;
|
|
||||||
font-family: Source Han Sans CN;
|
|
||||||
font-weight: 400;
|
|
||||||
color: #333333;
|
|
||||||
margin-top: 10rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.balance_total2 {
|
|
||||||
font-size: 48rpx;
|
|
||||||
font-family: Source Han Sans CN;
|
|
||||||
font-weight: 400;
|
|
||||||
color: #333333;
|
|
||||||
margin-top: 5rpx;
|
|
||||||
margin-bottom: 50rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.balance_line {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
font-size: 24rpx;
|
|
||||||
font-family: Source Han Sans CN;
|
|
||||||
font-weight: 400;
|
|
||||||
color: #333333;
|
|
||||||
margin-top: 5rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
|
@ -334,7 +334,11 @@
|
||||||
</u-button>
|
</u-button>
|
||||||
</view>
|
</view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
<RegionSelect ref="regionSelect" @success="getRegionSelect" />
|
<RegionSelect
|
||||||
|
v-if="isNormal"
|
||||||
|
ref="regionSelect"
|
||||||
|
@success="getRegionSelect"
|
||||||
|
/>
|
||||||
<!-- <talentList :drShow="drShow" @closeShow="closeShow"></talentList> -->
|
<!-- <talentList :drShow="drShow" @closeShow="closeShow"></talentList> -->
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
@ -383,7 +387,7 @@ export default {
|
||||||
name: '奖金明细',
|
name: '奖金明细',
|
||||||
imgurl: '../../static/images/mark2.png',
|
imgurl: '../../static/images/mark2.png',
|
||||||
menuKey: 'incomeDetail',
|
menuKey: 'incomeDetail',
|
||||||
ifshow: true,
|
ifshow: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
url: '/pages/ticket/index',
|
url: '/pages/ticket/index',
|
||||||
|
@ -405,42 +409,42 @@ export default {
|
||||||
name: '个人推广',
|
name: '个人推广',
|
||||||
imgurl: '../../static/images/list.svg',
|
imgurl: '../../static/images/list.svg',
|
||||||
menuKey: 'share',
|
menuKey: 'share',
|
||||||
ifshow: true,
|
ifshow: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
url: '/pages/userSecure/index',
|
url: '/pages/userSecure/index',
|
||||||
name: '账号安全',
|
name: '账号安全',
|
||||||
imgurl: '../../static/images/my_icon8.png',
|
imgurl: '../../static/images/my_icon8.png',
|
||||||
menuKey: '',
|
menuKey: 'userSecure',
|
||||||
ifshow: true,
|
ifshow: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
url: '/pages/addressList/index',
|
url: '/pages/addressList/index',
|
||||||
name: '地址管理',
|
name: '地址管理',
|
||||||
imgurl: '../../static/images/my_icon9.png',
|
imgurl: '../../static/images/my_icon9.png',
|
||||||
menuKey: '',
|
menuKey: 'addressList',
|
||||||
ifshow: true,
|
ifshow: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
url: '/pages/mine/directPush/index',
|
url: '/pages/mine/directPush/index',
|
||||||
name: '直推列表',
|
name: '直推列表',
|
||||||
imgurl: '../../static/images/mark5.png',
|
imgurl: '../../static/images/mark5.png',
|
||||||
menuKey: '',
|
menuKey: 'directPush',
|
||||||
ifshow: true,
|
ifshow: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
url: '/pages/mine/bindBank/index',
|
url: '/pages/mine/bindBank/index',
|
||||||
name: '银行信息',
|
name: '银行信息',
|
||||||
imgurl: '../../static/images/my_icon10.png',
|
imgurl: '../../static/images/my_icon10.png',
|
||||||
menuKey: '',
|
menuKey: 'bankInfo',
|
||||||
ifshow: true,
|
ifshow: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
url: '/pages/bonus/regional-assessment/index',
|
url: '/pages/bonus/regional-assessment/index',
|
||||||
name: '区域考核',
|
name: '区域考核',
|
||||||
imgurl: '../../static/images/mark5.png',
|
imgurl: '../../static/images/mark5.png',
|
||||||
menuKey: '',
|
menuKey: 'areaAssessment',
|
||||||
ifshow: true,
|
ifshow: false,
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// url: '/pages/mine/addNewPv/index',
|
// url: '/pages/mine/addNewPv/index',
|
||||||
|
@ -462,11 +466,16 @@ export default {
|
||||||
marketDynamicBoxInfo: {},
|
marketDynamicBoxInfo: {},
|
||||||
totalSumPv: 0,
|
totalSumPv: 0,
|
||||||
smallAreaPv: 0,
|
smallAreaPv: 0,
|
||||||
|
isNormal: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getInfo().finally(() => {
|
this.getInfo().then(isNormal => {
|
||||||
this.orderNum()
|
this.orderNum()
|
||||||
|
if (!isNormal) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.isNormal = isNormal
|
||||||
this.getRegionSelect()
|
this.getRegionSelect()
|
||||||
this.getMemberBoxCount()
|
this.getMemberBoxCount()
|
||||||
this.getMarketDynamicBoxCount()
|
this.getMarketDynamicBoxCount()
|
||||||
|
@ -636,12 +645,16 @@ export default {
|
||||||
api.getInfo().then(res => {
|
api.getInfo().then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.userInfo = res.data
|
this.userInfo = res.data
|
||||||
resolve()
|
|
||||||
if (this.userInfo.memberCode == 'CN68880628') {
|
if (this.userInfo.memberCode != 'BF66886688') {
|
||||||
this.ifSpecial = true
|
this.otherMenuList = this.otherMenuList.map(item => {
|
||||||
} else {
|
item.ifshow = true
|
||||||
this.ifSpecial = false
|
return item
|
||||||
|
})
|
||||||
|
resolve(true)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
resolve(false)
|
||||||
} else {
|
} else {
|
||||||
reject()
|
reject()
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
>
|
>
|
||||||
<u-collapse-item
|
<u-collapse-item
|
||||||
name="1"
|
name="1"
|
||||||
v-if="!ifcz && !isShare & (userInfo.memberCode != 'CN68880628')"
|
v-if="!ifcz && !isShare & (userInfo.memberCode != 'BF66886688')"
|
||||||
>
|
>
|
||||||
<view slot="title" class="pf">
|
<view slot="title" class="pf">
|
||||||
<img src="@/static/images/yhkzf.jpg" alt="" />
|
<img src="@/static/images/yhkzf.jpg" alt="" />
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue