3
0
Fork 0

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

This commit is contained in:
woody 2025-09-02 10:22:40 +08:00
parent f6387859cf
commit 9461e0beb4
2 changed files with 16 additions and 6 deletions

View File

@ -640,8 +640,18 @@ export default {
}, },
getPayConfig() { getPayConfig() {
api.payConfig().then(res => { 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() this.$forceUpdate()
}) })
}, },

View File

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