diff --git a/src/views/RechargeAgency/index.vue b/src/views/RechargeAgency/index.vue index d9075f0..0dec141 100644 --- a/src/views/RechargeAgency/index.vue +++ b/src/views/RechargeAgency/index.vue @@ -354,25 +354,27 @@ const checkingAccess = ref(true) const coinsAmount = ref('0') const loadingBalance = ref(false) +const freightThreshold = ref(null) + const AmountList = computed(() => { return [ { id: 1, type: '>$0', value: 0, - selectedStatus: freightThreshold.value.deliveryThreshold == 0, + selectedStatus: freightThreshold.value?.deliveryThreshold == 0, }, { id: 2, type: '>=$10', value: 10, - selectedStatus: freightThreshold.value.deliveryThreshold == 10, + selectedStatus: freightThreshold.value?.deliveryThreshold == 10, }, { id: 3, type: '>=$50', value: 50, - selectedStatus: freightThreshold.value.deliveryThreshold == 50, + selectedStatus: freightThreshold.value?.deliveryThreshold == 50, }, ] }) @@ -381,8 +383,6 @@ const selectedAmount = ref({}) // 是否可以设置 const isAbleSelect = ref(false) -const freightThreshold = ref(null) - // 选项样式 const amountStyle = (amountItem) => { if (amountItem.selectedStatus) {