tangning 2 years ago
parent
commit
9d50c1fbb2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/mobile/index.vue

+ 3 - 3
src/views/mobile/index.vue

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