diff --git a/app.wxss b/app.wxss index a37615e..e161419 100644 --- a/app.wxss +++ b/app.wxss @@ -1206,5 +1206,15 @@ background: #ffe3e2; } +/* 去掉零售价划线 */ +.no_line_x{ + text-decoration: none !important; + font-size: 24rpx !important; + color: #acaaaa !important; +} +.no_line_c{ + text-decoration: none !important; +} + diff --git a/components/diy_goodsGroup/diy_goodsGroup.wxml b/components/diy_goodsGroup/diy_goodsGroup.wxml index 97b65a3..e4c0fc1 100644 --- a/components/diy_goodsGroup/diy_goodsGroup.wxml +++ b/components/diy_goodsGroup/diy_goodsGroup.wxml @@ -73,7 +73,7 @@ + ¥{{item.prom_price}} - ¥{{item.market_price}} + ¥{{item.market_price}} @@ -95,7 +95,7 @@ - + {{item.market_price}} @@ -111,7 +111,7 @@ - + {{item.market_price}} @@ -128,7 +128,7 @@ {{filter.toFix(item.shop_price,2)}} - + {{item.market_price}} @@ -156,7 +156,7 @@ - + {{item.market_price}} @@ -167,7 +167,7 @@ ¥{{item.shop_price}} - ¥{{item.market_price}} + ¥{{item.market_price}} @@ -248,7 +248,7 @@ + ¥{{item.prom_price}} - ¥{{item.market_price}} + ¥{{item.market_price}} @@ -269,7 +269,7 @@ - + {{item.market_price}} @@ -285,7 +285,7 @@ - + {{item.market_price}} @@ -302,7 +302,7 @@ {{filter.toFix(item.shop_price,2)}} - + {{item.market_price}} @@ -330,7 +330,7 @@ - + {{item.market_price}} @@ -340,7 +340,7 @@ ¥{{item.shop_price}} - ¥{{item.market_price}} + ¥{{item.market_price}} @@ -423,7 +423,7 @@ + ¥{{item.prom_price}} - ¥{{item.market_price}} + ¥{{item.market_price}} @@ -444,7 +444,7 @@ - + {{item.market_price}} @@ -460,7 +460,7 @@ - + {{item.market_price}} @@ -477,7 +477,7 @@ {{filter.toFix(item.shop_price,2)}} - + {{item.market_price}} @@ -505,7 +505,7 @@ - + {{item.market_price}} @@ -515,7 +515,7 @@ ¥{{item.shop_price}} - ¥{{item.market_price}} + ¥{{item.market_price}} @@ -600,7 +600,7 @@ + ¥{{item.prom_price}} - ¥{{item.market_price}} + ¥{{item.market_price}} @@ -623,7 +623,7 @@ - + {{item.market_price}} @@ -639,7 +639,7 @@ - + {{item.market_price}} @@ -656,7 +656,7 @@ {{filter.toFix(item.shop_price,2)}} - + {{item.market_price}} @@ -683,7 +683,7 @@ - + {{item.market_price}} @@ -694,7 +694,7 @@ ¥{{item.shop_price}} - ¥{{item.market_price}} + ¥{{item.market_price}} @@ -801,7 +801,7 @@ + ¥{{aitem.prom_price}} - ¥{{aitem.market_price}} + ¥{{aitem.market_price}} @@ -822,7 +822,7 @@ - + {{aitem.market_price}} @@ -838,7 +838,7 @@ - + {{aitem.market_price}} @@ -855,7 +855,7 @@ {{filter.toFix(aitem.shop_price,2)}} - + {{aitem.market_price}} @@ -883,7 +883,7 @@ - + {{aitem.market_price}} @@ -893,7 +893,7 @@ ¥{{aitem.shop_price}} - ¥{{aitem.market_price}} + ¥{{aitem.market_price}} diff --git a/components/diy_goodsGroup/diy_goodsGroup.wxss b/components/diy_goodsGroup/diy_goodsGroup.wxss index 496b5ff..e76398f 100644 --- a/components/diy_goodsGroup/diy_goodsGroup.wxss +++ b/components/diy_goodsGroup/diy_goodsGroup.wxss @@ -411,17 +411,20 @@ /*一个3列*/ .zs_goods_wai_san { - width: 236rpx; + /* width: 236rpx; */ + width: 242rpx; /* display: flex; margin-left: 10rpx; float: left; */ /* margin-bottom: 8rpx; */ background-color: white; overflow: hidden; + box-sizing: border-box; } .zs_goods_san { - width: 236rpx; + /* width: 236rpx; */ + width: 242rpx; } .zs_goods_3l { diff --git a/components/diy_groupbuy/diy_groupbuy.wxml b/components/diy_groupbuy/diy_groupbuy.wxml index e928d9e..6701dd3 100644 --- a/components/diy_groupbuy/diy_groupbuy.wxml +++ b/components/diy_groupbuy/diy_groupbuy.wxml @@ -39,7 +39,7 @@ {{aitem.goods_name}} ¥{{aitem.price}} - ¥{{aitem.market_price}} + ¥{{aitem.market_price}} - {{item.market_price}} + {{item.market_price}} @@ -132,7 +132,7 @@ - + {{item.market_price}} @@ -149,7 +149,7 @@ {{filter.toFix(item.shop_price,2)}} - + {{item.market_price}} @@ -177,7 +177,7 @@ - + {{item.market_price}} @@ -188,7 +188,7 @@ ¥{{item.shop_price}} - ¥{{item.market_price}} + ¥{{item.market_price}} @@ -255,7 +255,7 @@ + ¥{{item.prom_price}} - ¥{{item.market_price}} + ¥{{item.market_price}} @@ -276,7 +276,7 @@ - + {{item.market_price}} @@ -292,7 +292,7 @@ - + {{item.market_price}} @@ -309,7 +309,7 @@ {{filter.toFix(item.shop_price,2)}} - + {{item.market_price}} @@ -337,7 +337,7 @@ - + {{item.market_price}} @@ -347,7 +347,7 @@ ¥{{item.shop_price}} - ¥{{item.market_price}} + ¥{{item.market_price}} @@ -416,7 +416,7 @@ + ¥{{item.prom_price}} - ¥{{item.market_price}} + ¥{{item.market_price}} @@ -437,7 +437,7 @@ - + {{item.market_price}} @@ -453,7 +453,7 @@ - + {{item.market_price}} @@ -470,7 +470,7 @@ {{filter.toFix(item.shop_price,2)}} - + {{item.market_price}} @@ -498,7 +498,7 @@ - + {{item.market_price}} @@ -508,7 +508,7 @@ ¥{{item.shop_price}} - ¥{{item.market_price}} + ¥{{item.market_price}} @@ -581,7 +581,7 @@ + ¥{{item.prom_price}} - ¥{{item.market_price}} + ¥{{item.market_price}} @@ -604,7 +604,7 @@ - + {{item.market_price}} @@ -620,7 +620,7 @@ - + {{item.market_price}} @@ -637,7 +637,7 @@ {{filter.toFix(item.shop_price,2)}} - + {{item.market_price}} @@ -663,7 +663,7 @@ - + {{item.market_price}} @@ -674,7 +674,7 @@ ¥{{item.shop_price}} - ¥{{item.market_price}} + ¥{{item.market_price}} @@ -762,7 +762,7 @@ + ¥{{aitem.prom_price}} - ¥{{aitem.market_price}} + ¥{{aitem.market_price}} @@ -783,7 +783,7 @@ - + {{aitem.market_price}} @@ -799,7 +799,7 @@ - + {{aitem.market_price}} @@ -816,7 +816,7 @@ {{filter.toFix(aitem.shop_price,2)}} - + {{aitem.market_price}} @@ -844,7 +844,7 @@ - + {{aitem.market_price}} @@ -854,7 +854,7 @@ ¥{{aitem.shop_price}} - ¥{{aitem.market_price}} + ¥{{aitem.market_price}} diff --git a/components/goods_list/goods_list.wxml b/components/goods_list/goods_list.wxml index e15421d..5702fd8 100644 --- a/components/goods_list/goods_list.wxml +++ b/components/goods_list/goods_list.wxml @@ -30,7 +30,7 @@ - + {{item.market_price}} @@ -62,7 +62,7 @@ - + {{item.market_price}} @@ -80,7 +80,7 @@ - + {{item.market_price}} @@ -97,7 +97,7 @@ {{filter.toFix(item.shop_price,2)}} - + {{item.market_price}} @@ -124,7 +124,7 @@ - + {{item.market_price}} @@ -143,7 +143,7 @@ - + {{item.market_price}} diff --git a/packageC/pages/luckyGo/luckyGo_cart_ct/luckyGo_cart_ct.js b/packageC/pages/luckyGo/luckyGo_cart_ct/luckyGo_cart_ct.js index 578c154..04cb149 100644 --- a/packageC/pages/luckyGo/luckyGo_cart_ct/luckyGo_cart_ct.js +++ b/packageC/pages/luckyGo/luckyGo_cart_ct/luckyGo_cart_ct.js @@ -268,13 +268,14 @@ Page({ }, //计算商品预存款请求方法------------------------------------ async getGoodsAdvancesum(storageid, listform, cartList) { - - await getApp().request.promisePost("/api/weshop/store/get/" + storageid,{ - }).then(res=>{ - if(res.data.code==0){ - getApp().globalData.config = res.data.data - } - }) + if(!getApp().globalData.config){ + await getApp().request.promiseGet("/api/weshop/store/get/" + os.stoid,{ + }).then(res=>{ + if(res.data.code==0){ + getApp().globalData.config = res.data.data + } + }) + } if(!getApp().globalData.config) return false; let res = await getApp().request.promisePost(`/api/weshop/delphiapi/saveErpApi`, { diff --git a/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.wxml b/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.wxml index 196893a..ead2ea1 100644 --- a/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.wxml +++ b/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.wxml @@ -113,11 +113,11 @@ {{filters.toFix(luckGoInfo.group_price/100,2)}} - + 零售价:{{data.market_price}} - + diff --git a/packageC/pages/presell/cart/cart2_pre.js b/packageC/pages/presell/cart/cart2_pre.js index 1fd1b8d..3c3986f 100644 --- a/packageC/pages/presell/cart/cart2_pre.js +++ b/packageC/pages/presell/cart/cart2_pre.js @@ -398,13 +398,14 @@ Page({ }, //计算商品预存款请求方法------------------------------------ async getGoodsAdvancesum(storageid, listform, cartList) { - - await getApp().request.promisePost("/api/weshop/store/get/" + storageid,{ - }).then(res=>{ - if(res.data.code==0){ - getApp().globalData.config = res.data.data - } - }) + if(!getApp().globalData.config){ + await getApp().request.promiseGet("/api/weshop/store/get/" + os.stoid,{ + }).then(res=>{ + if(res.data.code==0){ + getApp().globalData.config = res.data.data + } + }) + } if(!getApp().globalData.config) return false; let res = await getApp().request.promisePost(`/api/weshop/delphiapi/saveErpApi`, { diff --git a/packageE/pages/cart/cart2/cart2.js b/packageE/pages/cart/cart2/cart2.js index a6ad0c1..bf16dac 100644 --- a/packageE/pages/cart/cart2/cart2.js +++ b/packageE/pages/cart/cart2/cart2.js @@ -410,12 +410,14 @@ Page({ //计算商品预存款请求方法------------------------------------ async getGoodsAdvancesum(storageid, listform, cartList) { - await getApp().request.promisePost("/api/weshop/store/get/" + storageid,{ - }).then(res=>{ - if(res.data.code==0){ - getApp().globalData.config = res.data.data - } - }) + if(!getApp().globalData.config){ + await getApp().request.promiseGet("/api/weshop/store/get/" + os.stoid,{ + }).then(res=>{ + if(res.data.code==0){ + getApp().globalData.config = res.data.data + } + }) + } if(!getApp().globalData.config) return false; let res = await getApp().request.promisePost(`/api/weshop/delphiapi/saveErpApi`, { data: { @@ -5533,6 +5535,7 @@ Page({ var prom = null; var gg = to.get_b_now(); getApp().request.promiseGet("/api/weshop/promgoods/get/" + os.stoid + "/" + prom_id, {}).then(res => { + if (res.data.code == 0) { prom = res.data.data; let min_value = 0 diff --git a/packageE/pages/cart/cart2/cart2.wxml b/packageE/pages/cart/cart2/cart2.wxml index 54c48b4..5780298 100644 --- a/packageE/pages/cart/cart2/cart2.wxml +++ b/packageE/pages/cart/cart2/cart2.wxml @@ -561,7 +561,7 @@ 使用优惠券 - ¥ {{formData.coupon_price}}元 - + 优惠活动 - ¥ {{filters.toFix(formData.cut_price,2)}}元 diff --git a/pages/activity/pind_list/pind_list.wxml b/pages/activity/pind_list/pind_list.wxml index 2e57bc9..d151b58 100644 --- a/pages/activity/pind_list/pind_list.wxml +++ b/pages/activity/pind_list/pind_list.wxml @@ -69,7 +69,7 @@ {{item.price}} - ¥{{item.shop_price}} + ¥{{item.shop_price}} diff --git a/pages/activity/seckill_list/seckill_list.wxml b/pages/activity/seckill_list/seckill_list.wxml index 5bceb1e..588ad3c 100644 --- a/pages/activity/seckill_list/seckill_list.wxml +++ b/pages/activity/seckill_list/seckill_list.wxml @@ -69,7 +69,7 @@ {{item.price}} - 零售价¥{{item.market_price}} + 零售价¥{{item.market_price}} diff --git a/pages/cart/cart2_inte/cart2_inte.js b/pages/cart/cart2_inte/cart2_inte.js index f6e0b33..dfadf4b 100644 --- a/pages/cart/cart2_inte/cart2_inte.js +++ b/pages/cart/cart2_inte/cart2_inte.js @@ -272,13 +272,14 @@ Page({ }, //计算商品预存款请求方法------------------------------------ async getGoodsAdvancesum(storageid, listform, cartList) { - - await getApp().request.promisePost("/api/weshop/store/get/" + storageid,{ - }).then(res=>{ - if(res.data.code==0){ - getApp().globalData.config = res.data.data - } - }) + if(!getApp().globalData.config){ + await getApp().request.promiseGet("/api/weshop/store/get/" + os.stoid,{ + }).then(res=>{ + if(res.data.code==0){ + getApp().globalData.config = res.data.data + } + }) + } if(!getApp().globalData.config) return false; let res = await getApp().request.promisePost(`/api/weshop/delphiapi/saveErpApi`, { diff --git a/pages/cart/cart2_pt/cart2_pt.js b/pages/cart/cart2_pt/cart2_pt.js index f3e596c..628716c 100644 --- a/pages/cart/cart2_pt/cart2_pt.js +++ b/pages/cart/cart2_pt/cart2_pt.js @@ -225,13 +225,14 @@ Page({ }, //计算商品预存款请求方法------------------------------------ async getGoodsAdvancesum(storageid, listform, cartList) { - - await getApp().request.promisePost("/api/weshop/store/get/" + storageid,{ - }).then(res=>{ - if(res.data.code==0){ - getApp().globalData.config = res.data.data - } - }) + if(!getApp().globalData.config){ + await getApp().request.promiseGet("/api/weshop/store/get/" + os.stoid,{ + }).then(res=>{ + if(res.data.code==0){ + getApp().globalData.config = res.data.data + } + }) + } if(!getApp().globalData.config) return false; let res = await getApp().request.promisePost(`/api/weshop/delphiapi/saveErpApi`, { diff --git a/pages/giftpack/buygiftpack/giftpackbuy.wxml b/pages/giftpack/buygiftpack/giftpackbuy.wxml index 5ac2c25..3919f50 100644 --- a/pages/giftpack/buygiftpack/giftpackbuy.wxml +++ b/pages/giftpack/buygiftpack/giftpackbuy.wxml @@ -47,7 +47,7 @@ - + {{"¥"+items.giftPosPrice}} diff --git a/pages/giftpack/giftpacklist/giftpacklist.wxml b/pages/giftpack/giftpacklist/giftpacklist.wxml index b5bb2de..948a3ca 100644 --- a/pages/giftpack/giftpacklist/giftpacklist.wxml +++ b/pages/giftpack/giftpacklist/giftpacklist.wxml @@ -63,7 +63,7 @@ - + {{is_retail_price?'零售价:':''}}{{giftPosPrice+"元"}} diff --git a/pages/giftpack/mygiftpack/mygiftpack.wxml b/pages/giftpack/mygiftpack/mygiftpack.wxml index ebd43f0..1222044 100644 --- a/pages/giftpack/mygiftpack/mygiftpack.wxml +++ b/pages/giftpack/mygiftpack/mygiftpack.wxml @@ -78,8 +78,8 @@ {{item.actTitle}} - - {{"¥"+item.giftPosPrice}} + + {{"¥"+item.giftPosPrice}} diff --git a/pages/goods/goodsInfo/goodsInfo.js b/pages/goods/goodsInfo/goodsInfo.js index 810cef2..a816cbd 100644 --- a/pages/goods/goodsInfo/goodsInfo.js +++ b/pages/goods/goodsInfo/goodsInfo.js @@ -31,6 +31,7 @@ Page({ color_type_one: 0, color_type_two: 1, is_no_plus: 1, + is_share_text:1, gid: "", stoid: o.stoid, url: o.url, @@ -3399,7 +3400,9 @@ Page({ if (res.data.code == 0) { prom = res.data.data; prom.price = prom.user_price; - + this.setData({ + is_share_text:prom.is_share_text + }) } }) } @@ -4281,6 +4284,9 @@ Page({ ee.get_normal(gid); return false; } + ee.setData({ + is_share_text:t.data.data.is_share_text + }) //----已经结束----- if (t.data.data.is_end == 1) { ee.get_normal(gid); @@ -5678,9 +5684,12 @@ Page({ context.fillText('强烈推荐', 64 * unit, 668 * unit); } - if (type == 1) { // 秒杀 - src = '../../../images/share/miao_share.png'; - context.drawImage(src, 54 * unit, 648 * unit, 200 * unit, 36 * unit); + if (type == 1) { // 秒杀 + + if(this.data.is_share_text==1){ + src = '../../../images/share/miao_share.png'; + context.drawImage(src, 54 * unit, 648 * unit, 200 * unit, 36 * unit); + } context.setTextAlign('left'); } @@ -6218,8 +6227,11 @@ Page({ context.stroke(); //画秒杀的图片 - var miaos_path = '../../../images/share/miao_share.png'; - context.drawImage(miaos_path, 43 * unit, 690 * unit, 222 * unit, 40 * unit); + if(th.data.is_share_text){ + var miaos_path = '../../../images/share/miao_share.png'; + context.drawImage(miaos_path, 43 * unit, 690 * unit, 222 * unit, 40 * unit); + } + context.setFillStyle("black") context.setFontSize(24 * unit) @@ -7741,7 +7753,7 @@ Page({ await getApp().request.promiseGet(url, {}).then(rs => { if (rs.data.code == 0) { f_more[i].price = rs.data.data.user_price; - + } }) } diff --git a/pages/goods/goodsInfo/goodsInfo.wxml b/pages/goods/goodsInfo/goodsInfo.wxml index 4f28081..cecfc93 100644 --- a/pages/goods/goodsInfo/goodsInfo.wxml +++ b/pages/goods/goodsInfo/goodsInfo.wxml @@ -99,8 +99,8 @@ ¥{{prom_price}} - 零售价:¥{{filters.toFix(data.market_price,2)}} - ¥{{filters.toFix(data.shop_price,2)}} + 零售价:¥{{filters.toFix(data.market_price,2)}} + ¥{{filters.toFix(data.shop_price,2)}} @@ -128,8 +128,8 @@ {{prom_price}} - 零售价:¥{{filters.toFix(data.market_price,2)}} - ¥{{filters.toFix(data.shop_price,2)}} + 零售价:¥{{filters.toFix(data.market_price,2)}} + ¥{{filters.toFix(data.shop_price,2)}} @@ -264,7 +264,7 @@ {{filters.toFix(prom_price,2)}}元 0积分 - +    零售价:¥{{filters.toFix(data.market_price,2)}} @@ -323,7 +323,7 @@ - 零售价:¥{{filters.toFix(data.market_price,2)}} + 零售价:¥{{filters.toFix(data.market_price,2)}} @@ -421,8 +421,8 @@ {{prom_price}} - 零售价:¥{{filters.toFix(data.market_price,2)}} - ¥{{filters.toFix(data.shop_price,2)}} + 零售价:¥{{filters.toFix(data.market_price,2)}} + ¥{{filters.toFix(data.shop_price,2)}} - ¥{{item.market_price}} + ¥{{item.market_price}} 评论{{item.comment_count}} 已售{{item.sales_sum}} ¥{{item.shop_price}} - ¥{{item.market_price}} + ¥{{item.market_price}} 评论{{item.comment_count}} 已售{{item.sales_sum}} @@ -131,7 +131,7 @@ ¥{{item.shop_price}} - ¥{{item.market_price}} + ¥{{item.market_price}} @@ -149,7 +149,7 @@ ¥{{item.shop_price}} - ¥{{item.market_price}} + ¥{{item.market_price}} 评论{{item.comment_count}} 已售{{item.sales_sum}} @@ -158,7 +158,7 @@ ¥{{item.shop_price}} - ¥{{item.market_price}} + ¥{{item.market_price}} 评论{{item.comment_count}} 已售{{item.sales_sum}} diff --git a/pages/index/index/index.wxml b/pages/index/index/index.wxml index 9595074..6244df8 100644 --- a/pages/index/index/index.wxml +++ b/pages/index/index/index.wxml @@ -187,7 +187,7 @@ {{aitem.price}} - ¥{{aitem.market_price}} + ¥{{aitem.market_price}} @@ -229,7 +229,7 @@ {{aitem.presell_price}} - ¥{{aitem.market_price}} + ¥{{aitem.market_price}} 去抢购 @@ -267,7 +267,7 @@ {{filter.price(item.group_price)}} - {{item.market_price}} + {{item.market_price}} @@ -354,7 +354,7 @@ {{aitem.price}} - ¥{{aitem.market_price}} + ¥{{aitem.market_price}} diff --git a/pages/user/index/index.js b/pages/user/index/index.js index 2cd8406..da4798e 100644 --- a/pages/user/index/index.js +++ b/pages/user/index/index.js @@ -561,13 +561,17 @@ Page({ onShareAppMessage: function () { getApp().globalData.no_clear = 1; var url = "/pages/user/index/index"; +<<<<<<< HEAD var userInfo = getApp().globalData.userInfo; +======= + var userInfo = getApp().globalData.userInfo; +>>>>>>> dev_oa_lou1 if (userInfo) { url += "?first_leader=" + getApp().globalData.user_id; } var title = "会员中心" - //分享 + //分享 if (getApp().globalData.config && getApp().globalData.config.store_name) { title = getApp().globalData.config.store_name; } else if (getApp().globalData.setting.appName) {