分包医生
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: '协议详情', //导航栏 中间的标题
|
||||
},
|
||||
agreement_id: "",
|
||||
agreement_content: ""
|
||||
},
|
||||
|
||||
onLoad(option){
|
||||
this.setData({
|
||||
agreement_id: option.agreement_id
|
||||
})
|
||||
},
|
||||
|
||||
onShow(){
|
||||
//获取医生我的账户数据
|
||||
api.getBasicAgreement({agreement_id: this.data.agreement_id}).then(response => {
|
||||
console.log(response);
|
||||
this.setData({
|
||||
agreement_content: response.data.agreement_content,
|
||||
"navbarData.title": response.data.agreement_name,
|
||||
})
|
||||
}).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="{{agreement_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;
|
||||
}
|
||||
Reference in New Issue
Block a user