202404 足球入场逻辑

This commit is contained in:
2024-05-19 20:02:16 +08:00
parent f5ff123c18
commit d30c0381ac
12 changed files with 383 additions and 48 deletions

View File

@@ -1,32 +1,37 @@
// pages/disclaimers/index.js
// pages/notice/index.js
const app = getApp();
let id = ''
Page({
/**
* 页面的初始数据
*/
data: {
us: {
},
announcement: {},
isGoHome: false,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
app.$api.aboutUs({}).then(res => {
onLoad: function(options) {
id = options.id;
app.$api.announcementDetail({
id: id
}).then(res => {
res.announcement.description = res.announcement.description.replace(/section/g, "div");
this.setData({
us: res.uss
announcement: res.announcement
})
}, err => {
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
onReady: function() {
let pages = getCurrentPages();
this.setData({
isGoHome: pages.length == 1
@@ -36,44 +41,44 @@ Page({
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
onShow: function() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
onShareAppMessage: function() {
return {
title: '智慧云馆'
}
}
})
})