mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-06-12 10:00:57 +08:00
30 lines
594 B
JavaScript
30 lines
594 B
JavaScript
/** detail.js **/
|
|
|
|
//获取app实例
|
|
const app = getApp();
|
|
|
|
Page({
|
|
data: {
|
|
notice: {}
|
|
},
|
|
|
|
onLoad: function(options) {
|
|
let index = parseInt(options.index);
|
|
// this.checkLoginStatus();
|
|
let info = JSON.parse( wx.getStorageSync('notice-'+ (index)));
|
|
|
|
if (info) {
|
|
this.setData({
|
|
notice: info
|
|
})
|
|
}
|
|
wx.clearStorageSync('notice-'+index);
|
|
},
|
|
|
|
onShow: function() {
|
|
let that = this;
|
|
// that.setData({
|
|
// userInfo: app.globalData.userInfo
|
|
// });
|
|
}
|
|
}) |