wheel/pages/story/story.js
2019-11-29 13:52:16 +08:00

28 lines
427 B
JavaScript

// pages/story/story.js
Page({
/**
* 页面的初始数据
*/
data: {
title: '',
story: '',
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {
let temp = wx.getStorageSync('temp')
temp = JSON.parse(temp)
this.setData({
title: temp.title,
story: temp.story.reverse(),
})
},
goMenu() {
wx.navigateTo({ url: '/pages/menu/menu' });
}
})