分包医生

This commit is contained in:
zoujiandong
2024-01-16 14:59:06 +08:00
parent 562d4e9691
commit d5a9339ddd
1060 changed files with 3177 additions and 44707 deletions
+30
View File
@@ -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": {
"te-nav-bar": "../../../../commpents/te_navbar/index"
}
}
@@ -0,0 +1,5 @@
<!-- 操作手册详情 -->
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
<view class="container">
<rich-text nodes="{{html_content}}" space="nbsp"></rich-text>
</view>
@@ -0,0 +1,8 @@
/* Pages/yishi/manual_detail/index.wxss */
page{
background-color: #F6F6F6;
}
.container{
width: 92vw;
margin: 20rpx auto;
}