generated from chenhao/template-h5
隐藏提现相关内容
This commit is contained in:
parent
168d049b04
commit
844b132fe9
@ -89,28 +89,28 @@ const routes = [
|
||||
component: () => import('./views/User/Team.vue'),
|
||||
meta: { title: '我的好友' }
|
||||
},
|
||||
{
|
||||
path: '/Cashout',
|
||||
name: 'Cashout',
|
||||
component: () => import('./views/User/Wallet/Cashout/Cashout.vue'),
|
||||
meta: {
|
||||
title: '提现',
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/CashoutRecord',
|
||||
name: 'CashoutRecord',
|
||||
component: () => import('./views/User/Wallet/Cashout/CashoutRecord.vue'),
|
||||
meta: {
|
||||
title: '提现记录',
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/CashoutAccount',
|
||||
name: 'CashoutAccount',
|
||||
component: () => import('./views/User/Wallet/Cashout/CashoutAccount.vue'),
|
||||
meta: { title: '提现账号' }
|
||||
},
|
||||
// {
|
||||
// path: '/Cashout',
|
||||
// name: 'Cashout',
|
||||
// component: () => import('./views/User/Wallet/Cashout/Cashout.vue'),
|
||||
// meta: {
|
||||
// title: '提现',
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// path: '/CashoutRecord',
|
||||
// name: 'CashoutRecord',
|
||||
// component: () => import('./views/User/Wallet/Cashout/CashoutRecord.vue'),
|
||||
// meta: {
|
||||
// title: '提现记录',
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// path: '/CashoutAccount',
|
||||
// name: 'CashoutAccount',
|
||||
// component: () => import('./views/User/Wallet/Cashout/CashoutAccount.vue'),
|
||||
// meta: { title: '提现账号' }
|
||||
// },
|
||||
|
||||
{
|
||||
path: '/Category',
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
<span class="my_page__balance_title">当前余额(元)</span>
|
||||
<span class="my_page__balance_num" @click="$navigate('Balance')">{{ data.zijin?.toFixed(2) }}</span>
|
||||
</div>
|
||||
<button class="my_page__balance_btn" @click="$navigate('Cashout')">
|
||||
<button v-if="!hide" class="my_page__balance_btn" @click="$navigate('Cashout')">
|
||||
提现
|
||||
</button>
|
||||
</div>
|
||||
@ -69,7 +69,7 @@
|
||||
<b>服务中心</b>
|
||||
</div>
|
||||
<div class="my_page__service_list">
|
||||
<div @click="$navigate('CashoutAccount')">
|
||||
<div v-if="!hide" @click="$navigate('CashoutAccount')">
|
||||
<img src="/img/icon-my-service-1.png" alt="">
|
||||
<span>提现账号</span>
|
||||
<van-icon name="arrow" class="r"></van-icon>
|
||||
@ -106,7 +106,7 @@
|
||||
<van-cell is-link icon="/img/icon-settings-password.png" title="登录密码" size="large" value="修改"
|
||||
@click="changePasswordVisibled = true">
|
||||
</van-cell>
|
||||
<van-cell is-link icon="/img/icon-settings-cashout.png" title="提现账户" size="large" value="管理"
|
||||
<van-cell v-if="!hide" is-link icon="/img/icon-settings-cashout.png" title="提现账户" size="large" value="管理"
|
||||
@click="$navigate('/CashoutAccount')">
|
||||
</van-cell>
|
||||
<van-cell is-link icon="/img/icon-settings-logout.png" title="退出登录" size="large" @click="logout">
|
||||
@ -228,6 +228,7 @@ export default {
|
||||
isSendCode: false,
|
||||
sendCodeTime: 0,
|
||||
FollowQRCode: '',
|
||||
hide: true,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
当前余额 <van-icon name="question-o" @click.stop="showTerm = true"></van-icon>
|
||||
</b>
|
||||
|
||||
<div class="balance_page__record_link" @click="$navigate('CashoutRecord')">
|
||||
<div v-if="!hide" class="balance_page__record_link" @click="$navigate('CashoutRecord')">
|
||||
<img src="/img/icon-balance-co.png" alt="">
|
||||
<span>提现记录</span>
|
||||
<van-icon name="arrow"></van-icon>
|
||||
@ -19,7 +19,7 @@
|
||||
{{ data.total.totalsum?.toFixed(2) }}
|
||||
</b>
|
||||
|
||||
<button class="r" @click="toCashout">
|
||||
<button v-if="!hide" class="r" @click="toCashout">
|
||||
提现
|
||||
</button>
|
||||
</div>
|
||||
@ -65,7 +65,8 @@
|
||||
<van-tab title="分成" name="32"></van-tab>
|
||||
</van-tabs> -->
|
||||
|
||||
<BaseList ref="baselist" url="/v1/client/DUsermoneysClient" class="balance_page__list" :params="searchParams">
|
||||
<BaseList ref="baselist" url="/v1/client/DUsermoneysClient" class="balance_page__list"
|
||||
:params="searchParams">
|
||||
<template #default="{ item }">
|
||||
<div class="balance_page__item" :key="item.TradeCode">
|
||||
<table width="100%" cellpadding="0" cellspacing="0">
|
||||
@ -76,7 +77,9 @@
|
||||
item.balance?.toFixed(2) }}</div>
|
||||
</td>
|
||||
<td style="text-align: right;">
|
||||
<van-tag :class="item.nums > 0 ? 'balance_page__tag--in' : 'balance_page__tag--out'" style="margin-bottom: 2vw;">
|
||||
<van-tag
|
||||
:class="item.nums > 0 ? 'balance_page__tag--in' : 'balance_page__tag--out'"
|
||||
style="margin-bottom: 2vw;">
|
||||
{{ item.nums > 0 ? "增加:+" : "减少:"
|
||||
}}{{ (item.nums).toFixed(2) }}
|
||||
</van-tag>
|
||||
@ -156,7 +159,8 @@ export default {
|
||||
loading: false,
|
||||
showTerm: false,
|
||||
list: [],
|
||||
isVIP: ''
|
||||
isVIP: '',
|
||||
hide: true,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
@ -9,7 +9,8 @@
|
||||
<div v-if="card" class="cashout_page__card">
|
||||
<img :src="card.bankspname === '支付宝' ? '/img/icon-wallet-alipay.png' : '/img/icon-wallet-bankcard.png'"
|
||||
height="24" width="24" style="object-fit: cover;" />
|
||||
<span class="cashout_page__card_code">{{ card.realname }}({{ card.bankcardnumber }})</span>
|
||||
<span class="cashout_page__card_code">{{ card.realname }}({{ card.bankcardnumber
|
||||
}})</span>
|
||||
</div>
|
||||
<span v-else class="cashout_page__card">请选择到账账户</span>
|
||||
</div>
|
||||
@ -46,7 +47,8 @@
|
||||
<div class="cashout_page__card">
|
||||
<img :src="item.bankspname === '支付宝' ? '/img/icon-wallet-alipay.png' : '/img/icon-wallet-bankcard.png'"
|
||||
height="30" width="30" style="object-fit: cover;" />
|
||||
<span class="cashout_page__card_code">{{ item.realname }}({{ item.bankcardnumber }})</span>
|
||||
<span class="cashout_page__card_code">{{ item.realname }}({{ item.bankcardnumber
|
||||
}})</span>
|
||||
</div>
|
||||
</template>
|
||||
</van-cell>
|
||||
@ -86,12 +88,12 @@ export default {
|
||||
Promise.all([
|
||||
this.$get('/v1/client/DUsersClient').then(data => {
|
||||
this.wallet.Balance = data.data.zijin;
|
||||
if (data.data.userlevelname === '会员') {
|
||||
this.$showFailToast('您还未购买礼包产品成为VIP,暂不能提现!')
|
||||
setTimeout(() => {
|
||||
this.$navigate('/My')
|
||||
}, 1500);
|
||||
}
|
||||
// if (data.data.userlevelname === '会员') {
|
||||
// this.$showFailToast('您还未购买礼包产品成为VIP,暂不能提现!')
|
||||
// setTimeout(() => {
|
||||
// this.$navigate('/My')
|
||||
// }, 1500);
|
||||
// }
|
||||
}).catch(err => {
|
||||
this.$showFailToast(err.message);
|
||||
}),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user