index.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. <template>
  2. <div class="page">
  3. <van-list
  4. v-model="loadingMore"
  5. :finished="finished"
  6. :immediate-check="false"
  7. :finished-text="total ? '没有更多了' : ''"
  8. @load="onLoadMore"
  9. >
  10. <div class="page-top flex flex-col justify-center items-center">
  11. <!-- <img class="logo" :src="supplierInfo.logo" /> -->
  12. <div class="mt-2 name">
  13. <!-- <span v-text="supplierInfo.shopName"></span> -->
  14. <span>官方操作师认证</span>
  15. </div>
  16. </div>
  17. <div class="page-content">
  18. <!-- 搜索区域 -->
  19. <div class="search">
  20. <SimpleSearch
  21. v-model="listQuery.doctorName"
  22. @search="onSearch"
  23. placeholder="搜索操作师"
  24. />
  25. </div>
  26. <!-- 标题 -->
  27. <div class="title px-4 pt-12 pb-6">
  28. 共<span v-text="total"></span>位操作师
  29. </div>
  30. <!-- 列表 -->
  31. <div class="list">
  32. <div
  33. class="section flex justify-between mb-4"
  34. v-for="item in list"
  35. :key="item.doctorId"
  36. @click="toDetail(item)"
  37. >
  38. <img class="cover" :src="item.doctorImage" />
  39. <div class="info">
  40. <div class="name" v-text="item.doctorName"></div>
  41. <!-- <div class="tag">{{ item.tagList.join(' | ') }}</div> -->
  42. <div class="en" v-if="item.englishName">
  43. 英文名:{{ item.englishName }}
  44. </div>
  45. <div class="code">
  46. 资格证编号:<span>{{ item.certificateNo }}</span>
  47. </div>
  48. <div class="club-name">
  49. 所在机构:<span>{{ item.clubName }}</span>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. <!-- 列表为空 -->
  55. <SimpleEmpty
  56. v-if="!total && !isRequest"
  57. name="icon-empty-doctor.png"
  58. description="敬请期待~"
  59. ></SimpleEmpty>
  60. </div>
  61. </van-list>
  62. </div>
  63. </template>
  64. <script>
  65. import operatDoctorListMixin from '@/mixins/operatDoctorList'
  66. export default {
  67. layout: 'app-asbl',
  68. mixins: [operatDoctorListMixin],
  69. }
  70. </script>
  71. <style scoped lang="scss">
  72. .page {
  73. position: relative;
  74. min-height: calc(100vh - 80px - 80px);
  75. background-color: #fff;
  76. }
  77. // pc 端
  78. @media screen and (min-width: 768px) {
  79. .page {
  80. @include useTheme() {
  81. .page-top {
  82. height: 420px;
  83. background: fetch('pc-banner-doctor') no-repeat center;
  84. background-size: auto 420px;
  85. .logo {
  86. display: block;
  87. width: 120px;
  88. height: 120px;
  89. border-radius: 50%;
  90. background: #fff;
  91. }
  92. .name {
  93. font-size: 30px;
  94. color: #fff;
  95. }
  96. .logo,
  97. .name {
  98. transform: translateY(-30px);
  99. }
  100. }
  101. .page-content {
  102. width: 1000px;
  103. margin: 0 auto;
  104. .search {
  105. position: absolute;
  106. left: 50%;
  107. top: 300px;
  108. transform: translateX(-50%);
  109. }
  110. .title {
  111. font-size: 16px;
  112. color: #404040;
  113. span {
  114. color: fetch('color');
  115. }
  116. }
  117. .list {
  118. display: flex;
  119. align-items: center;
  120. flex-wrap: wrap;
  121. justify-content: space-between;
  122. .empty {
  123. width: 390px;
  124. }
  125. .section {
  126. width: 490px;
  127. height: 136px;
  128. background-color: #f3f5f6;
  129. border-radius: 4px;
  130. box-sizing: border-box;
  131. padding: 16px;
  132. cursor: pointer;
  133. transition: all 0.4s;
  134. &:hover {
  135. box-shadow: 0 0 24px rgba(0, 0, 0, 0.2);
  136. }
  137. .cover {
  138. display: block;
  139. width: 78px;
  140. height: 104px;
  141. }
  142. .info {
  143. flex: 1;
  144. flex-shrink: 0;
  145. position: relative;
  146. margin-left: 16px;
  147. .name {
  148. font-size: 18px;
  149. color: #101010;
  150. font-weight: bold;
  151. text-overflow: ellipsis;
  152. white-space: nowrap;
  153. overflow: hidden;
  154. font-weight: bold;
  155. margin-bottom: 8px;
  156. }
  157. .tag,
  158. .en,
  159. .code,
  160. .club-name {
  161. height: 20px;
  162. position: relative;
  163. font-size: 14px;
  164. color: #999;
  165. line-height: 20px;
  166. text-overflow: ellipsis;
  167. white-space: nowrap;
  168. overflow: hidden;
  169. margin-top: 4px;
  170. span {
  171. color: #333333;
  172. }
  173. }
  174. .tag,
  175. .en {
  176. color: #909399;
  177. }
  178. }
  179. }
  180. }
  181. }
  182. }
  183. }
  184. }
  185. // 移动 端
  186. @media screen and (max-width: 768px) {
  187. .page {
  188. @include useTheme() {
  189. .page-top {
  190. height: 46vw;
  191. background: fetch('h5-banner-doctor') no-repeat center;
  192. background-size: auto 46vw;
  193. .logo {
  194. display: block;
  195. width: 14.8vw;
  196. height: 14.8vw;
  197. border-radius: 50%;
  198. background: #fff;
  199. }
  200. .name {
  201. font-size: 4vw;
  202. color: #fff;
  203. }
  204. }
  205. .page-content {
  206. position: relative;
  207. .search {
  208. position: absolute;
  209. left: 50%;
  210. top: 0;
  211. transform: translate(-50%, -50%);
  212. }
  213. .city {
  214. padding-top: 12vw;
  215. }
  216. .title {
  217. font-size: 3.4vw;
  218. color: #404040;
  219. span {
  220. color: fetch('color');
  221. }
  222. }
  223. .list {
  224. display: flex;
  225. align-items: center;
  226. flex-direction: column;
  227. .section {
  228. width: 93.6vw;
  229. background-color: #f3f5f6;
  230. border-radius: 4px;
  231. box-sizing: border-box;
  232. padding: 3.2vw;
  233. .cover {
  234. display: block;
  235. width: 16.2vw;
  236. height: 21.6vw;
  237. }
  238. .info {
  239. position: relative;
  240. margin-left: 3.6vw;
  241. flex: 1;
  242. flex-shrink: 0;
  243. .name {
  244. font-size: 4vw;
  245. color: #101010;
  246. font-weight: bold;
  247. margin-bottom: 0.8vw;
  248. text-overflow: ellipsis;
  249. white-space: nowrap;
  250. overflow: hidden;
  251. }
  252. .tag,
  253. .code,
  254. .en,
  255. .club-name {
  256. width: 62vw;
  257. height: 5vw;
  258. position: relative;
  259. font-size: 3vw;
  260. color: #999;
  261. line-height: 5vw;
  262. text-overflow: ellipsis;
  263. white-space: nowrap;
  264. overflow: hidden;
  265. span {
  266. color: #333;
  267. }
  268. }
  269. .tag,
  270. .en {
  271. color: #909399;
  272. }
  273. }
  274. }
  275. }
  276. }
  277. }
  278. }
  279. }
  280. </style>