drugReportDetails.vue 6.8 KB

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