drugReportDetails.vue 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. <template>
  2. <view class="content">
  3. <view class="cont">
  4. <view class="bg">
  5. <image src="https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/3305ca20c3f646c6b465918efb07f849.png"></image>
  6. </view>
  7. <view class="top-box" >
  8. <view class="status_bar" :style="{height: statusBarHeight}"></view>
  9. <view class="top-title">
  10. <image @click="goBack()" src="/static/images/icon_back_w.png"></image>
  11. <view class="title" >用药报告</view>
  12. </view>
  13. </view>
  14. <view class="cont-box" v-if="report!=null">
  15. <view class="status_bar" :style="{height: statusBarHeight}"></view>
  16. <view class="user">
  17. <image :src="report.avatar==null?'https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/22cb9518a55040dea74d8f730551a7a2.jpg':report.avatar"></image>
  18. <view class="user-box">
  19. <view class="username">{{report.doctorName}}</view>
  20. </view>
  21. </view>
  22. <view class="items">
  23. <view class="result-box">
  24. <view class="name">用药咨询报告</view>
  25. <view class="time">报告时间 {{report.createTime}}</view>
  26. </view>
  27. <view class="item-box" v-if="report!=null&&report.reportSummary!=null&&report.reportSummary!=''" >
  28. <view class="item">
  29. <view class="title-box">
  30. <view class="title-line"></view>
  31. <view class="title">咨询总结</view>
  32. </view>
  33. <view class="descs" >{{report.reportSummary}}</view>
  34. </view>
  35. <view class="line"></view>
  36. </view>
  37. <view class="item-box" v-if="report!=null&&report.reportAdvice!=null&&report.reportAdvice!=''">
  38. <view class="item">
  39. <view class="title-box">
  40. <view class="title-line"></view>
  41. <view class="title">生活建议</view>
  42. </view>
  43. <view class="descs" >{{report.reportAdvice}}</view>
  44. </view>
  45. </view>
  46. </view>
  47. <!-- <view class="sign">
  48. 医生签名
  49. <image :src="report.doctorSignUrl"></image>
  50. </view>
  51. <view class="tips">
  52. 注:本次会诊,仅为针对患者当前身体情况的咨询问诊建议,不作为长期参考依据。
  53. </view> -->
  54. </view>
  55. </view>
  56. <view class="btn-box" v-if="report.status==1">
  57. <view class="btn" @click="doPing()">咨询评价</view>
  58. </view>
  59. </view>
  60. </template>
  61. <script >
  62. import {getDrugReportById} from '@/api/drugReport'
  63. export default {
  64. data() {
  65. return {
  66. statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
  67. reportId:null,
  68. report:null,
  69. }
  70. },
  71. onLoad(options) {
  72. this.reportId=options.reportId;
  73. },
  74. onShow() {
  75. this.getDrugReportById();
  76. },
  77. methods: {
  78. goBack(){
  79. uni.navigateBack()
  80. },
  81. doPing(){
  82. uni.navigateTo({
  83. url: "./drugReportPing?reportId="+this.reportId
  84. })
  85. },
  86. getDrugReportById(){
  87. var that=this;
  88. var data={reportId:this.reportId}
  89. getDrugReportById(data).then(
  90. res => {
  91. if(res.code==200){
  92. this.report=res.data;
  93. }
  94. },
  95. err => {
  96. }
  97. );
  98. },
  99. }
  100. }
  101. </script>
  102. <style scoped lang="scss">
  103. page{
  104. background-color: #FDF7F0;
  105. height: 100%;
  106. }
  107. .content{
  108. .cont{
  109. position: relative;
  110. width: 100%;
  111. display: flex;
  112. flex-direction: column;
  113. .bg{
  114. width: 100%;
  115. height:650rpx;
  116. // background-color: #2BC7B9;
  117. // background: linear-gradient(#2BC7B9, #88e2da);
  118. position: fixed;
  119. image{
  120. width: 100%;
  121. height:100%;
  122. }
  123. z-index: 1;
  124. }
  125. .top-box{
  126. width: 100%;
  127. position: fixed;
  128. top: 0;
  129. left: 0;
  130. z-index: 1001;
  131. .top-title{
  132. height: 88upx;
  133. // line-height: 88upx;
  134. display: flex;
  135. align-items: center;
  136. justify-content: center;
  137. position: relative;
  138. image{
  139. position: absolute;
  140. left:15rpx;
  141. width:44rpx;
  142. height:44rpx;
  143. }
  144. .title{
  145. font-size: 32upx;
  146. font-family: PingFang SC;
  147. font-weight: bold;
  148. color: #ffffff;
  149. }
  150. }
  151. }
  152. .cont-box{
  153. z-index: 1000;
  154. margin-top: 88rpx;
  155. .user{
  156. width: 100%;
  157. display: flex;
  158. flex-direction: column;
  159. align-items: center;
  160. justify-content: center;
  161. padding: 30rpx;
  162. image{
  163. border-radius: 50%;
  164. border: 2rpx solid #ffffff;
  165. width:120rpx;
  166. height:120rpx;
  167. }
  168. .user-box{
  169. padding: 30rpx;
  170. display: flex;
  171. align-items: center;
  172. justify-content: center;
  173. .sex{
  174. font-size: 28supx;
  175. font-family: PingFang SC;
  176. color: #ffffff;
  177. }
  178. .username{
  179. margin-left: 15rpx;
  180. font-size: 28supx;
  181. font-family: PingFang SC;
  182. color: #ffffff;
  183. }
  184. }
  185. }
  186. .items{
  187. width: 100%;
  188. display: flex;
  189. flex-direction: column;
  190. align-items: flex-start;
  191. justify-content: flex-start;
  192. padding: 20rpx;
  193. .result-box{
  194. width: 100%;
  195. display: flex;
  196. flex-direction: column;
  197. align-items:center;
  198. justify-content: center;
  199. padding: 30rpx;
  200. background-color: #fff;
  201. border-radius: 15rpx;
  202. margin-bottom: 15rpx;
  203. .time{
  204. margin-top: 15rpx;
  205. font-family: PingFang SC;
  206. font-size: 24rpx;
  207. color: #9B9B9B;
  208. }
  209. .title{
  210. margin-top: 15rpx;
  211. font-family: PingFang SC;
  212. font-size: 28rpx;
  213. color: #626468;
  214. }
  215. .name{
  216. font-family: PingFang SC;
  217. font-weight: bold;
  218. font-size: 38rpx;
  219. color: #DF6440;
  220. }
  221. .descs{
  222. font-family: PingFang SC;
  223. font-size: 28rpx;
  224. color: #2A2B2E;
  225. padding: 30rpx;
  226. margin-top: 30rpx;
  227. background-color: #F5F6F6;
  228. border-radius: 10rpx;
  229. }
  230. }
  231. .item-box{
  232. width: 100%;
  233. .item{
  234. width: 100%;
  235. padding: 30rpx;
  236. background-color: #fff;
  237. border-radius:30rpx;
  238. .title-box{
  239. display: flex;
  240. align-items:center;
  241. justify-content: flex-start;
  242. .title{
  243. margin-left: 10rpx;
  244. font-size: 32supx;
  245. font-family: PingFang SC;
  246. color: #2A2B2E;
  247. font-weight: bold;
  248. }
  249. .title-line{
  250. width: 8rpx;
  251. height: 28rpx;
  252. background: #C39A58;
  253. border-radius: 2px 2px 2px 2px;
  254. opacity: 1;
  255. }
  256. }
  257. .descs{
  258. white-space: pre-line;
  259. margin-top: 10rpx;
  260. font-size: 28supx;
  261. font-family: PingFang SC;
  262. color: #2A2B2E;
  263. }
  264. }
  265. .line{
  266. margin: 0rpx 30rpx;
  267. border-bottom: #b5b5b5 3rpx dashed;
  268. }
  269. }
  270. }
  271. .sign{
  272. width: 100%;
  273. display: flex;
  274. align-items: center;
  275. justify-content: center;
  276. margin: 15rpx 0rpx;
  277. color: #9B9B9B;
  278. font-size: 24rpx;
  279. image{
  280. margin-left: 20rpx;
  281. width: 240rpx;
  282. height: 100rpx;
  283. }
  284. }
  285. .tips{
  286. width: 100%;
  287. display: flex;
  288. align-items: center;
  289. justify-content: center;
  290. margin: 15rpx 0rpx;
  291. color: #9B9B9B;
  292. font-size: 24rpx;
  293. }
  294. }
  295. }
  296. }
  297. .btn-box{
  298. height: 140upx;
  299. z-index: 9999;
  300. width: 100%;
  301. padding: 0rpx 30upx;
  302. position: fixed;
  303. bottom: 0;
  304. left: 0;
  305. box-sizing: border-box;
  306. background-color: #ffffff;
  307. display: flex;
  308. align-items: center;
  309. justify-content: center;
  310. .btn{
  311. width: 100%;
  312. height: 88upx;
  313. line-height: 88upx;
  314. text-align: center;
  315. font-size: 34upx;
  316. font-family: PingFang SC;
  317. font-weight: 400;
  318. color: #FFFFFF;
  319. background: #C39A58;
  320. border-radius: 10upx;
  321. }
  322. }
  323. </style>