forked from angelo/web-retail-h5
fix(hiPay): 订单移除联调默认值, 支付页面默认选中支付方式
This commit is contained in:
parent
f32a8cacb4
commit
ec52173a17
|
@ -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()
|
||||
})
|
||||
},
|
||||
|
|
|
@ -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: '',
|
||||
|
|
Loading…
Reference in New Issue