111
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
// case/pages/privacy/privacy.js
|
||||
import {getPrivacy} from "../../../api/api"
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
navName:'隐私协议',
|
||||
node:''
|
||||
},
|
||||
handleGetPrivacy(){
|
||||
getPrivacy().then(res=>{
|
||||
this.setData({
|
||||
node:res
|
||||
})
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
this.handleGetPrivacy();
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
|
||||
})
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"navBar":"../../../components/navBar/navBar"
|
||||
},
|
||||
"navigationStyle":"custom"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<!--case/pages/privacy/privacy.wxml-->
|
||||
<!--case/pages/agreement/agreement.wxml-->
|
||||
<navBar navName="{{navName}}"></navBar>
|
||||
<view class="page">
|
||||
|
||||
<view class="con">
|
||||
<rich-text nodes="{{node}}"></rich-text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
@@ -0,0 +1,15 @@
|
||||
/* case/pages/privacy/privacy.wxss */
|
||||
/* case/pages/agreement/agreement.wxss */
|
||||
.page{
|
||||
background: #fff;
|
||||
flex:1;
|
||||
display: flex;
|
||||
position: relative;
|
||||
flex-direction: column;
|
||||
margin-top: 172rpx;
|
||||
}
|
||||
.con{
|
||||
flex:1;
|
||||
padding:10rpx 32rpx 0;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user