tangning 2 年之前
父节点
当前提交
678618c0ca
共有 2 个文件被更改,包括 7 次插入2 次删除
  1. 1 0
      src/views/mobile/index.vue
  2. 6 2
      src/views/pc/index.vue

+ 1 - 0
src/views/mobile/index.vue

@@ -33,6 +33,7 @@ async function handelPay() {
     payType: is_weixn.value ? '1' : payType.value,
     openId: 'dolor exercitation velit'
   }
+  console.log('handelPay',apiData)
   const res = await openPay(apiData)
   // console.log('apiData', res)
   if (is_weixn.value) {

+ 6 - 2
src/views/pc/index.vue

@@ -62,8 +62,12 @@ async function handleQueryOrderStatus() {
       showConfirm({
         text: response.payStatus === 2 ? '支付失败' : '支付成功',
         type: response.payStatus === 2 ? 'err' : 'success',
-        callback: (val) => {
-          console.log('点击支付,支付成功', val)
+        callback: () => {
+          if(response.payStatus === 2){
+            getCode()
+          }else{
+            window.close()
+          }
         }
       })
     }