fix: 设备首页不显示iccid
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 2m8s

This commit is contained in:
luo
2026-07-20 10:25:39 +08:00
parent d90a51ebf4
commit 59696a7e8e
5 changed files with 12 additions and 66 deletions

View File

@@ -155,15 +155,7 @@
</view>
<view class="payment-methods">
<view v-if="isDeviceAsset" class="method-item" :class="{ active: rechargePaymentMethod === 'wechat' }" @tap="selectRechargePaymentMethod('wechat')">
<view class="method-left">
<image class="method-icon" src="/static/wechat.png" mode="aspectFit"></image>
<text class="method-name">微信支付</text>
</view>
<view class="method-radio" :class="{ checked: rechargePaymentMethod === 'wechat' }"></view>
</view>
<view v-else class="method-item" :class="{ active: rechargePaymentMethod === 'alipay' }" @tap="selectRechargePaymentMethod('alipay')">
<view class="method-item" :class="{ active: rechargePaymentMethod === 'alipay' }" @tap="selectRechargePaymentMethod('alipay')">
<view class="method-left">
<view class="method-icon method-badge method-badge-alipay"></view>
<text class="method-name">支付宝支付</text>
@@ -226,15 +218,13 @@
const selectedAmount = ref(null);
const isCustomAmount = ref(false);
const customAmount = ref('');
const rechargePaymentMethod = ref('wechat');
const rechargePaymentMethod = ref('alipay');
const rechargeSubmitting = ref(false);
const rechargeOrderSubmittingKey = ref(null);
const isDeviceAsset = ref(true);
let assetTypePromise = null;
const paymentMethodOptions = computed(() => [
isDeviceAsset.value
? { label: '微信支付', value: 'wechat' }
: { label: '支付宝支付', value: 'alipay' }
{ label: '支付宝支付', value: 'alipay' }
]);
const rechargeAmounts = [
{ value: 1000, label: '10' },
@@ -308,7 +298,7 @@
return rechargeOrderSubmittingKey.value === getRechargeOrderSubmitKey(rechargeOrder);
};
const getDefaultRechargePaymentMethod = () => isDeviceAsset.value ? 'wechat' : 'alipay';
const getDefaultRechargePaymentMethod = () => 'alipay';
const normalizeRechargePaymentMethod = () => {
const defaultMethod = getDefaultRechargePaymentMethod();