first commit
This commit is contained in:
1
衣莎项目/源码/YiShaXiYi/pages/userProtocol/.pydio
Normal file
1
衣莎项目/源码/YiShaXiYi/pages/userProtocol/.pydio
Normal file
@@ -0,0 +1 @@
|
||||
39fe32a2-9ecd-408a-84ed-1f5a71144f47
|
||||
81
衣莎项目/源码/YiShaXiYi/pages/userProtocol/userProtocol.js
Normal file
81
衣莎项目/源码/YiShaXiYi/pages/userProtocol/userProtocol.js
Normal file
@@ -0,0 +1,81 @@
|
||||
// pages/userProtocol/userProtocol.js
|
||||
const app = getApp();
|
||||
const regeneratorRuntime = app.loadAsync()
|
||||
const model = app.loadModel("index")
|
||||
const util = app.loadUtils("util")
|
||||
const http = app.loadHttp()
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
system: app.globalData.system, //设备相关信息
|
||||
pageTitle: "用户协议", //头部标题
|
||||
isBack: true,//显示返回
|
||||
nodes: null,//富文本用户协议
|
||||
},
|
||||
async userProtocol() {
|
||||
let res = await http.http.request1({ url: `${http.api.userProtocol}`, method: "POST" })
|
||||
if (res.data.status == 1) {
|
||||
this.setData({
|
||||
nodes:res.data.data.value
|
||||
})
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
this.userProtocol()
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
||||
3
衣莎项目/源码/YiShaXiYi/pages/userProtocol/userProtocol.json
Normal file
3
衣莎项目/源码/YiShaXiYi/pages/userProtocol/userProtocol.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
8
衣莎项目/源码/YiShaXiYi/pages/userProtocol/userProtocol.wxml
Normal file
8
衣莎项目/源码/YiShaXiYi/pages/userProtocol/userProtocol.wxml
Normal file
@@ -0,0 +1,8 @@
|
||||
<!-- 头部导航 -->
|
||||
<nav-bar isBack="{{isBack}}" pageTitle="{{pageTitle}}" system="{{system}}"></nav-bar>
|
||||
<!--pages/userProtocol/userProtocol.wxml-->
|
||||
<view class="pd30 userProtocol">
|
||||
<rich-text nodes="{{nodes}}"></rich-text>
|
||||
</view>
|
||||
<!-- toasta提示 -->
|
||||
<i-toast id="toast" />
|
||||
8
衣莎项目/源码/YiShaXiYi/pages/userProtocol/userProtocol.wxss
Normal file
8
衣莎项目/源码/YiShaXiYi/pages/userProtocol/userProtocol.wxss
Normal file
@@ -0,0 +1,8 @@
|
||||
/* pages/userProtocol/userProtocol.wxss */
|
||||
page{
|
||||
background-color: #ffffff !important;
|
||||
}
|
||||
.userProtocol{
|
||||
border-top: 2rpx solid #ebebeb;
|
||||
padding-top: 50rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user