add file
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import { API } from './../../../utils/network/api'
|
||||
let api = new API()
|
||||
Page({
|
||||
|
||||
data: {
|
||||
navbarData: {
|
||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||
title: '操作手册详情', //导航栏 中间的标题
|
||||
},
|
||||
manual_id: "",
|
||||
html_content: ""
|
||||
},
|
||||
|
||||
onLoad(option){
|
||||
this.setData({
|
||||
manual_id: option.manual_id
|
||||
})
|
||||
},
|
||||
|
||||
onShow(){
|
||||
//获取医生我的账户数据
|
||||
api.getBasicOperationManualID({manual_id: this.data.manual_id}).then(response => {
|
||||
console.log(response);
|
||||
this.setData({
|
||||
html_content: response.data.content,
|
||||
"navbarData.title": response.data.title,
|
||||
})
|
||||
}).catch(errors => {console.error(errors);})
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"m-nav-bar": "/commpents/mynavbar/index"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
<!-- 操作手册详情 -->
|
||||
<m-nav-bar navbarData="{{navbarData}}">
|
||||
<rich-text nodes="{{html_content}}" space="nbsp"></rich-text>
|
||||
</m-nav-bar>
|
||||
@@ -0,0 +1 @@
|
||||
/* Pages/yishi/manual_detail/index.wxss */
|
||||
Reference in New Issue
Block a user