index.vue 6.3 KB

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