202404 入场需要查看免责声明

This commit is contained in:
2024-05-26 20:25:06 +08:00
parent 8b1c94b806
commit 298a18e933
7 changed files with 100 additions and 41 deletions

View File

@@ -1,13 +1,14 @@
// pages/notice/index.js
const app = getApp();
let id = ''
import {setTimeOutStorage} from "../../utils/util";
Page({
/**
* 页面的初始数据
*/
data: {
announcement: {},
disclaimers: {},
isGoHome: false,
},
@@ -15,13 +16,11 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
id = options.id;
app.$api.announcementDetail({
id: id
app.$api.disclaimersDetail({
}).then(res => {
res.announcement.description = res.announcement.description.replace(/section/g, "div");
res.disclaimers.description = res.disclaimers.description.replace(/section/g, "div");
this.setData({
announcement: res.announcement
disclaimers: res.disclaimers
})
}, err => {
@@ -80,5 +79,13 @@ Page({
return {
title: '智慧云馆'
}
},
backToOpen () {
wx.navigateBack({
success (res){
setTimeOutStorage('isReaded','ojbk',1200000)
}
})
}
})