diff --git a/pages/index/index/index.js b/pages/index/index/index.js index 6231d92..c8d7cf0 100644 --- a/pages/index/index/index.js +++ b/pages/index/index/index.js @@ -10,6 +10,7 @@ var api = require('../../../api/api.js'); Page({ data: { url: o.imghost, + swiperimage: ["/miniapp/images/title.png","/miniapp/images/newpeople/newpeople.png"], resourceUrl: o.resourceUrl, logo: o.appLogo, homeData: null, @@ -50,13 +51,12 @@ Page({ pt_timer_arr:null, pt_timer:null, pt_timer_active:0, - //看下商家是否开通会员权益 is_boot:0, gd_category:null, is_no_more:0, - max_sw_height:0, //banner的最大高度 + is_disgraceful:1,//是否显示新人广告 }, onLoad: function () { @@ -75,8 +75,13 @@ Page({ }) }, - - + //关闭新用户领取广告 + close_disgraceful:function(){ + var th = this; + th.setData({ + is_disgraceful:0 + }) + }, async onShow() { var th = this; if(getApp().globalData.user_id) getApp().requestCardNum(); @@ -173,7 +178,6 @@ Page({ var tt = { 'ad_code': o.imghost + a[i].ad_code, 'media_link': '' }; arr.push(tt); } - console.log(arr); if (arr.length>0) e.setData({ banner: arr, }); wx.stopPullDownRefresh(); @@ -199,7 +203,6 @@ Page({ //当前时间戳 var nt = ut.gettimestamp(); - console.log(nt); flash_data.forEach(function (val,ind) { if(val.start_time>nt) flash_data[ind].status=0; @@ -320,8 +323,6 @@ Page({ //--判断小程序是否过期-- setappdata: function (t) { - console.log('setappdata'); - console.log(t); if (t.isout == 1) wx.navigateTo({ url: "/pages/error/error?msg=小程序已经过期", @@ -545,10 +546,6 @@ Page({ var th=this; this.data.pt_timer=setInterval(function () { var item=ut.get_rand_item(th.data.pt_timer_arr); - - console.log("Interval_pt"); - console.log(item); - th.setData({pt_timer_active:1,pt_timer_item:item}); setTimeout(function () { th.setData({pt_timer_active:0}); @@ -564,7 +561,6 @@ Page({ wx.scanCode({ success: (res) => { var result = res.result; - console.log(res,"是什么所扫码的内容"+result); wx.navigateTo({ url: "/pages/goods/search/search?s_key="+result, }); diff --git a/pages/index/index/index.wxml b/pages/index/index/index.wxml index 5045efe..94e19af 100644 --- a/pages/index/index/index.wxml +++ b/pages/index/index/index.wxml @@ -1,265 +1,252 @@ - - - - - - - - - - - - - - - - - - - 扫一扫 - + + + + + + + + 分 + + - - - - - - - - - - - - - - + + + + + + - - - -