index.vue 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  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 style="height: 12px"></div>
  43. <div class="code">
  44. 资格证编号:<span>{{ item.certificateNo }}</span>
  45. </div>
  46. <div class="club-name">
  47. 所在机构:<span>{{ item.clubName }}</span>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. <!-- 列表为空 -->
  53. <SimpleEmpty
  54. v-if="!total && !isRequest"
  55. name="icon-empty-doctor.png"
  56. description="敬请期待~"
  57. ></SimpleEmpty>
  58. </div>
  59. </van-list>
  60. </div>
  61. </template>
  62. <script>
  63. import operatDoctorListMixin from '@/mixins/operatDoctorList'
  64. export default {
  65. layout: 'app-ross',
  66. mixins: [operatDoctorListMixin],
  67. }
  68. </script>
  69. <style scoped lang="scss">
  70. .page {
  71. position: relative;
  72. min-height: calc(100vh - 80px - 80px);
  73. background-color: #fff;
  74. }
  75. // pc 端
  76. @media screen and (min-width: 768px) {
  77. .page-top {
  78. height: 420px;
  79. @include themify($themes) {
  80. background: themed('pc-banner-doctor') no-repeat center;
  81. }
  82. background-size: auto 420px;
  83. .logo {
  84. display: block;
  85. width: 120px;
  86. height: 120px;
  87. border-radius: 50%;
  88. background: #fff;
  89. }
  90. .name {
  91. font-size: 30px;
  92. color: #fff;
  93. }
  94. .logo,
  95. .name {
  96. transform: translateY(-30px);
  97. }
  98. }
  99. .page-content {
  100. width: 1000px;
  101. margin: 0 auto;
  102. .search {
  103. position: absolute;
  104. left: 50%;
  105. top: 300px;
  106. transform: translateX(-50%);
  107. }
  108. .title {
  109. font-size: 16px;
  110. color: #404040;
  111. span {
  112. @include themify($themes) {
  113. color: themed('color');
  114. }
  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. .code,
  159. .club-name {
  160. height: 20px;
  161. position: relative;
  162. font-size: 14px;
  163. color: #999;
  164. line-height: 20px;
  165. text-overflow: ellipsis;
  166. white-space: nowrap;
  167. overflow: hidden;
  168. margin-top: 4px;
  169. span {
  170. color: #333333;
  171. }
  172. }
  173. .tag {
  174. color: #909399;
  175. }
  176. }
  177. }
  178. }
  179. }
  180. }
  181. // 移动 端
  182. @media screen and (max-width: 768px) {
  183. .page-top {
  184. height: 46vw;
  185. @include themify($themes) {
  186. background: themed('h5-banner-doctor') no-repeat center;
  187. background-size: auto 46vw;
  188. }
  189. .logo {
  190. display: block;
  191. width: 14.8vw;
  192. height: 14.8vw;
  193. border-radius: 50%;
  194. background: #fff;
  195. }
  196. .name {
  197. font-size: 4vw;
  198. color: #fff;
  199. }
  200. }
  201. .page-content {
  202. position: relative;
  203. .search {
  204. position: absolute;
  205. left: 50%;
  206. top: 0;
  207. transform: translate(-50%, -50%);
  208. }
  209. .city {
  210. padding-top: 12vw;
  211. }
  212. .title {
  213. font-size: 3.4vw;
  214. color: #404040;
  215. span {
  216. @include themify($themes) {
  217. color: themed('color');
  218. }
  219. }
  220. }
  221. .list {
  222. display: flex;
  223. align-items: center;
  224. flex-direction: column;
  225. .section {
  226. width: 93.6vw;
  227. background-color: #f3f5f6;
  228. border-radius: 4px;
  229. box-sizing: border-box;
  230. padding: 3.2vw;
  231. .cover {
  232. display: block;
  233. width: 16.2vw;
  234. height: 21.6vw;
  235. }
  236. .info {
  237. position: relative;
  238. margin-left: 3.6vw;
  239. flex: 1;
  240. flex-shrink: 0;
  241. .name {
  242. font-size: 4vw;
  243. color: #101010;
  244. font-weight: bold;
  245. margin-bottom: 0.8vw;
  246. text-overflow: ellipsis;
  247. white-space: nowrap;
  248. overflow: hidden;
  249. }
  250. .tag,
  251. .code,
  252. .club-name {
  253. width: 62vw;
  254. height: 5vw;
  255. position: relative;
  256. font-size: 3vw;
  257. color: #999;
  258. line-height: 5vw;
  259. text-overflow: ellipsis;
  260. white-space: nowrap;
  261. overflow: hidden;
  262. span {
  263. color: #333;
  264. }
  265. }
  266. .tag {
  267. color: #909399;
  268. }
  269. }
  270. }
  271. }
  272. }
  273. }
  274. </style>