diff --git a/packageA/pages/myGift/myGift.js b/packageA/pages/myGift/myGift.js index c1e8126..0d0c2af 100644 --- a/packageA/pages/myGift/myGift.js +++ b/packageA/pages/myGift/myGift.js @@ -16,6 +16,7 @@ Page({ isLoading: false, // 检测是否已经发送请求,防止重复发送请求 noMore: false, // 检测是否有更多数据,true为没有更多数据,false为还有数据 pageNum: 1, // 当前页数 + iurl: os.imghost, //图片前缀网址 }, clickTab(e) { @@ -40,7 +41,8 @@ Page({ url = '/api/weshop/libao/libaoFormvip/page'; }; - this.getData(true, url, data); + this.getData(true, url, data); + }, /** @@ -56,6 +58,23 @@ Page({ userInfo: data, }); }); + + getApp().request.promiseGet("/api/weshop/ad/page?pid=901&store_id=" + os.stoid, { + data: { + enabled: 1 + } + }).then(res => { + if (res.data.code == 0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length > 0) { + var a = res.data.data.pageData; + var tt = { + 'ad_code': os.imghost + a[0].ad_code, + 'media_link': '', + 'ad_weapplink': a[0].ad_weapplink, + 'bgcolor': a[0].bgcolor, + }; + self.setData({ ad_data: tt }); + } + }) }, /** diff --git a/packageA/pages/myGift/myGift.wxml b/packageA/pages/myGift/myGift.wxml index 731944e..dd4ab2c 100644 --- a/packageA/pages/myGift/myGift.wxml +++ b/packageA/pages/myGift/myGift.wxml @@ -1,5 +1,20 @@ + + + + + + + + + + + + + + {{item}} @@ -31,7 +46,7 @@ - 零售价{{filter.toFix(item.oldprice,2)}} + 已售{{item.salenum+item.virtualsales}}件 diff --git a/packageA/pages/myGift/myGift.wxss b/packageA/pages/myGift/myGift.wxss index 05f5d37..673f376 100644 --- a/packageA/pages/myGift/myGift.wxss +++ b/packageA/pages/myGift/myGift.wxss @@ -1,4 +1,7 @@ @charset "utf-8"; +.top_img image { + width: 100%; +} .c-a4 { color: #a4a4a4; diff --git a/packageA/pages/myGiftDetails/myGiftDetails.wxml b/packageA/pages/myGiftDetails/myGiftDetails.wxml index fe643fe..632e9b7 100644 --- a/packageA/pages/myGiftDetails/myGiftDetails.wxml +++ b/packageA/pages/myGiftDetails/myGiftDetails.wxml @@ -36,7 +36,7 @@ - 零售价{{filter.toFix(details.oldprice,2)}} + 已售{{details.salenum+details.virtualsales}}件 diff --git a/packageB/pages/user/collect_list/collect_list.wxml b/packageB/pages/user/collect_list/collect_list.wxml index 5f756a5..d5dfeec 100644 --- a/packageB/pages/user/collect_list/collect_list.wxml +++ b/packageB/pages/user/collect_list/collect_list.wxml @@ -49,10 +49,10 @@ {{item.prom_price?item.prom_price:item.final_price}} - - 零售价: - ¥{{item.market_price}} - + + + + diff --git a/packageB/pages/zuhegou/index/index.js b/packageB/pages/zuhegou/index/index.js index 0ec52e5..3ef5fe2 100644 --- a/packageB/pages/zuhegou/index/index.js +++ b/packageB/pages/zuhegou/index/index.js @@ -1099,6 +1099,7 @@ Page({ goods_price: newd.goods_price, member_goods_price: newd.goods_price, store_id: os.stoid, + state:0 }; if (th.data.s_cart_num) { updata.goods_num = th.data.s_cart_num; @@ -1889,6 +1890,7 @@ Page({ goods_price: cur_price, prom_id: th.data.act.id, store_id: os.stoid, + state:0 }; if (getApp().globalData.guide_id) { updata['guide_id'] = getApp().globalData.guide_id; diff --git a/pages/giftpack/buygiftpack/giftpackbuy.wxml b/pages/giftpack/buygiftpack/giftpackbuy.wxml index c440673..1256432 100644 --- a/pages/giftpack/buygiftpack/giftpackbuy.wxml +++ b/pages/giftpack/buygiftpack/giftpackbuy.wxml @@ -47,9 +47,9 @@ - - {{"零售价:¥"+items.giftPosPrice}} - + + + {{"活动开始时间:"+items.starTime}} diff --git a/pages/giftpack/giftpacklist/giftpacklist.wxml b/pages/giftpack/giftpacklist/giftpacklist.wxml index 5d0c711..b78bfe8 100644 --- a/pages/giftpack/giftpacklist/giftpacklist.wxml +++ b/pages/giftpack/giftpacklist/giftpacklist.wxml @@ -48,9 +48,9 @@ - - {{"零售价:"+giftPosPrice+"元"}} - + + + {{"已售:"+giftQty+"件"}} {{"数量:"+giftQty+"件"}} diff --git a/pages/giftpack/mygiftpack/mygiftpack.wxml b/pages/giftpack/mygiftpack/mygiftpack.wxml index 8b9b359..992d3a9 100644 --- a/pages/giftpack/mygiftpack/mygiftpack.wxml +++ b/pages/giftpack/mygiftpack/mygiftpack.wxml @@ -1,13 +1,13 @@ - + - + @@ -78,9 +78,9 @@ {{item.actTitle}} - - {{"零售价:¥"+item.giftPosPrice}} - + + + diff --git a/pages/goods/categoryList/categoryList.wxml b/pages/goods/categoryList/categoryList.wxml index 9ca6dc5..4db77d3 100644 --- a/pages/goods/categoryList/categoryList.wxml +++ b/pages/goods/categoryList/categoryList.wxml @@ -546,7 +546,7 @@ + {{item.prom_price}} - {{item.market_price}} + @@ -575,7 +575,7 @@ - {{item.market_price}} + 评论{{item.comment_count}} 已售{{item.sales_sum}} @@ -585,7 +585,7 @@ {{item.shop_price}} - {{item.market_price}} + @@ -601,7 +601,7 @@ {{item.shop_price}} - {{item.market_price}} + @@ -623,7 +623,7 @@ {{item.shop_price}} - {{item.market_price}} + @@ -639,7 +639,7 @@ {{item.shop_price}} - {{item.market_price}} + diff --git a/pages/goods/goodsList/goodsList.wxml b/pages/goods/goodsList/goodsList.wxml index 82e562a..47cbf8a 100644 --- a/pages/goods/goodsList/goodsList.wxml +++ b/pages/goods/goodsList/goodsList.wxml @@ -74,7 +74,7 @@ + {{item.prom_price}} - {{item.market_price}} + @@ -101,7 +101,7 @@ - {{item.market_price}} + 评论{{item.comment_count}} 已售{{item.sales_sum}} @@ -111,7 +111,7 @@ {{item.shop_price}} - {{item.market_price}} + 评论{{item.comment_count}} 已售{{item.sales_sum}} @@ -123,7 +123,7 @@ {{item.shop_price}} - {{item.market_price}} + @@ -142,7 +142,7 @@ {{item.shop_price}} - {{item.market_price}} + @@ -157,7 +157,7 @@ {{item.shop_price}} - {{item.market_price}} + @@ -189,7 +189,7 @@ + {{item.prom_price}} - {{item.market_price}} + @@ -216,7 +216,7 @@ - {{item.market_price}} + 评论{{item.comment_count}} 已售{{item.sales_sum}} @@ -226,7 +226,7 @@ {{item.shop_price}} - {{item.market_price}} + 评论{{item.comment_count}} 已售{{item.sales_sum}} @@ -238,7 +238,7 @@ {{item.shop_price}} - {{item.market_price}} + @@ -257,7 +257,7 @@ {{item.shop_price}} - {{item.market_price}} + @@ -272,7 +272,7 @@ {{item.shop_price}} - {{item.market_price}} + diff --git a/pages/goods/search/search.wxml b/pages/goods/search/search.wxml index 34b8305..8c71192 100644 --- a/pages/goods/search/search.wxml +++ b/pages/goods/search/search.wxml @@ -91,7 +91,7 @@ ¥{{item.prom_price}} - ¥{{item.market_price}} + 评论{{item.comment_count}} 已售{{item.sales_sum}} @@ -111,14 +111,14 @@ - ¥{{item.market_price}} + 评论{{item.comment_count}} 已售{{item.sales_sum}} ¥{{item.shop_price}} - ¥{{item.market_price}} + 评论{{item.comment_count}} 已售{{item.sales_sum}} @@ -127,7 +127,7 @@ ¥{{item.shop_price}} - ¥{{item.market_price}} + @@ -145,7 +145,7 @@ ¥{{item.shop_price}} - ¥{{item.market_price}} + 评论{{item.comment_count}} 已售{{item.sales_sum}} @@ -154,7 +154,7 @@ ¥{{item.shop_price}} - ¥{{item.market_price}} + 评论{{item.comment_count}} 已售{{item.sales_sum}}