修改微信h5中充值会出现零钱充值的问题

master
lemon橪 2022-07-08 11:26:10 +08:00 committed by 学习很差啦
parent ba02c6ca7d
commit bc9c012bb2
2 changed files with 14 additions and 6 deletions

View File

@ -163,10 +163,10 @@
// #endif // #endif
if(this.routerVal.recharge_sn){ if(this.routerVal.recharge_sn){
this.payList = res.data.result.support.filter((item) => { this.payList = res.data.result.support.filter((item) => {
return item != "WALLET"; return item != "WALLET";
}) })
} }
else{ else{
this.payList = res.data.result.support; this.payList = res.data.result.support;
@ -179,6 +179,12 @@
this.payList = res.data.result.support.filter((item) => { this.payList = res.data.result.support.filter((item) => {
return item != "ALIPAY"; return item != "ALIPAY";
}); });
//
if(this.orderType == "RECHARGE"){
this.payList = res.data.result.support.filter((item) => {
return item == "WECHAT";
});
}
} }
// #endif // #endif

View File

@ -2,9 +2,11 @@
<view class="add-address"> <view class="add-address">
<div class="uForm"> <div class="uForm">
<u-form :border-bottom="false" :model="form" ref="uForm" :error-type="['toast']" :rule="rules"> <u-form :border-bottom="false" :model="form" ref="uForm" :error-type="['toast']" :rule="rules">
<!-- #ifndef H5 -->
<view class="selectAddress" @click="clickUniMap"> <view class="selectAddress" @click="clickUniMap">
选择收货地址 选择收货地址
</view> </view>
<!-- #endif -->
<u-form-item class="border" label="收货人" label-width="130" prop="name"> <u-form-item class="border" label="收货人" label-width="130" prop="name">
<u-input v-model="form.name" clearable placeholder="请输入收货人姓名" /> <u-input v-model="form.name" clearable placeholder="请输入收货人姓名" />
</u-form-item> </u-form-item>