//index.js //获取应用实例 const app = getApp() Page({ data: { // isHidden:false, imgUrls: [ '../../images/banner/banner1.jpg', '../../images/banner/banner2.jpg', '../../images/banner/banner3.jpg' ], }, onLoad: function () { this.setData({ isHidden: false, fonts:app.globalData.font }); // var that = this; // setTimeout(function(){ // that.setData({ // isHidden: true // }); // }, 2000); }, about:function(){ wx.navigateTo({ url:'/pages/about/about' }) }, caseDetail:function(){ wx.navigateTo({ url:'/pages/caseDetail/caseDetail' }) }, connectus:function(){ console.log("该页面还未写好"); }, shopping:function(){ wx.redirectTo({ url:'/pages/Shopping/shopping' }) }, sort:function(){ wx.redirectTo({ url:'/pages/Sort/sort' }) }, index:function(){ wx.redirectTo({ url:'/pages/Index/index' }) }, User:function(){ wx.redirectTo({ url:'/pages/User/user' }) } })