detail.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. <template>
  2. <div class="page md:flex md:justify-between">
  3. <div class="page-title">体疗师认证</div>
  4. <div class="page-top">
  5. <div class="swiper">
  6. <SimpleSwiper :imageList="doctorInfo.bannerList"></SimpleSwiper>
  7. </div>
  8. </div>
  9. <div class="page-content">
  10. <div class="doctor-info px-4 pt-4 md:pt-0">
  11. <div class="name pb-4">{{ doctorInfo.doctorName }}</div>
  12. <div class="tag pb-1">{{ doctorInfo.tagList.join(' | ') }}</div>
  13. <div class="code pb-1">
  14. 从业资格证编号:{{ doctorInfo.certificateNo }}
  15. </div>
  16. <div class="club-name">所在机构:{{ doctorInfo.clubName }}</div>
  17. </div>
  18. <div class="section param-list pb-4">
  19. <div
  20. class="param px-4 pt-4"
  21. v-for="(param, index) in doctorInfo.paramList"
  22. :key="index"
  23. >
  24. <div class="name py-2" v-text="param.name"></div>
  25. <div class="content" v-text="param.content"></div>
  26. </div>
  27. </div>
  28. <div class="divider"></div>
  29. <div class="device-list p-4">
  30. <div class="title">具备操作资格设备</div>
  31. <div class="list">
  32. <div
  33. class="device flex items-center py-4"
  34. v-for="item in doctorInfo.equipmentList"
  35. :key="item.productId"
  36. >
  37. <img class="cover" :src="item.image" />
  38. <div class="info">
  39. <div class="name" v-text="item.equipmentName"></div>
  40. <div class="brand mt-2">品牌:{{ item.brand }}</div>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. </template>
  48. <script>
  49. import operatDoctorDetailMixin from '@/mixins/operatDoctorDetail'
  50. export default {
  51. layout: 'app-normal',
  52. mixins: [operatDoctorDetailMixin],
  53. }
  54. </script>
  55. <style scoped lang="scss">
  56. // pc 端
  57. @media screen and (min-width: 768px) {
  58. .page {
  59. position: relative;
  60. width: 1200px;
  61. height: 612px;
  62. margin-left: auto;
  63. margin-right: auto;
  64. margin-top: 80px;
  65. background-color: #fff;
  66. box-sizing: border-box;
  67. padding: 16px;
  68. padding-right: 0;
  69. }
  70. .page-title {
  71. position: absolute;
  72. font-size: 24px;
  73. color: #333;
  74. top: -50px;
  75. left: 0;
  76. }
  77. .page-top {
  78. .swiper {
  79. width: 580px;
  80. height: 580px;
  81. background: #f7f7f7;
  82. ::v-deep {
  83. img {
  84. width: 580px;
  85. height: 580px;
  86. }
  87. }
  88. }
  89. }
  90. .page-content {
  91. width: 580px;
  92. padding: 0 24px;
  93. overflow-y: auto;
  94. .doctor-info {
  95. line-height: 1.6;
  96. .name {
  97. font-size: 24px;
  98. color: #101010;
  99. font-weight: bold;
  100. &::after {
  101. content: '';
  102. display: inline-block;
  103. width: 76px;
  104. height: 28px;
  105. background: url(~assets/theme-images/common/h5-icon-doctor-ad.png)
  106. no-repeat;
  107. background-size: 76px 28px;
  108. vertical-align: -5px;
  109. margin-left: 8px;
  110. }
  111. }
  112. .tag {
  113. font-size: 14px;
  114. color: #909399;
  115. }
  116. .code,
  117. .club-name {
  118. font-size: 14px;
  119. color: #404040;
  120. }
  121. }
  122. .param-list {
  123. .param {
  124. .name {
  125. font-size: 18px;
  126. color: #101010;
  127. font-weight: bold;
  128. }
  129. .content {
  130. font-size: 14px;
  131. color: #404040;
  132. line-height: 1.6;
  133. text-align: justify;
  134. }
  135. }
  136. }
  137. .device-list {
  138. .title {
  139. padding: 16px;
  140. font-size: 20px;
  141. font-weight: bold;
  142. color: #404040;
  143. background-color: #f3f5f6;
  144. }
  145. .list {
  146. display: flex;
  147. align-items: center;
  148. flex-direction: column;
  149. .device {
  150. width: 100%;
  151. box-sizing: border-box;
  152. border-bottom: 1px solid #d8d8d8;
  153. .cover {
  154. width: 84px;
  155. height: 84px;
  156. display: block;
  157. }
  158. .info {
  159. margin-left: 16px;
  160. width: 300px;
  161. .name {
  162. font-size: 18px;
  163. color: #101010;
  164. text-overflow: ellipsis;
  165. overflow: hidden;
  166. white-space: nowrap;
  167. }
  168. .brand {
  169. font-size: 14px;
  170. color: #666666;
  171. text-overflow: ellipsis;
  172. overflow: hidden;
  173. white-space: nowrap;
  174. }
  175. }
  176. }
  177. }
  178. }
  179. }
  180. }
  181. // 移动 端
  182. @media screen and (max-width: 768px) {
  183. .page-title {
  184. display: none;
  185. }
  186. .page-top {
  187. .swiper {
  188. height: 100vw;
  189. background: #f7f7f7;
  190. ::v-deep {
  191. img {
  192. height: 100vw;
  193. }
  194. }
  195. }
  196. }
  197. .page-content {
  198. .divider {
  199. height: 3.2vw;
  200. background-color: #f7f7f7;
  201. }
  202. .doctor-info {
  203. line-height: 1.6;
  204. .name {
  205. font-size: 5vw;
  206. color: #101010;
  207. font-weight: bold;
  208. &::after {
  209. content: '';
  210. display: inline-block;
  211. width: 13.6vw;
  212. height: 5vw;
  213. background: url(~assets/theme-images/common/h5-icon-doctor-ad.png)
  214. no-repeat;
  215. background-size: 13.6vw 5vw;
  216. vertical-align: -0.8vw;
  217. margin-left: 1.2vw;
  218. }
  219. }
  220. .tag {
  221. font-size: 3vw;
  222. color: #909399;
  223. }
  224. .code,
  225. .club-name {
  226. font-size: 3.2vw;
  227. color: #404040;
  228. }
  229. }
  230. .param-list {
  231. .param {
  232. .name {
  233. font-size: 3.8vw;
  234. color: #101010;
  235. font-weight: bold;
  236. }
  237. .content {
  238. font-size: 3.2vw;
  239. color: #404040;
  240. line-height: 1.6;
  241. text-align: justify;
  242. }
  243. }
  244. }
  245. .device-list {
  246. .title {
  247. font-size: 4vw;
  248. color: #101010;
  249. font-weight: bold;
  250. }
  251. .list {
  252. display: flex;
  253. align-items: center;
  254. flex-direction: column;
  255. .device {
  256. width: 100%;
  257. box-sizing: border-box;
  258. border-bottom: 0.1vw solid #d8d8d8;
  259. .cover {
  260. width: 19.6vw;
  261. height: 19.6vw;
  262. display: block;
  263. }
  264. .info {
  265. margin-left: 3.2vw;
  266. width: 66vw;
  267. .name {
  268. font-size: 3.6vw;
  269. color: #101010;
  270. text-overflow: ellipsis;
  271. overflow: hidden;
  272. white-space: nowrap;
  273. }
  274. .brand {
  275. font-size: 3vw;
  276. color: #666666;
  277. text-overflow: ellipsis;
  278. overflow: hidden;
  279. white-space: nowrap;
  280. }
  281. }
  282. }
  283. }
  284. }
  285. }
  286. }
  287. </style>