detail.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  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 ref="mapNav" @click="navigation"></SimpleMapNav>
  63. </div>
  64. </template>
  65. <script>
  66. import clubDetailMixin from '@/mixins/clubDetail'
  67. export default {
  68. layout: 'app',
  69. mixins: [clubDetailMixin],
  70. }
  71. </script>
  72. <style scoped lang="scss">
  73. // pc 端
  74. @media screen and (min-width: 768px) {
  75. .page {
  76. position: relative;
  77. width: 1200px;
  78. height: 612px;
  79. margin-left: auto;
  80. margin-right: auto;
  81. margin-top: 80px;
  82. background-color: #fff;
  83. box-sizing: border-box;
  84. padding: 16px;
  85. padding-right: 0;
  86. }
  87. .page-title {
  88. position: absolute;
  89. font-size: 24px;
  90. color: #333;
  91. top: -50px;
  92. left: 0;
  93. }
  94. .page-top {
  95. .swiper {
  96. width: 580px;
  97. height: 580px;
  98. background: #f7f7f7;
  99. ::v-deep {
  100. img {
  101. width: 580px;
  102. height: 580px;
  103. }
  104. }
  105. }
  106. }
  107. .page-content {
  108. width: 580px;
  109. overflow-y: auto;
  110. .auth {
  111. width: 100%;
  112. min-height: 114px;
  113. @include themify($themes) {
  114. background: themed('color');
  115. }
  116. box-sizing: border-box;
  117. padding: 24px;
  118. .auth-icon {
  119. height: 28px;
  120. background: url(~assets/theme-images/ross/pc-icon-auth.png) no-repeat
  121. left center;
  122. background-size: auto 28px;
  123. }
  124. .auth-info {
  125. font-size: 0;
  126. margin-top: 10px;
  127. span {
  128. font-size: 20px;
  129. color: #fff;
  130. }
  131. }
  132. }
  133. .club-info {
  134. padding: 32px 24px;
  135. @include themify($themes) {
  136. background: themed('cover-color');
  137. }
  138. .info {
  139. width: 320px;
  140. .name {
  141. font-size: 24px;
  142. color: #101010;
  143. font-weight: bold;
  144. margin-bottom: 34px;
  145. }
  146. .mobile,
  147. .address {
  148. position: relative;
  149. padding-left: 24px;
  150. margin-top: 16px;
  151. line-height: 24px;
  152. font-size: 16px;
  153. color: #404040;
  154. &::after {
  155. content: '';
  156. display: block;
  157. width: 16px;
  158. height: 16px;
  159. position: absolute;
  160. left: 0;
  161. top: 4px;
  162. background-size: 16px;
  163. background-repeat: no-repeat;
  164. }
  165. }
  166. .mobile {
  167. cursor: pointer;
  168. &::after {
  169. @include themify($themes) {
  170. background-image: themed('pc-icon-mobile');
  171. }
  172. }
  173. }
  174. .address {
  175. &::after {
  176. @include themify($themes) {
  177. background-image: themed('h5-icon-address');
  178. }
  179. }
  180. }
  181. }
  182. .logo {
  183. position: relative;
  184. width: 114px;
  185. height: 114px;
  186. border-radius: 50% 50% 0 50%;
  187. overflow: hidden;
  188. &::after {
  189. position: absolute;
  190. bottom: 0;
  191. right: 0;
  192. content: '';
  193. display: block;
  194. width: 23px;
  195. height: 23px;
  196. background: url(~assets/theme-images/common/pc-icon-avatar-v.png)
  197. no-repeat center;
  198. background-size: 23px;
  199. }
  200. }
  201. .navigation {
  202. display: flex;
  203. justify-content: center;
  204. align-items: center;
  205. width: 72px;
  206. height: 32px;
  207. border-radius: 4px;
  208. font-size: 16px;
  209. @include themify($themes) {
  210. color: themed('color');
  211. border: 1px solid themed('color');
  212. background-color: themed('sub-color');
  213. }
  214. cursor: pointer;
  215. &::after {
  216. content: '';
  217. display: block;
  218. width: 16px;
  219. height: 16px;
  220. margin-left: 4px;
  221. @include themify($themes) {
  222. background: themed('pc-icon-navigation') no-repeat center;
  223. }
  224. background-size: 16px;
  225. }
  226. }
  227. .distance {
  228. font-size: 14px;
  229. color: #404040;
  230. }
  231. }
  232. .device-list {
  233. .title {
  234. padding: 16px;
  235. font-size: 20px;
  236. font-weight: bold;
  237. color: #404040;
  238. background-color: #f3f5f6;
  239. }
  240. .list {
  241. padding-right: 16px;
  242. }
  243. .device {
  244. padding: 16px 0;
  245. border-bottom: 1px solid #d8d8d8;
  246. .info {
  247. .name {
  248. font-size: 18px;
  249. color: #101010;
  250. }
  251. .code {
  252. margin-top: 16px;
  253. font-size: 14px;
  254. color: #666;
  255. }
  256. }
  257. .detail {
  258. display: flex;
  259. justify-content: center;
  260. align-items: center;
  261. width: 80px;
  262. height: 32px;
  263. border-radius: 4px;
  264. font-size: 14px;
  265. color: #ffffff;
  266. cursor: pointer;
  267. @include themify($themes) {
  268. background: themed('color');
  269. }
  270. }
  271. }
  272. }
  273. }
  274. }
  275. // 移动 端
  276. @media screen and (max-width: 768px) {
  277. .page-title {
  278. display: none;
  279. }
  280. .page-top {
  281. .swiper {
  282. height: 100vw;
  283. background: #f7f7f7;
  284. ::v-deep {
  285. img {
  286. height: 100vw;
  287. }
  288. }
  289. }
  290. }
  291. .page-content {
  292. .divider {
  293. height: 3.2vw;
  294. background-color: #f7f7f7;
  295. }
  296. .club-info {
  297. padding: 4vw;
  298. @include themify($themes) {
  299. background: themed('cover-color');
  300. }
  301. .info {
  302. width: 67vw;
  303. .name {
  304. font-size: 4.8vw;
  305. color: #101010;
  306. font-weight: bold;
  307. margin-bottom: 4vw;
  308. }
  309. .mobile,
  310. .address {
  311. position: relative;
  312. padding-left: 5vw;
  313. margin-top: 1.6vw;
  314. line-height: 5vw;
  315. font-size: 3.2vw;
  316. color: #404040;
  317. &::after {
  318. content: '';
  319. display: block;
  320. width: 4vw;
  321. height: 4vw;
  322. position: absolute;
  323. left: 0;
  324. top: 0.5vw;
  325. background-size: 4vw 4vw;
  326. background-repeat: no-repeat;
  327. }
  328. }
  329. .mobile {
  330. &::after {
  331. @include themify($themes) {
  332. background-image: themed('h5-icon-mobile');
  333. }
  334. }
  335. }
  336. .address {
  337. &::after {
  338. @include themify($themes) {
  339. background-image: themed('h5-icon-address');
  340. }
  341. }
  342. }
  343. }
  344. .logo {
  345. position: relative;
  346. width: 18vw;
  347. height: 18vw;
  348. border-radius: 9vw 9vw 0 9vw;
  349. overflow: hidden;
  350. &::after {
  351. position: absolute;
  352. bottom: 0;
  353. right: 0;
  354. content: '';
  355. display: block;
  356. width: 3.6vw;
  357. height: 3.6vw;
  358. background: url(~assets/theme-images/common/h5-icon-avatar-v.png)
  359. no-repeat center;
  360. background-size: 3.6vw;
  361. }
  362. }
  363. .navigation {
  364. display: flex;
  365. justify-content: center;
  366. align-items: center;
  367. width: 14.4vw;
  368. height: 6.4vw;
  369. border-radius: 0.4vw;
  370. font-size: 3.2vw;
  371. @include themify($themes) {
  372. color: themed('color');
  373. border: 1px solid themed('color');
  374. background-color: themed('sub-color');
  375. }
  376. &::after {
  377. content: '';
  378. display: block;
  379. width: 3.6vw;
  380. height: 3.6vw;
  381. margin-left: 0.4vw;
  382. @include themify($themes) {
  383. background: themed('h5-icon-navigation') no-repeat center;
  384. background-size: 3.6vw;
  385. }
  386. }
  387. }
  388. .distance {
  389. font-size: 3vw;
  390. color: #404040;
  391. }
  392. }
  393. .device-list {
  394. .title {
  395. padding: 4vw;
  396. padding-bottom: 0;
  397. font-size: 4vw;
  398. font-weight: bold;
  399. color: #101010;
  400. }
  401. .device {
  402. padding: 4vw 0;
  403. margin: 0 4vw;
  404. border-bottom: 0.4vw solid #d8d8d8;
  405. .info {
  406. .name {
  407. font-size: 3.6vw;
  408. color: #101010;
  409. }
  410. .code {
  411. margin-top: 3.2vw;
  412. font-size: 3vw;
  413. color: #666;
  414. }
  415. }
  416. .detail {
  417. display: flex;
  418. justify-content: center;
  419. align-items: center;
  420. width: 15.8vw;
  421. height: 6.4vw;
  422. border-radius: 0.4vw;
  423. font-size: 3vw;
  424. color: #ffffff;
  425. @include themify($themes) {
  426. background: themed('color');
  427. }
  428. }
  429. }
  430. }
  431. }
  432. }
  433. </style>