archives_info.vue 8.7 KB

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