project init

This commit is contained in:
limqhz
2022-11-11 21:51:57 +08:00
parent e9e20765f2
commit 82dbb842ba
68 changed files with 2771 additions and 43 deletions

View File

@@ -1,11 +1,15 @@
// pages/today/index.js
const app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
aIconList: ['check-rectangle','star-filled','notification','info-circle'],
aIconList: ['check-rectangle', 'star-filled', 'notification', 'info-circle'],
taskList: [{'taskId':'1','title':'标题德外旗舰店1','note':'2022-11-11'},{'taskId':'2','title':'标题德外旗舰店2','note':'2022-11-11'}],
todayList: [{'taskId':'1','title':'标题德外旗舰店1','note':'2022-11-11'},{'taskId':'2','title':'标题德外旗舰店2','note':'2022-11-11'}],
delayList: [{'taskId':'1','title':'标题德外旗舰店1','note':'2022-11-11'}],
},
/**
@@ -26,41 +30,30 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow() {
wx.showLoading({
title: '请稍候...',
mask: true,
})
console.log('请求中...')
app.$api.taskList({}).then(res =>{
console.log(res);
console.log(res.data);
this.setData({
taskList:res.data.taskList,
})
})
},
onEdit(e) {
console.log('收藏' + e.currentTarget.dataset.id);
},
onDelete(e) {
console.log('删除' + e.currentTarget.dataset.id);
},
onTabsChange(event) {
console.log(`Change tab, tab-panel value is ${event.detail.value}.`);
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
onTabsClick(event) {
console.log(`Click tab, tab-panel value is ${event.detail.value}.`);
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})