shish hace 5 años
padre
commit
17f58b8cc8
Se han modificado 2 ficheros con 13 adiciones y 12 borrados
  1. 1 0
      hdApp/src/pagesPurchase/gatherPay.vue
  2. 12 12
      hdApp/src/pagesPurchase/gathering.vue

+ 1 - 0
hdApp/src/pagesPurchase/gatherPay.vue

@@ -35,6 +35,7 @@
 
 <script>
 import { purchaseClearWxPay } from "@/api/purchase/index";
+import wexinPay from "@/utils/pay/wxPay";
 import { mapGetters } from "vuex";
 export default {
   name: "callback",

+ 12 - 12
hdApp/src/pagesPurchase/gathering.vue

@@ -190,20 +190,20 @@ export default {
     batchConfirm () {
       let arr = []
       if (this.selectList.length > 0) {
-            this.selectList.forEach(item => {
-              arr.push(item.id)
+
+        this.selectList.forEach(item => {
+          arr.push(item.id)
+        })
+        purchaseClearCreateOrder({ purchaseIds:arr.join(','),ghsId:this.option.id }).then(res => {
+          console.log('res ===>', res)
+          if(res.code == 1) {
+            this.pageTo({
+              url: '/pagesPurchase/gatherPay?orderSn=' + res.data.orderSn + '&actPrice=' + res.data.actPrice,
+              type: 2
             })
-            purchaseClearCreateOrder({ purchaseIds:arr.join(','),ghsId:this.option.id }).then(res => {
-              console.log('res ===>', res)
-              if(res.code == 1) {
-                this.pageTo({
-                  url: '/pagesPurchase/gatherPay?orderSn=' + res.data.orderSn + '&actPrice=' + res.data.actPrice,
-                  type: 2
-                })
-              }
-            }).catch(err => {console.log('err===>', err)})
+          }
+        }).catch(err => {console.log('err===>', err)})
 
-        } else if (res.cancel) {
       }
     },
     // 返回上一页