You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hunjianghu/LL/company1-master/pages/Index/index.js

63 lines
1.1 KiB

6 years ago
//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'
})
}
})