Browse Source

推荐团购最多有六个

Limengbo 6 years ago
parent
commit
76168acc3d
2 changed files with 1 additions and 4 deletions
  1. 1 1
      component/group/group.js
  2. 0 3
      pages/groupPage/group-details/group-details.js

+ 1 - 1
component/group/group.js

@@ -14,7 +14,7 @@ export const groupInit = (that) => {
   that.getGroupList = function () {
     httpRequestApi.getGroupList().success( (res) => {
       console.log('推荐团购',res.data.data)
-      that.data.groupData.recommendList = res.data.data;
+      that.data.groupData.recommendList = res.data.data.splice(0,6);
       that.setData({
         groupData: that.data.groupData
       })

+ 0 - 3
pages/groupPage/group-details/group-details.js

@@ -355,9 +355,6 @@ Page({
   //再次发起团
   group: function () {
     this.openGroup();
-      // wx.navigateTo({
-      //   url: `/pages/groupPage/make-money/make-money?productId=${this.data.productId}&id=${this.data.orderId}&groupId=${this.data.groupId}`
-      // })
   },
 
   /**