优化
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { API } from './../../../utils/network/api'
|
||||
const api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
@@ -5,7 +7,25 @@ Page({
|
||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||
title: '公告详情', //导航栏 中间的标题
|
||||
},
|
||||
height: app.globalData.height,
|
||||
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"
|
||||
})
|
||||
}
|
||||
|
||||
})
|
||||
@@ -3,20 +3,24 @@
|
||||
<view class="data">
|
||||
<view class="item">
|
||||
<view class="title">发信人</view><text>:</text>
|
||||
<view class="conent">肝胆小秘书</view>
|
||||
<view class="conent">{{notice.from_name}}</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">标题</view><text>:</text>
|
||||
<view class="conent">9月份的服务费结算</view>
|
||||
<view class="conent">{{notice.notice_title}}</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">时间</view><text>:</text>
|
||||
<view class="conent">2022-11-02 12:22:11</view>
|
||||
<view class="conent">{{notice.notice_send_time}}</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">内容</view><text>:</text>
|
||||
<view class="conent">XX医生您好,您9月份的服务费已结算至您的银行卡,请注意查收。</view>
|
||||
<view class="conent">{{notice.notice_content}}</view>
|
||||
</view>
|
||||
<van-button color="#3CC7C0" custom-style="border-radius: 10rpx;margin: 30rpx 0;" block>我的账户</van-button>
|
||||
<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>
|
||||
Reference in New Issue
Block a user