archives_info.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  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)">
  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;" v-if="infodata.orders.cases.length!=0">病例信息</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&&item.product_type!=4">
  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_texts" :key="index">{{itm.label_name}}</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_texts" :key="index">{{itm.label_name}}</text>
  72. </view>
  73. <view class="textstyle margin-top-xs">
  74. 科室:<text style="color: #333333;">{{item.organization.docter[0].office.name||'暂无'}} {{item.organization.docter[0].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;" v-if="infodata.orders.service_packs.length!=0">服务包</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">
  90. <view class="taocan" :data-id="item.order_pack.id" @click="details">
  91. <view class="tc_left">
  92. <text>{{item.order_pack.pack_name}}</text>
  93. </view>
  94. <view class="tc_right">
  95. <view style="width: 100%;">
  96. <view class="text">{{item.order_pack.pack_intro}}</view>
  97. <!-- <view class="text">{{item.desc}}</view> -->
  98. <view class="text">
  99. <text style="text-align: left;">时长:{{item.order_pack.effective_days}}天</text>
  100. <text style="float: right;color: #FF4F61;font-weight: bold;">¥{{item.order_pack.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="item.order_pack.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. <u-empty text="暂无数据" :show="show" mode="order" margin-top="300"></u-empty>
  114. <view class="cu-tabbar-height"></view>
  115. <view class="cu-tabbar-height"></view>
  116. </view>
  117. </template>
  118. <script>
  119. export default {
  120. onLoad(options) {
  121. this.id = options.id
  122. },
  123. onShow() {
  124. this.getarchivesInfo()
  125. this.miao = parseInt(new Date().getTime() / 1000)
  126. },
  127. mounted() {
  128. },
  129. data() {
  130. return {
  131. id: "",
  132. infodata: "",
  133. miao: "",
  134. show: false
  135. }
  136. },
  137. methods: {
  138. getarchivesInfo: async function() {
  139. let res = await this.$request.post("/api/v1/patient/patientDetail", {
  140. patient_id: this.id
  141. })
  142. console.log(res)
  143. if (res.status == 0) {
  144. this.infodata = res.data
  145. }
  146. if (this.infodata.orders.cases.length == 0 && this.infodata.orders.service_packs.length == 0) {
  147. this.show = true
  148. } else {
  149. this.show = false
  150. }
  151. },
  152. // gotoupcard(item) {
  153. // let imglist = [{
  154. // url: item.card_img_url
  155. // }, {
  156. // url: item.card_back_img_url
  157. // }]
  158. // uni.navigateTo({
  159. // url: "upcard?id=" + item.id + "&data=" + JSON.stringify(imglist)
  160. // })
  161. // }
  162. }
  163. };
  164. </script>
  165. <style scoped lang="scss">
  166. @import url("../index/mine.css");
  167. .main {}
  168. .text_style {
  169. font-weight: 400;
  170. margin-left: 15rpx;
  171. background-color: #E5F5FF;
  172. color: #0B73B9;
  173. // width: 100rpx;
  174. height: 28rpx;
  175. font-size: 20rpx;
  176. border-radius: 10rpx;
  177. text-align: center;
  178. align-items: center;
  179. }
  180. .nametaile {
  181. font-size: 30rpx;
  182. font-weight: 500;
  183. color: #333333;
  184. }
  185. .textstyle {
  186. font-size: 26rpx;
  187. color: #666666;
  188. font-weight: 400;
  189. }
  190. .phonezi {
  191. width: 160rpx;
  192. height: 54rpx;
  193. background: #F6F6F6;
  194. border-radius: 27rpx;
  195. font-size: 28rpx;
  196. font-family: PingFangSC-Regular, PingFang SC;
  197. font-weight: 400;
  198. color: #666666;
  199. display: flex;
  200. align-items: center;
  201. justify-content: center;
  202. }
  203. .jinxing {
  204. height: 30rpx;
  205. font-size: 30rpx;
  206. font-family: PingFangSC-Medium, PingFang SC;
  207. font-weight: 500;
  208. color: #EEAA3F;
  209. display: flex;
  210. align-items: center;
  211. }
  212. .header-content {
  213. position: absolute;
  214. top: 0;
  215. right: 0;
  216. bottom: 0;
  217. left: 0;
  218. width: 100%;
  219. z-index: -1;
  220. overflow: hidden;
  221. box-sizing: border-box;
  222. }
  223. .header-box {
  224. box-shadow: 0px 8rpx 34rpx -6rpx rgba(248, 151, 164, 0.13);
  225. }
  226. .header-img {
  227. width: 36rpx;
  228. height: 36rpx;
  229. }
  230. .tip {
  231. position: absolute;
  232. top: 0;
  233. right: 20%;
  234. bottom: 0;
  235. background-color: red;
  236. width: 12rpx;
  237. height: 12rpx;
  238. border-radius: 50%;
  239. }
  240. .msg {
  241. top: -3rpx;
  242. right: -9rpx;
  243. }
  244. swiper {
  245. height: 320rpx;
  246. }
  247. .swiper-wrapper {
  248. padding: 0 10rpx;
  249. box-sizing: border-box;
  250. }
  251. .swiper-item {
  252. width: 100%;
  253. height: 300rpx;
  254. box-shadow: 0 26rpx 40rpx 0 rgba(255, 255, 255, 0.31);
  255. background: url("http://file.supermm.me/miniProgram/images/personal/bg_doc.png") no-repeat bottom center;
  256. }
  257. .dots {
  258. position: absolute;
  259. left: 0;
  260. right: 0;
  261. bottom: -40rpx;
  262. display: flex;
  263. justify-content: center;
  264. }
  265. .dots .dot {
  266. margin: 0 8rpx;
  267. width: 14rpx;
  268. height: 14rpx;
  269. background: #E4E4E4;
  270. border-radius: 8rpx;
  271. transition: all .6s;
  272. }
  273. .dots .dot.active {
  274. width: 24rpx;
  275. background: rgb(153, 153, 153);
  276. }
  277. .game-wrap {
  278. position: relative;
  279. width: 100%;
  280. height: 100%;
  281. overflow: hidden;
  282. box-sizing: border-box;
  283. }
  284. .game-item {
  285. height: 100%;
  286. background: url("https://file.supermm.me/h5/wechat-h5/integral/personeBg001.jpg") no-repeat;
  287. background-size: 100% 100%;
  288. background-position: center center;
  289. border-radius: 100rpx;
  290. }
  291. .card {
  292. width: 100%;
  293. height: auto;
  294. margin-top: 20rpx;
  295. // background-image: url(../../static/服务包.png);
  296. .taocan {
  297. width: 710rpx;
  298. height: 230rpx;
  299. position: relative;
  300. display: flex;
  301. border-radius: 10rpx;
  302. background: radial-gradient(circle at right top, transparent 15rpx, #ffffff 0) top left / 152rpx 51% no-repeat,
  303. radial-gradient(circle at right bottom, transparent 15rpx, #ffffff 0) bottom left /152rpx 51% no-repeat,
  304. radial-gradient(circle at left top, transparent 15rpx, #ffffff 0) top right /560rpx 51% no-repeat,
  305. radial-gradient(circle at left bottom, transparent 15rpx, #ffffff 0) bottom right /560rpx 51% no-repeat;
  306. filter: drop-shadow(0rpx 2rpx 12rpx 0rpx rgba(0, 0, 0, 0.04));
  307. }
  308. }
  309. .tc_left {
  310. display: flex;
  311. justify-content: center;
  312. align-items: center;
  313. width: 152rpx;
  314. text {
  315. font-size: 30rpx;
  316. font-weight: bold;
  317. }
  318. }
  319. .tc_right {
  320. display: flex;
  321. flex-direction: column;
  322. justify-content: center;
  323. width: 550rpx;
  324. padding: 0 20rpx;
  325. font-size: 26rpx;
  326. .text {
  327. padding: 10rpx 0rpx;
  328. width: 100%;
  329. }
  330. }
  331. </style>