分包医生
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import { API } from '../../../../utils/network/api'
|
||||
const api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
navbarData: {
|
||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||
title: '公告详情', //导航栏 中间的标题
|
||||
},
|
||||
height: app.globalData.height,
|
||||
notice: {}
|
||||
},
|
||||
onLoad(options){
|
||||
let notice_id = options.notice_id;
|
||||
api.getDoctorMessageSystemDetail({notice_id: notice_id}).then(response => {
|
||||
console.log(response);
|
||||
this.setData({
|
||||
notice: response.data
|
||||
})
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
go(e){
|
||||
let link_type = this.data.notice.link_type;
|
||||
let link_params = this.data.notice.link_params;
|
||||
wx.showToast({
|
||||
title: '无数据,不能调试',
|
||||
icon: "error"
|
||||
})
|
||||
}
|
||||
|
||||
})
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"te-nav-bar": "../../../../commpents/te_navbar/index",
|
||||
"van-button": "@vant/weapp/button/index"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||
<view class="data">
|
||||
<view class="item">
|
||||
<view class="title">发信人</view><text>:</text>
|
||||
<view class="conent">{{notice.from_name}}</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">标题</view><text>:</text>
|
||||
<view class="conent">{{notice.notice_title}}</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">时间</view><text>:</text>
|
||||
<view class="conent">{{notice.notice_send_time}}</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">内容</view><text>:</text>
|
||||
<view class="conent">{{notice.notice_content}}</view>
|
||||
</view>
|
||||
<van-button bind:click="go" color="#3CC7C0" custom-style="border-radius: 10rpx;margin: 30rpx 0;" block wx:if="{{notice.button_type == 1}}">我的账户</van-button>
|
||||
<van-button bind:click="go" color="#3CC7C0" custom-style="border-radius: 10rpx;margin: 30rpx 0;" block wx:if="{{notice.button_type == 2}}">联系客服</van-button>
|
||||
<van-button bind:click="go" color="#3CC7C0" custom-style="border-radius: 10rpx;margin: 30rpx 0;" block wx:if="{{notice.button_type == 3}}">查看协议</van-button>
|
||||
<van-button bind:click="go" color="#3CC7C0" custom-style="border-radius: 10rpx;margin: 30rpx 0;" block wx:if="{{notice.button_type == 4}}">订单详情</van-button>
|
||||
<van-button bind:click="go" color="#3CC7C0" custom-style="border-radius: 10rpx;margin: 30rpx 0;" block wx:if="{{notice.button_type == 5}}">查看处方</van-button>
|
||||
</view>
|
||||
</view>
|
||||
@@ -0,0 +1,28 @@
|
||||
page{
|
||||
background-color: #F4F4F4;
|
||||
}
|
||||
.container{
|
||||
width: 100vw;
|
||||
}
|
||||
.data{
|
||||
background-color: #fff;
|
||||
margin: 20rpx auto;
|
||||
padding: 20rpx 30rpx;
|
||||
}
|
||||
.item{
|
||||
display: flex;
|
||||
margin-bottom: 40rpx;
|
||||
}
|
||||
.title{
|
||||
flex: 1;
|
||||
font-size: 34rpx;
|
||||
color: #333333;
|
||||
text-align: justify;
|
||||
text-justify:distribute-all-lines;
|
||||
text-align-last: justify;
|
||||
}
|
||||
.conent{
|
||||
flex: 4;
|
||||
font-size: 30rpx;
|
||||
color: #666666;
|
||||
}
|
||||
Reference in New Issue
Block a user