diff --git a/Pages/yishi/case/index.js b/Pages/yishi/case/index.js index 6414560..7453198 100644 --- a/Pages/yishi/case/index.js +++ b/Pages/yishi/case/index.js @@ -22,21 +22,36 @@ Page({ goReport(event){ const url=event.currentTarget.dataset.url; const randfile = new Date().getTime() + '检测报告'; - const newPath = `${wx.env.USER_DATA_PATH}/${randfile}`; - wx.downloadFile({ - // 示例 url,并非真实存在 - url:url, - filePath: newPath, - success: function (res) { - //const filePath = res.tempFilePath - wx.openDocument({ - filePath: newPath, - success: function (res) { - console.log('打开文档成功') - } - }) - } - }) + const newPath = `${wx.env.USER_DATA_PATH}/${randfile}`; + wx.downloadFile({ + // 示例 url,并非真实存在 + url:url, + filePath: newPath, + success: function (res) { + //const filePath = res.tempFilePath + wx.openDocument({ + fileType:"pdf", + showMenu:true, + filePath: newPath, + success: function (res) { + console.log('打开文档成功') + }, + fail:function(error){ + wx.showToast({ + title:res, + icon:"none" + }) + } + }) + }, + fail:function(error){ + wx.showToast({ + title:error, + icon:"none" + }) + } + + }) }, formatImgList(){ let diagnose_images = this.data.case_detail.diagnose_images?this.data.case_detail.diagnose_images:[]; diff --git a/Pages/yishi/onlinechufang/index.wxml b/Pages/yishi/onlinechufang/index.wxml index 8e0ea30..7d3f0a1 100644 --- a/Pages/yishi/onlinechufang/index.wxml +++ b/Pages/yishi/onlinechufang/index.wxml @@ -10,10 +10,10 @@ - + 病情主诉: - - {{case_detail.disease_desc}} + + {{case_detail.disease_desc}} 用药意向: diff --git a/Pages/yishi/onlinechufang/index.wxss b/Pages/yishi/onlinechufang/index.wxss index 898fad6..31d3ad7 100644 --- a/Pages/yishi/onlinechufang/index.wxss +++ b/Pages/yishi/onlinechufang/index.wxss @@ -52,6 +52,9 @@ page{ display: flex; padding-bottom: 20rpx; } +.item_content_li.active{ + flex-direction: column; +} .item_content_li_title{ font-size: 30rpx; color: #333333; diff --git a/Pages/yishi/wenzhen_v2/wenzhen.wxml b/Pages/yishi/wenzhen_v2/wenzhen.wxml index 93f9eba..9c20c00 100644 --- a/Pages/yishi/wenzhen_v2/wenzhen.wxml +++ b/Pages/yishi/wenzhen_v2/wenzhen.wxml @@ -334,7 +334,7 @@ 不接诊24小时后自动取消 - +