detail.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543
  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="clubInfo.bannerList"></SimpleSwiper>
  7. </div>
  8. </div>
  9. <div class="page-content">
  10. <div class="auth">
  11. <div class="auth-icon"></div>
  12. <div class="auth-info">
  13. <span class="font-bold">ROS'S</span>
  14. <span>授予</span>
  15. <span>{{ clubInfo.authParty }}</span>
  16. <span>正品拥有</span>
  17. </div>
  18. </div>
  19. <div class="club-info">
  20. <div class="section flex justify-between items-center">
  21. <div class="info">
  22. <div class="name" v-text="clubInfo.authParty"></div>
  23. <div class="mobile" @click="callMobile(clubInfo.mobile)">
  24. {{ clubInfo.mobile | formatEmpty }}
  25. </div>
  26. <div class="address" v-text="address"></div>
  27. </div>
  28. <div class="logo"><img :src="clubInfo.logo" /></div>
  29. </div>
  30. <div class="section flex justify-between items-center mt-6">
  31. <div class="navigation" @click="onMapNav">导航</div>
  32. <div
  33. class="distance"
  34. v-if="clubInfo.distance && clubInfo.distance < 99999"
  35. v-text="'距你' + clubInfo.distance + 'km'"
  36. ></div>
  37. </div>
  38. </div>
  39. <div class="divider"></div>
  40. <div class="device-list">
  41. <div class="title">已认证设备</div>
  42. <div class="list">
  43. <div
  44. class="device flex justify-between items-center"
  45. v-for="item in clubInfo.productList"
  46. :key="item.productId"
  47. >
  48. <div class="info">
  49. <div class="name" v-text="item.productName"></div>
  50. <div class="code">SN码:{{ item.snCode | formatSnCode }}</div>
  51. </div>
  52. <div class="detail" @click="toDetail(item)">查看认证</div>
  53. </div>
  54. </div>
  55. </div>
  56. <SimpleEmpty
  57. v-if="isEmpty"
  58. name="icon-empty-device.png"
  59. description="暂无已认证设备"
  60. ></SimpleEmpty>
  61. </div>
  62. <SimpleMapNav
  63. ref="mapNav"
  64. @click="navigation"
  65. color="#f3920d"
  66. ></SimpleMapNav>
  67. </div>
  68. </template>
  69. <script>
  70. import clubDetailMixin from '@/mixins/clubDetail'
  71. export default {
  72. layout: 'app-ross',
  73. mixins: [clubDetailMixin],
  74. }
  75. </script>
  76. <style scoped lang="scss">
  77. // pc 端
  78. @media screen and (min-width: 768px) {
  79. .page {
  80. position: relative;
  81. width: 1200px;
  82. height: 612px;
  83. margin-left: auto;
  84. margin-right: auto;
  85. margin-top: 80px;
  86. background-color: #fff;
  87. box-sizing: border-box;
  88. padding: 16px;
  89. padding-right: 0;
  90. }
  91. .page-title {
  92. position: absolute;
  93. font-size: 24px;
  94. color: #333;
  95. top: -50px;
  96. left: 0;
  97. }
  98. .page-top {
  99. margin-right: 24px;
  100. .swiper {
  101. width: 580px;
  102. height: 580px;
  103. background: #f7f7f7;
  104. ::v-deep {
  105. img {
  106. width: 580px;
  107. height: 580px;
  108. }
  109. }
  110. }
  111. }
  112. .page-content {
  113. width: 580px;
  114. overflow-y: auto;
  115. &::-webkit-scrollbar {
  116. width: 8px;
  117. // background-color: #eeeeee;
  118. }
  119. &::-webkit-scrollbar-thumb {
  120. border-radius: 4px;
  121. background-color: #eeeeee;
  122. }
  123. .auth {
  124. width: 564px;
  125. min-height: 114px;
  126. background: #f3920d;
  127. box-sizing: border-box;
  128. padding: 24px;
  129. margin-bottom: 4px;
  130. border-radius: 4px;
  131. .auth-icon {
  132. height: 28px;
  133. background: url(~assets/theme-images/ross/pc-icon-auth.png) no-repeat
  134. left center;
  135. background-size: auto 28px;
  136. }
  137. .auth-info {
  138. font-size: 0;
  139. margin-top: 10px;
  140. span {
  141. font-size: 20px;
  142. color: #fff;
  143. }
  144. }
  145. }
  146. .club-info {
  147. padding: 32px 24px;
  148. width: 564px;
  149. min-height: 264px;
  150. background: url(~assets/theme-images/ross/pc-club-info-bg.png) center
  151. no-repeat;
  152. background-size: cover;
  153. box-sizing: border-box;
  154. .info {
  155. width: 360px;
  156. .name {
  157. font-size: 24px;
  158. color: #fff;
  159. font-weight: bold;
  160. margin-bottom: 34px;
  161. }
  162. .mobile,
  163. .address {
  164. position: relative;
  165. padding-left: 28px;
  166. margin-top: 16px;
  167. line-height: 24px;
  168. font-size: 16px;
  169. color: #fff;
  170. &::after {
  171. content: '';
  172. display: block;
  173. width: 24px;
  174. height: 24px;
  175. position: absolute;
  176. left: 0;
  177. top: 0;
  178. background-size: 20px;
  179. background-repeat: no-repeat;
  180. background-position: center;
  181. }
  182. }
  183. .mobile {
  184. cursor: pointer;
  185. &::after {
  186. @include themify($themes) {
  187. background-image: themed('pc-icon-mobile');
  188. }
  189. }
  190. }
  191. .address {
  192. &::after {
  193. @include themify($themes) {
  194. background-image: themed('h5-icon-address');
  195. }
  196. }
  197. }
  198. }
  199. .logo {
  200. position: relative;
  201. width: 114px;
  202. height: 114px;
  203. border-radius: 50% 50% 0 50%;
  204. overflow: hidden;
  205. background: #fff;
  206. &::after {
  207. position: absolute;
  208. bottom: 0;
  209. right: 0;
  210. content: '';
  211. display: block;
  212. width: 23px;
  213. height: 23px;
  214. background: url(~assets/theme-images/ross/pc-icon-avatar-v.png)
  215. no-repeat center;
  216. background-size: 23px;
  217. }
  218. }
  219. .navigation {
  220. display: flex;
  221. justify-content: center;
  222. align-items: center;
  223. width: 72px;
  224. height: 32px;
  225. border-radius: 4px;
  226. font-size: 16px;
  227. color: #f3920d;
  228. border: 1px solid #fff;
  229. background-color: #fff;
  230. cursor: pointer;
  231. &::after {
  232. content: '';
  233. display: block;
  234. width: 16px;
  235. height: 16px;
  236. margin-left: 4px;
  237. @include themify($themes) {
  238. background: themed('pc-icon-navigation') no-repeat center;
  239. }
  240. background-size: 16px;
  241. }
  242. }
  243. .distance {
  244. font-size: 14px;
  245. color: #fff;
  246. }
  247. }
  248. .device-list {
  249. .title {
  250. position: relative;
  251. font-size: 20px;
  252. font-weight: bold;
  253. color: #282828;
  254. line-height: 30px;
  255. padding-left: 32px;
  256. margin-top: 46px;
  257. margin-bottom: 24px;
  258. &::before {
  259. content: '';
  260. display: block;
  261. width: 30px;
  262. height: 30px;
  263. background: url(~assets/theme-images/ross/pc-icon-device-list.png)
  264. no-repeat center;
  265. position: absolute;
  266. left: 0;
  267. top: 0;
  268. }
  269. }
  270. .list {
  271. padding-right: 16px;
  272. }
  273. .device {
  274. padding: 20px 16px;
  275. box-sizing: border-box;
  276. background: #f3f5f6;
  277. margin-top: 16px;
  278. &:first-child {
  279. margin-top: 0;
  280. }
  281. .info {
  282. width: 80%;
  283. .name {
  284. font-size: 18px;
  285. color: #282828;
  286. }
  287. .code {
  288. margin-top: 12px;
  289. font-size: 14px;
  290. color: #666;
  291. }
  292. }
  293. .detail {
  294. display: flex;
  295. justify-content: center;
  296. align-items: center;
  297. width: 80px;
  298. height: 32px;
  299. border-radius: 4px;
  300. font-size: 14px;
  301. color: #ffffff;
  302. cursor: pointer;
  303. @include themify($themes) {
  304. background: themed('color');
  305. }
  306. }
  307. }
  308. }
  309. }
  310. }
  311. // 移动 端
  312. @media screen and (max-width: 768px) {
  313. .page-title {
  314. display: none;
  315. }
  316. .page-top {
  317. .swiper {
  318. height: 100vw;
  319. background: #f7f7f7;
  320. ::v-deep {
  321. img {
  322. height: 100vw;
  323. }
  324. }
  325. }
  326. }
  327. .page-content {
  328. .auth {
  329. // width: 100%;
  330. min-height: 20vw;
  331. background: #f3920d;
  332. box-sizing: border-box;
  333. padding: 5.2vw 4vw;
  334. .auth-icon {
  335. height: 4.9vw;
  336. background: url(~assets/theme-images/ross/h5-icon-auth.png) no-repeat
  337. left center;
  338. background-size: auto 4.9vw;
  339. }
  340. .auth-info {
  341. font-size: 0;
  342. margin-top: 1vw;
  343. span {
  344. font-size: 3.6vw;
  345. line-height: 6.4vw;
  346. color: #fff;
  347. font-weight: bold;
  348. }
  349. }
  350. }
  351. .club-info {
  352. padding: 4vw;
  353. width: 100vw;
  354. min-height: 43.4vw;
  355. background: url(~assets/theme-images/ross/h5-club-info-bg.png) center
  356. no-repeat;
  357. background-size: cover;
  358. box-sizing: border-box;
  359. .info {
  360. width: 67vw;
  361. .name {
  362. font-size: 4.8vw;
  363. color: #fff;
  364. font-weight: bold;
  365. margin-bottom: 4vw;
  366. }
  367. .mobile,
  368. .address {
  369. position: relative;
  370. padding-left: 5vw;
  371. margin-top: 1.6vw;
  372. line-height: 5vw;
  373. font-size: 3.2vw;
  374. color: #fff;
  375. &::after {
  376. content: '';
  377. display: block;
  378. width: 4vw;
  379. height: 5vw;
  380. position: absolute;
  381. left: 0;
  382. top: 0;
  383. background-size: 4vw 4vw;
  384. background-repeat: no-repeat;
  385. background-position: center;
  386. }
  387. }
  388. .mobile {
  389. &::after {
  390. @include themify($themes) {
  391. background-image: themed('h5-icon-mobile');
  392. }
  393. }
  394. }
  395. .address {
  396. &::after {
  397. @include themify($themes) {
  398. background-image: themed('h5-icon-address');
  399. }
  400. }
  401. }
  402. }
  403. .logo {
  404. position: relative;
  405. width: 18vw;
  406. height: 18vw;
  407. border-radius: 9vw 9vw 0 9vw;
  408. overflow: hidden;
  409. background: #fff;
  410. &::after {
  411. position: absolute;
  412. bottom: 0;
  413. right: 0;
  414. content: '';
  415. display: block;
  416. width: 3.6vw;
  417. height: 3.6vw;
  418. background: url(~assets/theme-images/ross/h5-icon-avatar-v.png)
  419. no-repeat center;
  420. background-size: 3.6vw;
  421. }
  422. }
  423. .navigation {
  424. display: flex;
  425. justify-content: center;
  426. align-items: center;
  427. width: 14.4vw;
  428. height: 6.4vw;
  429. border-radius: 0.4vw;
  430. font-size: 3.2vw;
  431. color: #f3920d;
  432. border: 1px solid #fff;
  433. background-color: #fff;
  434. &::after {
  435. content: '';
  436. display: block;
  437. width: 3.6vw;
  438. height: 3.6vw;
  439. margin-left: 0.4vw;
  440. @include themify($themes) {
  441. background: themed('h5-icon-navigation') no-repeat center;
  442. background-size: 3.6vw;
  443. }
  444. }
  445. }
  446. .distance {
  447. font-size: 3vw;
  448. color: #fff;
  449. }
  450. }
  451. .device-list {
  452. padding: 0 4vw;
  453. .title {
  454. position: relative;
  455. padding-left: 6.8vw;
  456. margin-top: 9.6vw;
  457. margin-bottom: 4vw;
  458. font-size: 4vw;
  459. font-weight: bold;
  460. color: #101010;
  461. &::before {
  462. content: '';
  463. display: block;
  464. width: 4.4vw;
  465. height: 4.4vw;
  466. background: url(~assets/theme-images/ross/h5-icon-device-list.png)
  467. no-repeat center;
  468. position: absolute;
  469. left: 0;
  470. top: 0;
  471. }
  472. }
  473. .device {
  474. padding: 4.4vw 3.2vw;
  475. background: #f3f5f6;
  476. margin-bottom: 3.2vw;
  477. .info {
  478. width: 74%;
  479. .name {
  480. font-size: 3.6vw;
  481. color: #282828;
  482. }
  483. .code {
  484. margin-top: 3.2vw;
  485. font-size: 3vw;
  486. color: #666;
  487. }
  488. }
  489. .detail {
  490. display: flex;
  491. justify-content: center;
  492. align-items: center;
  493. width: 15.8vw;
  494. height: 6.4vw;
  495. border-radius: 0.4vw;
  496. font-size: 3vw;
  497. color: #ffffff;
  498. @include themify($themes) {
  499. background: themed('color');
  500. }
  501. }
  502. }
  503. }
  504. }
  505. }
  506. </style>