fix(金币代理中心): 修复报错
This commit is contained in:
parent
60468f1d70
commit
4d0cea270f
@ -354,25 +354,27 @@ const checkingAccess = ref(true)
|
|||||||
const coinsAmount = ref('0')
|
const coinsAmount = ref('0')
|
||||||
const loadingBalance = ref(false)
|
const loadingBalance = ref(false)
|
||||||
|
|
||||||
|
const freightThreshold = ref(null)
|
||||||
|
|
||||||
const AmountList = computed(() => {
|
const AmountList = computed(() => {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
type: '>$0',
|
type: '>$0',
|
||||||
value: 0,
|
value: 0,
|
||||||
selectedStatus: freightThreshold.value.deliveryThreshold == 0,
|
selectedStatus: freightThreshold.value?.deliveryThreshold == 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
type: '>=$10',
|
type: '>=$10',
|
||||||
value: 10,
|
value: 10,
|
||||||
selectedStatus: freightThreshold.value.deliveryThreshold == 10,
|
selectedStatus: freightThreshold.value?.deliveryThreshold == 10,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 3,
|
id: 3,
|
||||||
type: '>=$50',
|
type: '>=$50',
|
||||||
value: 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 isAbleSelect = ref(false)
|
||||||
|
|
||||||
const freightThreshold = ref(null)
|
|
||||||
|
|
||||||
// 选项样式
|
// 选项样式
|
||||||
const amountStyle = (amountItem) => {
|
const amountStyle = (amountItem) => {
|
||||||
if (amountItem.selectedStatus) {
|
if (amountItem.selectedStatus) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user