archives_info.vue 9.6 KB

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