tangning %!s(int64=2) %!d(string=hai) anos
pai
achega
20413421f5
Modificáronse 1 ficheiros con 18 adicións e 17 borrados
  1. 18 17
      src/views/mobile/index.vue

+ 18 - 17
src/views/mobile/index.vue

@@ -19,6 +19,7 @@ const is_weixn = computed(() => {
   }
 })
 const openId = computed(()=>{
+  console.log('getOpenId',getOpenId)
   return getOpenId
 })
 // let PAYSID = {
@@ -37,24 +38,24 @@ async function handelPay() {
     payType: is_weixn.value ? '1' : payType.value,
     openId:openId.value,
   }
-  console.log('handelPay', apiData)
-  const res = await openPay(apiData)
+  console.log('handelPay', apiData,openId)
+  // const res = await openPay(apiData)
   // console.log('apiData', res)
-  if (is_weixn.value) {
-    //微信内支付
-    onBridgeReady(res)
-  } else if (res.form || res.h5Url) {
-    console.log('payType', res.form || res.h5Url)
-    window.location.href = res.form || res.h5Url
-  } else {
-    showConfirm({
-      text: '支付异常',
-      type: 'err',
-      callback: (val) => {
-        console.log('我的测试计划', val)
-      }
-    })
-  }
+  // if (is_weixn.value) {
+  //   //微信内支付
+  //   onBridgeReady(res)
+  // } else if (res.form || res.h5Url) {
+  //   console.log('payType', res.form || res.h5Url)
+  //   window.location.href = res.form || res.h5Url
+  // } else {
+  //   showConfirm({
+  //     text: '支付异常',
+  //     type: 'err',
+  //     callback: (val) => {
+  //       console.log('我的测试计划', val)
+  //     }
+  //   })
+  // }
 }
 // 调微信支付
 function onBridgeReady(obj) {