diff --git a/components/full_screen/full_screen.js b/components/full_screen/full_screen.js index a38f198..81f7d8f 100644 --- a/components/full_screen/full_screen.js +++ b/components/full_screen/full_screen.js @@ -21,28 +21,23 @@ Component({ clearInterval(this.data.full_screen); }, }, - - ready: function () { - var th=this; - setTimeout(function(){ - th.setData({hidden:1,}) - },2600) - }, - + + ready: function () {}, properties: {}, methods: { close_full_screen(){ - this.setData({is_full_screen_show:0,sec_show:0,is_full_screen_men:0}); + 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); - this.setData({is_full_screen_show:0,is_full_screen_men:0}); }, get_the_full_screen(){ - if(this.data.full_ad) return false; + if(this.data.full_ad) { + return false; + } var th=this; //获取全屏的广告 getApp().request.promiseGet("/api/weshop/ad/page?pid=1001&store_id=" + o.stoid,{ @@ -53,8 +48,7 @@ Component({ 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) { @@ -65,16 +59,8 @@ Component({ th.data.sec_show--; th.setData({sec_show:th.data.sec_show}); },1000) - - - setTimeout(function(){ - th.setData({is_full_screen_men:0}); - },1000) - }else{ - th.setData({ - is_full_screen_men:0 - }) - } + + } }) } }, diff --git a/components/full_screen/full_screen.wxml b/components/full_screen/full_screen.wxml index 4ba3a6f..ce01065 100644 --- a/components/full_screen/full_screen.wxml +++ b/components/full_screen/full_screen.wxml @@ -1,5 +1,4 @@ - 跳过 {{sec_show}} diff --git a/components/full_screen/full_screen.wxss b/components/full_screen/full_screen.wxss index f6dde99..f5220b9 100644 --- a/components/full_screen/full_screen.wxss +++ b/components/full_screen/full_screen.wxss @@ -8,8 +8,6 @@ background-size: 100% 100%; background-repeat: no-repeat; } - - .skip_box{ float: right; margin-top: 10rpx; margin-right: 10rpx; background-color: gainsboro; width: 120rpx; diff --git a/components/goods_list/goods_list.js b/components/goods_list/goods_list.js index 79830f6..6d29215 100644 --- a/components/goods_list/goods_list.js +++ b/components/goods_list/goods_list.js @@ -37,7 +37,7 @@ Component({ getApp().request.get("/api/weshop/users/get/" + os.stoid + "/" + getApp().globalData.user_id, { isShowLoading:false, success: function (e) { - if(e.code==0 && e.data && e.data.data){ + if(e.data.code==0 && e.data && e.data.data){ getApp().globalData.userInfo = e.data.data; getApp().getConfig2(function (e) { var swithc_list = e.switch_list; diff --git a/images/banner.jpg b/images/banner.jpg deleted file mode 100644 index 10c4120..0000000 --- a/images/banner.jpg +++ /dev/null diff --git a/pages/goods/goodsList/goodsList.js b/pages/goods/goodsList/goodsList.js index 4786d3d..4984781 100644 --- a/pages/goods/goodsList/goodsList.js +++ b/pages/goods/goodsList/goodsList.js @@ -66,6 +66,10 @@ Page({ if (0 != t.is_new && t.is_new != undefined) { url += "&is_new=" + t.is_new; } if (0 != t.is_hot && t.is_hot != undefined) { url += "&is_hot=" + t.is_hot; } + + if(getApp().globalData.userInfo){ + url += "&user_id=" + getApp().globalData.userInfo.user_id; + } //优惠活动的凑单 if(t.prom_type==3){ diff --git a/pages/goods/goodsList/goodsList.wxml b/pages/goods/goodsList/goodsList.wxml index 1f086fb..7b04967 100644 --- a/pages/goods/goodsList/goodsList.wxml +++ b/pages/goods/goodsList/goodsList.wxml @@ -28,7 +28,7 @@ -