Commit 7796d4f39899b97df77fe5313a2974d378145441

Authored by taiyuan
1 parent b3cf1180

添加优惠促销列表prom_goods_id

pages/goods/goodsList/goodsList.js
@@ -67,11 +67,19 @@ Page({ @@ -67,11 +67,19 @@ Page({
67 67
68 if (0 != t.is_new && t.is_new != undefined) { url += "&is_new=" + t.is_new; } 68 if (0 != t.is_new && t.is_new != undefined) { url += "&is_new=" + t.is_new; }
69 if (0 != t.is_hot && t.is_hot != undefined) { url += "&is_hot=" + t.is_hot; } 69 if (0 != t.is_hot && t.is_hot != undefined) { url += "&is_hot=" + t.is_hot; }
  70 +
  71 +
  72 + // 优惠促销列表
  73 + if(t.prom_goods_id) {
  74 + url += '&prom_goods_id=' + t.prom_goods_id;
  75 + };
70 76
71 - if(getApp().globalData.userInfo){ 77 +
  78 + if(getApp().globalData.userInfo) {
72 url += "&user_id=" + getApp().globalData.userInfo.user_id; 79 url += "&user_id=" + getApp().globalData.userInfo.user_id;
73 } 80 }
74 81
  82 +
75 //优惠活动的凑单 83 //优惠活动的凑单
76 if(t.prom_type==3){ 84 if(t.prom_type==3){
77 if (0 != t.prom_id && t.prom_id != undefined) { url += "&prom_id=" + t.prom_id; } 85 if (0 != t.prom_id && t.prom_id != undefined) { url += "&prom_id=" + t.prom_id; }
@@ -251,6 +259,8 @@ Page({ @@ -251,6 +259,8 @@ Page({
251 } 259 }
252 }, 260 },
253 261
  262 +
  263 +
254 //--- 获取卡类列表 --- 264 //--- 获取卡类列表 ---
255 getPlusCardType: function (func) { 265 getPlusCardType: function (func) {
256 var storid = oo.stoid; 266 var storid = oo.stoid;