diff --git a/pages/goods/goodsList/goodsList.js b/pages/goods/goodsList/goodsList.js index 2318104..755822d 100644 --- a/pages/goods/goodsList/goodsList.js +++ b/pages/goods/goodsList/goodsList.js @@ -129,7 +129,7 @@ Page({ arr[i].content=content; //--送礼包-- - if(content.is_libao) { + if(parseInt(content.is_libao)) { //-- 获取 -- await getApp().request.promiseGet("/api/weshop/libao/libaoForm/page?id="+content.libao+"&store_id="+oo.stoid, { }).then(res => { @@ -138,7 +138,7 @@ Page({ }) } //--送赠品-- - if(content.is_gift) { + if(parseInt(content.is_gift)) { //-- 获取 -- await getApp().request.promiseGet("/api/weshop/prom/gift/page?id="+content.gift+"&store_id="+oo.stoid, { }).then(res => { diff --git a/pages/goods/goodsList/goodsList.wxml b/pages/goods/goodsList/goodsList.wxml index 89b1b89..6318e21 100644 --- a/pages/goods/goodsList/goodsList.wxml +++ b/pages/goods/goodsList/goodsList.wxml @@ -4,12 +4,12 @@ 满{{item.condition}} - 减{{item.content.money}}元 - 打{{item.content.sale}}折 - 送{{item.content.int}}积分 - 送{{item.content.coupon}}元优惠券 - 送{{item.content.gift_name}} - 送{{item.content.lb_name}} + 减{{item.content.money}}元 + 打{{item.content.sale}}折 + 送{{item.content.int}}积分 + 送{{item.content.coupon}}元优惠券 + 送{{item.content.gift_name}} + 送{{item.content.lb_name}}