doctorImgs.vue 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. <template>
  2. <view class="content">
  3. <view class="imgs">
  4. <view class="img" v-for="(img,index) in imgs">
  5. <image @click="showImg(index)" :src="img"></image>
  6. </view>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. import {getDoctorDetails} from '@/api/doctor.js'
  12. export default {
  13. data() {
  14. return {
  15. imgs:[]
  16. }
  17. },
  18. onLoad(options) {
  19. this.doctorId=options.doctorId;
  20. },
  21. onShow() {
  22. this.getDoctorDetails();
  23. },
  24. methods: {
  25. showImg(index){
  26. uni.previewImage({
  27. current:index,
  28. urls: this.imgs
  29. });
  30. },
  31. getDoctorDetails() {
  32. //联网加载数据
  33. var that = this;
  34. var data = {
  35. doctorId: this.doctorId
  36. };
  37. this.imgs=[];
  38. getDoctorDetails(data).then(res => {
  39. if(res.code==200){
  40. this.doctor=res.data.doctor;
  41. if(this.doctor.certificateImages!=null){
  42. this.imgs.concat(this.doctor.certificateImages)
  43. }
  44. if(this.doctor.practiseImages!=null){
  45. this.imgs.concat(this.doctor.practiseImages)
  46. }
  47. console.log(this.imgs)
  48. }else{
  49. uni.showToast({
  50. icon:'none',
  51. title: "请求失败",
  52. });
  53. }
  54. });
  55. },
  56. }
  57. }
  58. </script>
  59. <style scoped lang="scss">
  60. .content{
  61. height: 100%;
  62. position: relative;
  63. .imgs{
  64. padding: 15rpx;
  65. width: 100%;
  66. image{
  67. width: 100%;
  68. margin-bottom: 15rpx;
  69. }
  70. }
  71. .cont{
  72. top:50rpx;
  73. position: relative;
  74. padding: 0rpx 20rpx;
  75. z-index: 999;
  76. width: 100%;
  77. display: flex;
  78. flex-direction: column;
  79. .doc-box{
  80. margin-bottom: 20rpx;
  81. padding: 30rpx;
  82. box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.05);
  83. background-color: #fff;
  84. border-radius: 15rpx;
  85. display: flex;
  86. align-items: center;
  87. justify-content: flex-start;
  88. .left{
  89. width: 190upx;
  90. height: 190upx;
  91. border-radius: 8upx;
  92. image{
  93. width: 190upx;
  94. height: 190upx;
  95. }
  96. }
  97. .right{
  98. display: flex;
  99. flex-direction: column;
  100. justify-content: flex-start;
  101. margin-left: 20rpx;
  102. height:190upx;
  103. width: calc(100% - 210upx);
  104. .doc-name-box{
  105. display: flex;
  106. align-items: center;
  107. justify-content: flex-start;
  108. position: relative;
  109. .doc-name{
  110. font-size: 38rpx;
  111. font-weight: bold;
  112. }
  113. .doc-ping{
  114. margin-left: 10rpx;
  115. }
  116. .doc-star{
  117. position: absolute;
  118. top:5rpx;
  119. right:0rpx;
  120. width:32rpx;
  121. height:32rpx;
  122. image{
  123. width:100%;
  124. height:100%;
  125. }
  126. }
  127. }
  128. .doc-dept-box{
  129. display: flex;
  130. align-items: center;
  131. justify-content: flex-start;
  132. margin-top: 15rpx;
  133. font-size: 28upx;
  134. font-family: PingFang SC;
  135. color: #2d2b36;
  136. }
  137. .doc-his-box{
  138. display: flex;
  139. align-items: center;
  140. justify-content: flex-start;
  141. margin-top: 15rpx;
  142. font-size: 28upx;
  143. font-family: PingFang SC;
  144. color: #9a9a9c;
  145. }
  146. .doc-spec-box{
  147. width: 100%;
  148. display: flex;
  149. align-items: center;
  150. justify-content: space-between;
  151. margin-top: 15rpx;
  152. .spec-left{
  153. width: 80%;
  154. display: flex;
  155. align-items: center;
  156. justify-content: flex-start;
  157. .title{
  158. font-size: 28upx;
  159. font-family: PingFang SC;
  160. color: #9a9a9c;
  161. }
  162. .spec{
  163. // margin-left: 10rpx;
  164. font-size: 28upx;
  165. font-family: PingFang SC;
  166. color: #9a9a9c;
  167. }
  168. }
  169. .spec-right{
  170. .btn{
  171. font-size: 28upx;
  172. font-family: PingFang SC;
  173. color: #C39A58;
  174. }
  175. }
  176. }
  177. }
  178. }
  179. .price-box{
  180. margin-bottom: 20rpx;
  181. padding: 15rpx;
  182. box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.05);
  183. background-color: #fff;
  184. border-radius: 15rpx;
  185. .title-box{
  186. display: flex;
  187. flex-direction: row;
  188. align-items: center;
  189. justify-content: flex-start;
  190. .title{
  191. font-size: 32upx;
  192. font-family: PingFang SC;
  193. font-weight: bold;
  194. color: #111111;
  195. }
  196. .line{
  197. margin-right: 15rpx;
  198. height: 30rpx;
  199. width: 6rpx;
  200. background-color: #C39A58;
  201. }
  202. }
  203. .price-list{
  204. display: flex;
  205. flex-direction: column;
  206. align-items: flex-start;
  207. justify-content: flex-start;
  208. margin-top: 15rpx;
  209. padding: 15rpx;
  210. .price-item{
  211. margin-bottom: 15rpx;
  212. padding: 15rpx;
  213. width: 100%;
  214. display: flex;
  215. align-items: center;
  216. justify-content: space-between;
  217. border-radius: 15rpx;
  218. background-color: #f1f6fc;
  219. .left{
  220. .price-name{
  221. font-size: 32upx;
  222. font-family: PingFang SC;
  223. color: #111111;
  224. display: flex;
  225. align-items: center;
  226. justify-content: flex-start;
  227. .price{
  228. margin-left: 15rpx;
  229. font-size: 32upx;
  230. font-family: PingFang SC;
  231. color: #fe9460;
  232. }
  233. }
  234. .price-desc{
  235. margin-top: 20rpx;
  236. font-size: 28upx;
  237. font-family: PingFang SC;
  238. color: #9a9a9c;
  239. }
  240. }
  241. .right{
  242. .btn{
  243. padding: 15rpx 30rpx;
  244. background-color: #ff9561;
  245. color: #fff;
  246. font-size: 28rpx;
  247. border-radius: 15rpx;
  248. }
  249. }
  250. }
  251. }
  252. }
  253. .his-box{
  254. margin-bottom: 20rpx;
  255. padding: 15rpx;
  256. box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.05);
  257. background-color: #fff;
  258. border-radius: 15rpx;
  259. .title-box{
  260. display: flex;
  261. flex-direction: row;
  262. align-items: center;
  263. justify-content: flex-start;
  264. .title{
  265. font-size: 32upx;
  266. font-family: PingFang SC;
  267. font-weight: bold;
  268. color: #111111;
  269. }
  270. .line{
  271. margin-right: 15rpx;
  272. height: 30rpx;
  273. width: 6rpx;
  274. background-color: #C39A58;
  275. }
  276. }
  277. .his{
  278. display: flex;
  279. align-items: center;
  280. justify-content: space-between;
  281. margin-top: 15rpx;
  282. .left{
  283. display: flex;
  284. flex-direction: column;
  285. align-items: flex-start;
  286. justify-content: center;
  287. .his-name{
  288. font-size: 32upx;
  289. font-family: PingFang SC;
  290. color: #111111;
  291. }
  292. .his-desc{
  293. margin-top: 15rpx;
  294. font-size: 28upx;
  295. font-family: PingFang SC;
  296. color: #9a9a9c;
  297. }
  298. }
  299. .right{
  300. image{
  301. width:30rpx;
  302. height:30rpx;
  303. }
  304. }
  305. }
  306. }
  307. .desc-box{
  308. margin-bottom: 20rpx;
  309. padding: 15rpx;
  310. box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.05);
  311. background-color: #fff;
  312. border-radius: 15rpx;
  313. .title-box{
  314. display: flex;
  315. flex-direction: row;
  316. align-items: center;
  317. justify-content: flex-start;
  318. .title{
  319. font-size: 32upx;
  320. font-family: PingFang SC;
  321. font-weight: bold;
  322. color: #111111;
  323. }
  324. .line{
  325. margin-right: 15rpx;
  326. height: 30rpx;
  327. width: 6rpx;
  328. background-color: #C39A58;
  329. }
  330. }
  331. .desc{
  332. margin-top: 15rpx;
  333. font-size: 28upx;
  334. font-family: PingFang SC;
  335. color: #9a9a9c;
  336. }
  337. }
  338. .ping-box{
  339. margin-bottom: 20rpx;
  340. padding: 15rpx;
  341. box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.05);
  342. background-color: #fff;
  343. border-radius: 15rpx;
  344. .title-box{
  345. display: flex;
  346. flex-direction: row;
  347. align-items: center;
  348. justify-content: space-between;
  349. .left{
  350. display: flex;
  351. align-items: center;
  352. justify-content: center;
  353. .title{
  354. font-size: 32upx;
  355. font-family: PingFang SC;
  356. font-weight: bold;
  357. color: #111111;
  358. }
  359. .line{
  360. margin-right: 15rpx;
  361. height: 30rpx;
  362. width: 6rpx;
  363. background-color: #C39A58;
  364. }
  365. }
  366. .more{
  367. display: flex;
  368. align-items: center;
  369. justify-content: center;
  370. font-size: 28upx;
  371. font-family: PingFang SC;
  372. color: #9a9a9c;
  373. image{
  374. margin-left: 10rpx;
  375. width: 30rpx;
  376. height:30rpx;
  377. }
  378. }
  379. }
  380. .ping-list{
  381. display: flex;
  382. flex-direction: column;
  383. align-items: flex-start;
  384. justify-content: flex-start;
  385. margin-top: 15rpx;
  386. padding: 15rpx;
  387. .ping-item{
  388. padding: 20rpx 0rpx;
  389. border-bottom: 1rpx solid #efefef;
  390. width: 100%;
  391. display: flex;
  392. align-items: flex-start;
  393. justify-content: flex-start;
  394. &:last-child{
  395. padding-bottom: 0rpx;
  396. border-bottom: none;
  397. }
  398. .left{
  399. image{
  400. width:80rpx;
  401. height:80rpx;
  402. border-radius: 50%;
  403. }
  404. }
  405. .right{
  406. width: 100%;
  407. margin-left: 15rpx;
  408. .user-name-box{
  409. display: flex;
  410. align-items: center;
  411. justify-content: space-between;
  412. font-size: 28upx;
  413. font-family: PingFang SC;
  414. font-weight: bold;
  415. color: #111111;
  416. }
  417. .ping-cont{
  418. margin-top: 10rpx;
  419. font-size: 28upx;
  420. font-family: PingFang SC;
  421. color: #9a9a9c;
  422. }
  423. .ping-time{
  424. margin-top: 10rpx;
  425. font-size: 28upx;
  426. font-family: PingFang SC;
  427. color: #9a9a9c;
  428. }
  429. }
  430. }
  431. }
  432. }
  433. }
  434. }
  435. </style>