|
@@ -37,7 +37,7 @@ async function handelPay() {
|
|
let apiData = {
|
|
let apiData = {
|
|
orderSn: orderSn.value,
|
|
orderSn: orderSn.value,
|
|
payType: is_weixn.value ? '1' : payType.value,
|
|
payType: is_weixn.value ? '1' : payType.value,
|
|
- openId:openId.value,
|
|
|
|
|
|
+ openId:openId,
|
|
}
|
|
}
|
|
console.log('handelPay', apiData,openId)
|
|
console.log('handelPay', apiData,openId)
|
|
// const res = await openPay(apiData)
|
|
// const res = await openPay(apiData)
|
|
@@ -112,7 +112,7 @@ function getDetial() {
|
|
}
|
|
}
|
|
async function handleWxlogin(wxAppId: string) {
|
|
async function handleWxlogin(wxAppId: string) {
|
|
const code = GetRequest('code')
|
|
const code = GetRequest('code')
|
|
- if (!openId.value && !code) {
|
|
|
|
|
|
+ if (!openId && !code) {
|
|
//微信登录
|
|
//微信登录
|
|
getWeChatCode(wxAppId)
|
|
getWeChatCode(wxAppId)
|
|
} else if (code) {
|
|
} else if (code) {
|
|
@@ -128,7 +128,7 @@ async function handleOpenPay() {
|
|
openPay({
|
|
openPay({
|
|
orderSn: GetRequest('orderSn'),
|
|
orderSn: GetRequest('orderSn'),
|
|
payType: payType.value,
|
|
payType: payType.value,
|
|
- openId:openId.value,
|
|
|
|
|
|
+ openId:openId,
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
let url = res.qrCodeUrl
|
|
let url = res.qrCodeUrl
|
|
})
|
|
})
|