充值功能

master
mabo 2021-06-25 18:47:16 +08:00
parent 974cc504d9
commit 1b2f6e221e
4 changed files with 12 additions and 11 deletions

View File

@ -6,7 +6,8 @@
</div>
<div class="pay-btn">
<Button type="primary" @click="$router.push('/')"></Button>
<Button type="info" @click="$router.push('home/myOrder')"></Button>
<Button type="info" v-if="$route.query.orderType ==='RECHARGE'" @click="$router.push('/home/MoneyManagement')"></Button>
<Button type="info" v-else @click="$router.push('/home/myOrder')"></Button>
</div>
</div>
</template>

View File

@ -34,7 +34,7 @@
alt="">
<span>微信</span>
</div>
<div v-if="support.includes('WALLET')" class="-box-item" @click="handlePay('WALLET')">
<div v-if="support.includes('WALLET') && $route.query.orderType !== 'RECHARGE'" class="-box-item" @click="handlePay('WALLET')">
<Icon custom="icomoon icon-wallet" size="60"/>
<span>余额支付</span>
<span>当前剩余({{ walletValue | unitPrice('¥') }})</span>

View File

@ -70,7 +70,7 @@ export default {
payCallback(params).then(res => {
if (res.result) {
clearInterval(this.interval);
this.$router.push('/payDone');
this.$router.push({path: '/payDone', query: {orderType: this.$route.query.orderType}});
}
});
}

View File

@ -441,7 +441,7 @@ export default {
editor,
},
watch: {
selectGoodsType: {
selectGoodsType: { //
handler(val) {
if (val && this.baseInfoForm.goodsType) {
this.goodsTypeWay.forEach((item) => {