archives_info.vue 11 KB

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