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