fix.pay: 禁用支付宝支付选项的显示逻辑修复

在选择支付方式的页面中,修复了支付宝支付选项即使被禁用(disabled)也依然显示的问题。通过添加v-if条件判断,只有当支付方式未被禁用时,才展示对应的支付选项,从而提高了界面的交互逻辑准确性。
main
lenovo008\lenovo 4 months ago
parent 7f2456c0f4
commit 588aa285ea

@ -17,7 +17,7 @@
<view class="pay-title ss-p-l-30 ss-m-y-30">选择支付方式</view> <view class="pay-title ss-p-l-30 ss-m-y-30">选择支付方式</view>
<radio-group @change="onTapPay"> <radio-group @change="onTapPay">
<label class="pay-type-item" v-for="item in state.payMethods" :key="item.title"> <label class="pay-type-item" v-for="item in state.payMethods" :key="item.title">
<view <view v-if="!item.disabled"
class="pay-item ss-flex ss-col-center ss-row-between ss-p-x-30 border-bottom" class="pay-item ss-flex ss-col-center ss-row-between ss-p-x-30 border-bottom"
:class="{ 'disabled-pay-item': item.disabled }" :class="{ 'disabled-pay-item': item.disabled }"
> >

Loading…
Cancel
Save