diff --git a/pages/index/index/index.js b/pages/index/index/index.js index 948c5b6..616368d 100644 --- a/pages/index/index/index.js +++ b/pages/index/index/index.js @@ -42,6 +42,10 @@ Page({ isTemplate:0, template_arr:null, bgcolor_t:'', + + banner_index:0, + flash_index:0, + pt_index:0, }, onLoad: function () { var th = this; @@ -298,13 +302,16 @@ Page({ scrollTop: e.scrollTop }); var t = getCurrentPages(); - "pages/index/index/index" == t[t.length - 1].route && (e.scrollTop > 10 ? wx.setNavigationBarColor({ + "pages/index/index/index" == t[t.length - 1].route; + /*-- + && (e.scrollTop > 10 ? wx.setNavigationBarColor({ frontColor: "#ffffff", backgroundColor: "#f95959" }) : wx.setNavigationBarColor({ frontColor: "#000000", backgroundColor: "#eeeeee" - })); + }));--*/ + }, jumpSearch: function () { wx.navigateTo({ @@ -449,5 +456,18 @@ Page({ setTimeout(th.countDown2, 1000); }, + bannerSwiperChange:function (e) { + var index=e.detail.current; + this.setData({banner_index:index}); + }, + flashSwiperChange:function (e) { + var index=e.detail.current; + this.setData({flash_index:index}); + }, + ptSwiperChange:function (e) { + var index=e.detail.current; + this.setData({pt_index:index}); + } + }); \ No newline at end of file diff --git a/pages/index/index/index.json b/pages/index/index/index.json index 7b00316..a2f411c 100644 --- a/pages/index/index/index.json +++ b/pages/index/index/index.json @@ -1,5 +1,6 @@ { - "navigationBarBackgroundColor": "#eeeeee", + "navigationBarBackgroundColor": "#ff7295", + "navigationBarTextStyle": "white", "usingComponents": { "nav": "/components/diy_nav/diy_nav", "advertising":"/components/diy_advertising/diy_advertising",