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