Browse Source

参团更改

Rorschach 6 years atrás
parent
commit
3d7a09222a
1 changed files with 4 additions and 4 deletions
  1. 4 4
      pages/groupPage/group-details/group-details.js

+ 4 - 4
pages/groupPage/group-details/group-details.js

@@ -58,10 +58,10 @@ Page({
         })
         return false;
       }
-      //if(res.data.data.groupPurchaseOrder.status === 'BASE') {
+      if(res.data.data.groupPurchaseOrder.groupType === 'BASE') {
         //掉起支付
         this.prePayMap(res.data.data.prePayMap, res.data.data.groupPurchaseOrderDetail.orderId);
-      //}
+      }
 
     }).fail( (error) => {
       
@@ -88,7 +88,7 @@ Page({
         return false;
       }  
       //掉起支付
-      //this.prePayMap(res.data.data.prePayMap, res.data.data.orderId);
+      this.prePayMap(res.data.data.prePayMap, res.data.data.orderId);
     }).fail( (error) => {
       
     })
@@ -261,7 +261,7 @@ Page({
       orderId
     })
     //课本详情
-    httpRequestApi.getBookDetail(wx.getStorageSync('uid'),productId).success( (res) =>{
+    httpRequestApi.getBookDetail(wx.getStorageSync('uid'), productId).success( (res) =>{
       console.log('课本详情',res.data.data);
       const bookInfo = res.data.data.product;
       const lessonList = res.data.data.lessonList;