init
This commit is contained in:
17
pages/subpages/instruct/instruct.js
Normal file
17
pages/subpages/instruct/instruct.js
Normal file
@@ -0,0 +1,17 @@
|
||||
const app = getApp()
|
||||
|
||||
|
||||
Page({
|
||||
|
||||
data: {
|
||||
instruct: null
|
||||
},
|
||||
goback(){
|
||||
wx.navigateBack(1)
|
||||
},
|
||||
|
||||
onLoad(){
|
||||
let instruct = app.globalData.clientConfig.CLIENT_INSTRUCT
|
||||
this.setData({instruct})
|
||||
}
|
||||
})
|
||||
7
pages/subpages/instruct/instruct.json
Normal file
7
pages/subpages/instruct/instruct.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"van-nav-bar": "@vant/weapp/nav-bar/index",
|
||||
"van-sticky": "@vant/weapp/sticky/index"
|
||||
},
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
11
pages/subpages/instruct/instruct.wxml
Normal file
11
pages/subpages/instruct/instruct.wxml
Normal file
@@ -0,0 +1,11 @@
|
||||
<van-sticky>
|
||||
<van-nav-bar
|
||||
title="使用说明"
|
||||
left-text="返回"
|
||||
left-arrow
|
||||
bind:click-left="goback"
|
||||
/>
|
||||
</van-sticky>
|
||||
<view class="card-blank">
|
||||
<rich-text nodes="{{instruct}}" />
|
||||
</view>
|
||||
3
pages/subpages/instruct/instruct.wxss
Normal file
3
pages/subpages/instruct/instruct.wxss
Normal file
@@ -0,0 +1,3 @@
|
||||
page{
|
||||
background-color: #fff;
|
||||
}
|
||||
Reference in New Issue
Block a user