Commit d39b815dc5af0c4f7de0b0dd813365c25f7dec2e

Authored by yvan.ni
1 parent c4619391

搜索传到测试,oa

pages/goods/goodsList/goodsList.js
@@ -333,7 +333,7 @@ Page({ @@ -333,7 +333,7 @@ Page({
333 await getApp().request.promiseGet(url, {}).then(res => { 333 await getApp().request.promiseGet(url, {}).then(res => {
334 var prom =null; 334 var prom =null;
335 if(res && res.data) prom=res.data.data; 335 if(res && res.data) prom=res.data.data;
336 - if (prom != null && prom.is_end==0 && prom.end_time>now && (prom.start_time<now || (prom.show_time && prom.show_time<now)) ) { 336 + if (prom != null && prom.is_end==0 && prom.end_time>now && (prom.start_time<now || (prom_type!=2 && prom.show_time && prom.show_time<now)) ) {
337 item.prom_price = res.data.data.price; 337 item.prom_price = res.data.data.price;
338 if(res.data.data.user_price) item.prom_price=res.data.data.user_price; 338 if(res.data.data.user_price) item.prom_price=res.data.data.user_price;
339 var vNum=res.data.data.virtual_num?res.data.data.virtual_num:0; 339 var vNum=res.data.data.virtual_num?res.data.data.virtual_num:0;
pages/goods/search/search.js
@@ -285,7 +285,7 @@ Page({ @@ -285,7 +285,7 @@ Page({
285 if (res.data.code == 0 && res.data.data) { 285 if (res.data.code == 0 && res.data.data) {
286 prom = res.data.data; 286 prom = res.data.data;
287 287
288 - if (prom != null && prom.is_end == 0 && prom.end_time > now && (prom.start_time < now || (prom.show_time && prom.show_time < now))) { 288 + if (prom != null && prom.is_end == 0 && prom.end_time > now && (prom.start_time < now || (prom_type!=2 && prom.show_time && prom.show_time < now))) {
289 item.prom_price = res.data.data.price; 289 item.prom_price = res.data.data.price;
290 if (res.data.data.user_price) item.prom_price = res.data.data.user_price; 290 if (res.data.data.user_price) item.prom_price = res.data.data.user_price;
291 var vNum = prom.virtual_num ? prom.virtual_num : 0; 291 var vNum = prom.virtual_num ? prom.virtual_num : 0;