Authored by zhangxiaoru

商品

@@ -102,7 +102,7 @@ const _getRelatedData = (idList) => { @@ -102,7 +102,7 @@ const _getRelatedData = (idList) => {
102 let goods = []; 102 let goods = [];
103 103
104 if (result && result.code === 200) { 104 if (result && result.code === 200) {
105 - console.log(result) 105 + console.log(result);
106 106
107 goods = productProcess.processProductList(result.data.product_list); 107 goods = productProcess.processProductList(result.data.product_list);
108 108
@@ -243,7 +243,7 @@ exports.index = (req, res, next) => { @@ -243,7 +243,7 @@ exports.index = (req, res, next) => {
243 243
244 if (studentGoods && studentGoods.data) { 244 if (studentGoods && studentGoods.data) {
245 _.forEach(studentGoods.data, function(obj) { 245 _.forEach(studentGoods.data, function(obj) {
246 - idList.push(obj.id); 246 + idList.push(obj.id);
247 }); 247 });
248 } 248 }
249 249
@@ -310,7 +310,7 @@ exports.index = (req, res, next) => { @@ -310,7 +310,7 @@ exports.index = (req, res, next) => {
310 // console.log(options); 310 // console.log(options);
311 res.render('student-market', options); 311 res.render('student-market', options);
312 312
313 - }) 313 + });
314 314
315 // return userAcquireStatus(uid, couponids.join(',')).then((cous) => { 315 // return userAcquireStatus(uid, couponids.join(',')).then((cous) => {
316 // coupons.data = _.get(coupons, 'data', []).map((item)=>{ 316 // coupons.data = _.get(coupons, 'data', []).map((item)=>{
@@ -384,7 +384,7 @@ exports.index = (req, res, next) => { @@ -384,7 +384,7 @@ exports.index = (req, res, next) => {
384 // // console.log(options); 384 // // console.log(options);
385 // res.render('student-market', options); 385 // res.render('student-market', options);
386 // }); 386 // });
387 - }) 387 + });
388 388
389 // Promise.all([getResource(code), vip()]).then(datas => { 389 // Promise.all([getResource(code), vip()]).then(datas => {
390 // let coupons, 390 // let coupons,