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.
GitProject/pages/home/home.js

92 lines
1.5 KiB

// pages/home/home.js
Page({
/**
* 页面的初始数据
*/
data: {
swiperList:
[
{url:"https://s2.loli.net/2023/09/23/41Yw6HvduCrLnJo.png"},
{url:"https://s2.loli.net/2023/09/23/8cZ3VoNfFiLIQ4q.png"},
{url:"https://img1.imgtp.com/2023/10/09/8w8uWsZa.png"}
],
gridList:
[
{name:"课表",icon:"/static/course.png",url:"/pages/schedule/schedule"},
{name:"校历",icon:"/static/schedule.png",url:""},
{name:"通知",icon:"/static/notice.png",url:""},
],
messageList:
[
{id:1,url:"https://s2.loli.net/2023/09/23/IQoPKBG68JTRHht.png",message:"今天星期一"},
{id:2,url:"",message:"今天星期二"},
{id:3,url:"",message:"今天星期三"}
],
goToPage(e) {
wx.navigateTo({
url: e.currentTarget.dataset.url
})
console.log('1')
}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})