分享朋友圈调整
This commit is contained in:
28
pages/richText/richText.js
Normal file
28
pages/richText/richText.js
Normal file
@@ -0,0 +1,28 @@
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
content: ""
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
wx.showLoading({
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
wx.$api.auth.richText(options.id).then(res => {
|
||||
this.setData({
|
||||
content: res.data.content
|
||||
})
|
||||
wx.setNavigationBarTitle({
|
||||
title: res.data.title,
|
||||
})
|
||||
wx.hideLoading()
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user