diff --git a/app.js b/app.js index cc2b2b6..38e250f 100644 --- a/app.js +++ b/app.js @@ -72,7 +72,7 @@ App({ room_id:null, //直播间分享的房间ID room_goods_id:null, //直播间分享的商品ID - + }, auth: o, request: a, @@ -106,7 +106,12 @@ App({ app.globalData.user_id= user.user_id; } wx.setStorageSync("userinfo",user); - } + }else{ + user=null; + app.globalData.userInfo=null; + app.globalData.user_id= 0; + wx.setStorageSync("userinfo",null); + } }) } } @@ -246,6 +251,7 @@ App({ //----------------获取商家开启的物流-------------------- getwuliu: function (t, o){ + this.globalData.wuliu=null; var th = this, st = this.globalData.setting; this.globalData.wuliu && !o ? "function" == typeof t && t(this.globalData.wuliu) : a.get("/api/weshop/storeshipping/list", { @@ -612,9 +618,7 @@ App({ this.globalData.config2=null; //清除config2的缓存 this.globalData.config=null; //清除config的缓存 this.globalData.gr_index=0; //商品分组的序列 - for(var i = 1; i < 50; i++) { - clearInterval(i); - } + }, clear_word:function (word) { @@ -716,7 +720,7 @@ App({ }); }, - + }); diff --git a/components/full_screen/filter.wxs b/components/full_screen/filter.wxs deleted file mode 100644 index 68e2458..0000000 --- a/components/full_screen/filter.wxs +++ /dev/null @@ -1,12 +0,0 @@ -var format = function (text) { - - if (!text) { - return - } - var reg = getRegExp('\\\\n', 'g') - return text.replace(reg, '\n') -} - -module.exports = { - format: format -} diff --git a/components/full_screen/full_screen.js b/components/full_screen/full_screen.js deleted file mode 100644 index 81f7d8f..0000000 --- a/components/full_screen/full_screen.js +++ /dev/null @@ -1,68 +0,0 @@ -// components/userqy_pop_up/userqy_pop_up.js -var o = getApp().globalData.setting -Component({ - /** - * 页面的初始数据 - */ - data: { - control: 1, - is_full_screen_show:0, //全屏显示 - sec_show:3, //倒计时的秒数 - full_ad:null, //全屏广告 - url:o.imghost, - full_screen:0, - is_full_screen_men:1, - hidden:0, - }, - - pageLifetimes:{ - hide: function() { - // 页面被隐藏 - clearInterval(this.data.full_screen); - }, - }, - - ready: function () {}, - properties: {}, - methods: { - close_full_screen(){ - this.setData({is_full_screen_show:0,sec_show:0}); - }, - //-- 跳转到满屏广告的链接 -- - go_full_ad(){ - if(!this.data.full_ad) return false; - if(!this.data.full_ad.ad_weapplink) return false; - getApp().goto(this.data.full_ad.ad_weapplink); - }, - get_the_full_screen(){ - if(this.data.full_ad) { - return false; - } - var th=this; - //获取全屏的广告 - getApp().request.promiseGet("/api/weshop/ad/page?pid=1001&store_id=" + o.stoid,{ - data: { enabled: 1 } - }).then(res=>{ - //判断是不是有全屏广告 - if(res.data.code==0 && res.data.data.pageData && res.data.data.pageData.length>0){ - th.setData({ - is_full_screen_show:1, - full_ad:res.data.data.pageData[0], - }) - //--定时关闭-- - th.data.full_screen=setInterval(function(){ - if(!th.data.sec_show) { - clearInterval(th.data.full_screen); - th.close_full_screen(); - return false; - } - th.data.sec_show--; - th.setData({sec_show:th.data.sec_show}); - },1000) - - } - }) - } - }, - -}) \ No newline at end of file diff --git a/components/full_screen/full_screen.json b/components/full_screen/full_screen.json deleted file mode 100644 index a88fc2f..0000000 --- a/components/full_screen/full_screen.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "component": true, - "usingComponents": {} -} \ No newline at end of file diff --git a/components/full_screen/full_screen.wxml b/components/full_screen/full_screen.wxml deleted file mode 100644 index ce01065..0000000 --- a/components/full_screen/full_screen.wxml +++ /dev/null @@ -1,7 +0,0 @@ - - - 跳过 {{sec_show}} - - - - diff --git a/components/full_screen/full_screen.wxss b/components/full_screen/full_screen.wxss deleted file mode 100644 index f5220b9..0000000 --- a/components/full_screen/full_screen.wxss +++ /dev/null @@ -1,16 +0,0 @@ -.full_screen{ - position: fixed;left: 0;top: 0; - z-index: 1000000000000; - background-color: rgba(0,0,0,0.4); - width: 100%; - height: 100%; - background-position: center; - background-size: 100% 100%; - background-repeat: no-repeat; -} -.skip_box{ - float: right; margin-top: 10rpx; margin-right: 10rpx; - background-color: gainsboro; width: 120rpx; - height: 48rpx; font-size: 28rpx; line-height: 48rpx; - text-align: center; border-radius: 20rpx; - } \ No newline at end of file diff --git a/packageA/pages/jfbuy/jfbuy.wxml b/packageA/pages/jfbuy/jfbuy.wxml index eee8668..802e180 100644 --- a/packageA/pages/jfbuy/jfbuy.wxml +++ b/packageA/pages/jfbuy/jfbuy.wxml @@ -51,7 +51,7 @@ {{item.integral}}积分 + ¥{{item.addmoney}} - 零售价:¥{{item.shop_price}} + 零售价:¥{{item.market_price}} 销量:{{item.sales_sum}} diff --git a/pages/cart/cart2/cart2.js b/pages/cart/cart2/cart2.js index 41e267c..c30b87a 100644 --- a/pages/cart/cart2/cart2.js +++ b/pages/cart/cart2/cart2.js @@ -501,9 +501,9 @@ Page({ var narr = new Array(); narr.push(item); - //-----------拼装购物车结算的数组,如果有默认物流时要用默认物流编号----------------- + //-----------拼装购物车结算的数组,如果有默认物流时要用默认物流编号,计算默认的物流,不管是不是自提都算一下----------------- var m_wind=0,def_exp_code=getApp().globalData.userInfo.def_exp_code; - if(e_t==0 && def_exp_code){ + if(def_exp_code){ for(var k=0;k {{order.store_prom}} - + + 快递邮寄 - + - + {{wu_arr[item.wind].name}} diff --git a/pages/goods/goodsInfo/goodsInfo.js b/pages/goods/goodsInfo/goodsInfo.js index 5f1bc9f..cad50ef 100644 --- a/pages/goods/goodsInfo/goodsInfo.js +++ b/pages/goods/goodsInfo/goodsInfo.js @@ -399,7 +399,7 @@ Page({ //--- 判断是等级会员,且在有效期范围内 --- if(user.card_field && now6) card_name=card_name.substring(0,6); + //if(card_name.length>6) card_name=card_name.substring(0,6); var is_near_date=0; if(end-now<60*60*30*24) is_near_date=1; //如果小于30天 diff --git a/pages/goods/goodsInfo/goodsInfo.wxml b/pages/goods/goodsInfo/goodsInfo.wxml index ae2aec5..d3a8e51 100644 --- a/pages/goods/goodsInfo/goodsInfo.wxml +++ b/pages/goods/goodsInfo/goodsInfo.wxml @@ -199,53 +199,17 @@ - - - + + - {{prom_integral}} - 积分 + {{prom_integral}}积分 + {{filters.toFix(prom_price,2)}}元 0积分 @@ -253,13 +217,6 @@ - - - -