detail.vue 6.8 KB

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