This repository has been archived on 2024-09-30. You can view files and clone it, but cannot push or open issues/pull-requests.
wxSmallApp/pages/qa/qa.js

104 lines
1.7 KiB
JavaScript

// pages/messageEdit/messageEdit.js
Page({
/**
* 页面的初始数据
*/
data: {
messages: [
{
id: 1, // unique identifier for each message
title: "留言标题1",
date: "2024-01-01"
},
{
id: 1, // unique identifier for each message
title: "留言标题1",
date: "2024-01-01"
},
{
id: 1, // unique identifier for each message
title: "留言标题1",
date: "2024-01-01"
},
{
id: 1, // unique identifier for each message
title: "留言标题1",
date: "2024-01-01"
},
{
id: 1, // unique identifier for each message
title: "留言标题1",
date: "2024-01-01"
},
{
id: 1, // unique identifier for each message
title: "留言标题1",
date: "2024-01-01"
},
// 更多留言...
]
},
goToMessageEdit: function () {
wx.navigateTo({
url: '/pages/messageEdit/messageEdit'
});
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})