archives_info.vue 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. <template>
  2. <view class="main">
  3. <view class="header-content">
  4. <image src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/mybanner.png" style="width:100%;height:260rpx;"></image>
  5. </view>
  6. <view class="pr" style="z-index:2">
  7. <view class="plr15">
  8. <view class="bdr4 pb20">
  9. <view class="m-dpflex m-justify-start m-align-center" style="height: 165rpx;">
  10. <image binderror="_binderror" mode="scaleToFill" :src="infodata.patient.avatar" style="width: 120rpx;height: 120rpx;border-radius: 50%;"></image>
  11. <text class="line1 f20 fb plr15 text-white">{{infodata.patient.name}}</text>
  12. <view class="pr tr m-flex">
  13. <navigator hoverClass="none" url="">
  14. <u-icon name="arrow-right" color="#fff" size="36"></u-icon>
  15. </navigator>
  16. </view>
  17. </view>
  18. <view class=" header-box" style="padding: 0 8rpx;background-color: #fff;border-radius: 16rpx;">
  19. <view class="cu-list menu">
  20. <view class="cu-item arrow" @click="">
  21. <view class="content">
  22. <text class="text-grey">证件照</text>
  23. </view>
  24. <view class="action">
  25. <text class="text-grey text-sm">未上传</text>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="fb f18 plr20" style="margin-bottom: 24rpx;">病例信息</view>
  34. <view class="margin-lr-sm">
  35. <view class="margin-top-sm" v-for="(item,index) in infodata.orders.cases" :key="index" style="border-radius: 16rpx;box-shadow: 0 0 50rpx 0 rgba(0, 0, 0, 0.1);">
  36. <view class="flex justify-between align-center bg-white" style="padding: 28rpx;border-radius: 16rpx;">
  37. <view class="jinxing">
  38. <text style="display: inline-block;width: 12rpx;height: 12rpx;border-radius: 50%;background-color:#EEAA3F;margin-right: 8rpx;"></text>
  39. <text v-if="item.order_status==3">进行中</text>
  40. <text v-else-if="item.order_status==1">未支付</text>
  41. <text v-else-if="item.order_status==2">待接单</text>
  42. <text v-else-if="item.order_status==4">已完成</text>
  43. <text v-else>已取消</text>
  44. </view>
  45. <text class="phonezi" v-if="item.product_type==1">电话咨询</text>
  46. <text class="phonezi" v-else-if="item.product_type==2">图文咨询</text>
  47. <text class="phonezi" v-else-if="item.product_type==3">门诊预约</text>
  48. <text class="phonezi" v-else-if="item.product_type==4">疫苗接种预约</text>
  49. <text class="phonezi" v-else-if="item.product_type==5">儿保预约</text>
  50. <text class="phonezi" v-else-if="item.product_type==6">服务包</text>
  51. </view>
  52. <view class="" style="background: #FBFBFB;padding: 28rpx; border-radius: 16rpx;">
  53. <view class="nametaile flex align-center">
  54. <text>{{item.docter.name}}</text>
  55. <text class="text_style" v-for="(itm,idx) in item.docter.label" :key="index">{{itm}}</text>
  56. </view>
  57. <view class="textstyle margin-top-xs">
  58. 科室:<text style="color: #333333;">{{item.docter.office.name}} {{item.docter.qualification.name}}</text>
  59. </view>
  60. <view class="textstyle margin-top-xs">
  61. 编号:<text style="color: #333333;">{{item.order_sn}}</text>
  62. </view>
  63. <view class="textstyle margin-top-xs">
  64. 咨询时间:<text style="color: #333333;">{{item.created_at}}</text>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. <view class="fb f18 plr20" style="margin-bottom: 24rpx;margin-top: 40rpx;">服务包</view>
  70. <view style="width: 100vw;height: auto;background-color: #f6f6f6;">
  71. <view style="width: 100%;height: 100%;">
  72. <view v-for="(item,index) in infodata.orders.service_packs" :key="index">
  73. <view class="card flex justify-center" v-for="itm,idx in item.order_pack" :key="idx">
  74. <view class="taocan" :data-id="item.id" @click="details">
  75. <view class="tc_left">
  76. <text>{{itm.pack_name}}</text>
  77. </view>
  78. <view class="tc_right">
  79. <view style="width: 100%;">
  80. <view class="text">{{itm.pack_intro}}</view>
  81. <!-- <view class="text">{{item.desc}}</view> -->
  82. <view class="text">
  83. <text style="text-align: left;">时长:{{itm.effective_days}}天</text>
  84. <text style="float: right;color: #FF4F61;font-weight: bold;">¥{{itm.pack_price/100}}</text>
  85. </view>
  86. </view>
  87. <view class="margin-top-xs">
  88. 剩余时长:<u-count-down v-if="true" color="#EEAA3F" separator="zh" :timestamp="itm.end_time-miao"></u-count-down><text
  89. v-else>已结束</text>
  90. </view>
  91. </view>
  92. </view>
  93. </view>
  94. </view>
  95. </view>
  96. </view>
  97. <view class="cu-tabbar-height"></view>
  98. <view class="cu-tabbar-height"></view>
  99. </view>
  100. </template>
  101. <script>
  102. export default {
  103. onLoad(options) {
  104. this.id = options.id
  105. },
  106. onShow() {
  107. this.miao = parseInt(new Date().getTime() / 1000)
  108. },
  109. mounted() {
  110. this.getarchivesInfo()
  111. },
  112. data() {
  113. return {
  114. id: "",
  115. infodata: "",
  116. miao:""
  117. }
  118. },
  119. methods: {
  120. getarchivesInfo: async function() {
  121. let res = await this.$request.post("/api/v1/patient/patientDetail", {
  122. patient_id: this.id
  123. })
  124. console.log(res)
  125. if (res.status == 0) {
  126. this.infodata = res.data
  127. }
  128. }
  129. }
  130. };
  131. </script>
  132. <style scoped lang="scss">
  133. @import url("../index/mine.css");
  134. .main {}
  135. .text_style {
  136. font-weight: 400;
  137. margin-left: 15rpx;
  138. background-color: #E5F5FF;
  139. color: #0B73B9;
  140. width: 100rpx;
  141. height: 28rpx;
  142. font-size: 20rpx;
  143. border-radius: 10rpx;
  144. text-align: center;
  145. align-items: center;
  146. }
  147. .nametaile {
  148. font-size: 30rpx;
  149. font-weight: 500;
  150. color: #333333;
  151. }
  152. .textstyle {
  153. font-size: 26rpx;
  154. color: #666666;
  155. font-weight: 400;
  156. }
  157. .phonezi {
  158. width: 160rpx;
  159. height: 54rpx;
  160. background: #F6F6F6;
  161. border-radius: 27rpx;
  162. font-size: 28rpx;
  163. font-family: PingFangSC-Regular, PingFang SC;
  164. font-weight: 400;
  165. color: #666666;
  166. display: flex;
  167. align-items: center;
  168. justify-content: center;
  169. }
  170. .jinxing {
  171. height: 30rpx;
  172. font-size: 30rpx;
  173. font-family: PingFangSC-Medium, PingFang SC;
  174. font-weight: 500;
  175. color: #EEAA3F;
  176. display: flex;
  177. align-items: center;
  178. }
  179. .header-content {
  180. position: absolute;
  181. top: 0;
  182. right: 0;
  183. bottom: 0;
  184. left: 0;
  185. width: 100%;
  186. z-index: -1;
  187. overflow: hidden;
  188. box-sizing: border-box;
  189. }
  190. .header-box {
  191. box-shadow: 0px 8rpx 34rpx -6rpx rgba(248, 151, 164, 0.13);
  192. }
  193. .header-img {
  194. width: 36rpx;
  195. height: 36rpx;
  196. }
  197. .tip {
  198. position: absolute;
  199. top: 0;
  200. right: 20%;
  201. bottom: 0;
  202. background-color: red;
  203. width: 12rpx;
  204. height: 12rpx;
  205. border-radius: 50%;
  206. }
  207. .msg {
  208. top: -3rpx;
  209. right: -9rpx;
  210. }
  211. swiper {
  212. height: 320rpx;
  213. }
  214. .swiper-wrapper {
  215. padding: 0 10rpx;
  216. box-sizing: border-box;
  217. }
  218. .swiper-item {
  219. width: 100%;
  220. height: 300rpx;
  221. box-shadow: 0 26rpx 40rpx 0 rgba(255, 255, 255, 0.31);
  222. background: url("http://file.supermm.me/miniProgram/images/personal/bg_doc.png") no-repeat bottom center;
  223. }
  224. .dots {
  225. position: absolute;
  226. left: 0;
  227. right: 0;
  228. bottom: -40rpx;
  229. display: flex;
  230. justify-content: center;
  231. }
  232. .dots .dot {
  233. margin: 0 8rpx;
  234. width: 14rpx;
  235. height: 14rpx;
  236. background: #E4E4E4;
  237. border-radius: 8rpx;
  238. transition: all .6s;
  239. }
  240. .dots .dot.active {
  241. width: 24rpx;
  242. background: rgb(153, 153, 153);
  243. }
  244. .game-wrap {
  245. position: relative;
  246. width: 100%;
  247. height: 100%;
  248. overflow: hidden;
  249. box-sizing: border-box;
  250. }
  251. .game-item {
  252. height: 100%;
  253. background: url("https://file.supermm.me/h5/wechat-h5/integral/personeBg001.jpg") no-repeat;
  254. background-size: 100% 100%;
  255. background-position: center center;
  256. border-radius: 100rpx;
  257. }
  258. .card {
  259. width: 100%;
  260. height: auto;
  261. margin-top: 20rpx;
  262. // background-image: url(../../static/服务包.png);
  263. .taocan {
  264. width: 710rpx;
  265. height: 230rpx;
  266. position: relative;
  267. display: flex;
  268. border-radius: 10rpx;
  269. background: radial-gradient(circle at right top, transparent 15rpx, #ffffff 0) top left / 152rpx 51% no-repeat,
  270. radial-gradient(circle at right bottom, transparent 15rpx, #ffffff 0) bottom left /152rpx 51% no-repeat,
  271. radial-gradient(circle at left top, transparent 15rpx, #ffffff 0) top right /560rpx 51% no-repeat,
  272. radial-gradient(circle at left bottom, transparent 15rpx, #ffffff 0) bottom right /560rpx 51% no-repeat;
  273. filter: drop-shadow(0rpx 2rpx 12rpx 0rpx rgba(0, 0, 0, 0.04));
  274. }
  275. }
  276. .tc_left {
  277. display: flex;
  278. justify-content: center;
  279. align-items: center;
  280. width: 152rpx;
  281. text {
  282. font-size: 30rpx;
  283. font-weight: bold;
  284. }
  285. }
  286. .tc_right {
  287. display: flex;
  288. flex-direction: column;
  289. justify-content: center;
  290. width: 550rpx;
  291. padding: 0 20rpx;
  292. font-size: 26rpx;
  293. .text {
  294. padding: 10rpx 0rpx;
  295. width: 100%;
  296. }
  297. }
  298. </style>