3
0
Fork 0

fix(hiPay): 订单移除联调默认值, 支付页面默认选中支付方式

This commit is contained in:
woody 2025-09-02 10:22:40 +08:00
parent 96d8397b21
commit 7e54145fb1
2 changed files with 16 additions and 6 deletions

View File

@ -640,8 +640,18 @@ export default {
},
getPayConfig() {
api.payConfig().then(res => {
this.payList = res.data
if (res.code == 200) {
this.payList = res.data || {}
const firstPayAuth =
Object.keys(this.payList).find(key => this.payList[key] === true) ||
''
const paykey = Object.keys(PAY_AUTH).find(
key => PAY_AUTH[key] === firstPayAuth
)
this.whatPay = paykey
}
console.log(this.payList)
this.$forceUpdate()
})
},

View File

@ -254,11 +254,11 @@ export default {
pkCountryLabel: '',
pkCountryImg: '',
pkGradeVal: '',
memberName: 'windsword',
phone: 13333332211,
recName: '啊啊啊',
recPhone: '123333321221',
recAddress: '3123',
memberName: '',
phone: '',
recName: '',
recPhone: '',
recAddress: '',
},
deliList: [],
diqu: '',