锶源昆仑会员+体验官
This commit is contained in:
31
pages/login/agreement/index.js
Normal file
31
pages/login/agreement/index.js
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* 手太欠
|
||||
* 愿这世界都如故事里一样 美好而动人~
|
||||
*/
|
||||
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
content: ''
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
// 获取用户协议
|
||||
wx.$api.auth.registeragree(options.type).then(res => {
|
||||
this.setData({
|
||||
content: res.data.content
|
||||
})
|
||||
}).catch(err => {})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {},
|
||||
})
|
||||
3
pages/login/agreement/index.json
Normal file
3
pages/login/agreement/index.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
3
pages/login/agreement/index.wxml
Normal file
3
pages/login/agreement/index.wxml
Normal file
@@ -0,0 +1,3 @@
|
||||
<view class="agreement-content">
|
||||
<rich-text nodes="{{content}}"></rich-text>
|
||||
</view>
|
||||
5
pages/login/agreement/index.wxss
Normal file
5
pages/login/agreement/index.wxss
Normal file
@@ -0,0 +1,5 @@
|
||||
.agreement-content{
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user