分享朋友圈调整
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()
|
||||
})
|
||||
}
|
||||
})
|
||||
3
pages/richText/richText.json
Normal file
3
pages/richText/richText.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
4
pages/richText/richText.wxml
Normal file
4
pages/richText/richText.wxml
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
<view class="content">
|
||||
<rich-text nodes="{{content}}"></rich-text>
|
||||
</view>
|
||||
2
pages/richText/richText.wxss
Normal file
2
pages/richText/richText.wxss
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
.content{ padding: 30rpx 50rpx 50rpx; font-size: 30rpx; color: #333; line-height: 50rpx; }
|
||||
Reference in New Issue
Block a user