detail.vue 11 KB

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