|
@@ -302,15 +302,15 @@ export default {
|
|
|
|
|
|
try {
|
|
|
// 构建支付参数
|
|
|
- // const resUserCode = await ahtuCodeApi(this.userCode)
|
|
|
- // console.log(resUserCode)
|
|
|
+ const payWayId = getDevicePayWayId() // 获取设备对应的支付方式ID
|
|
|
const payData = {
|
|
|
"productName": "一号房间",
|
|
|
openId: localStorage.getItem('userOpenId'),
|
|
|
userId: this.userInfo.id,
|
|
|
productId: product.id,
|
|
|
amount: product.price,
|
|
|
- orderNo: Date.now()
|
|
|
+ orderNo: Date.now(),
|
|
|
+ payWayId: payWayId // 添加支付方式ID
|
|
|
}
|
|
|
|
|
|
// 调用后端支付接口
|