detail.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  1. <template>
  2. <div class="device-detail" v-if="productInfo">
  3. <div class="detail-title">设备认证</div>
  4. <div class="page-top">
  5. <div class="swiper-body">
  6. <img :src="productInfo.pcImage" class="device-image" />
  7. <div class="auth-seal"></div>
  8. <img class="auth-card" :src="authCardImage" @click="onShowAuthCard" v-if="!showAuthCard" />
  9. <img class="auth-logo" :src="brandLogoImage" />
  10. </div>
  11. <div class="device-info">
  12. <div class="logo">
  13. <div class="logo-swiper" v-if="clubLogo.length > 1">
  14. <SimpleSwiper :imageList="clubLogo" :pagination="false"></SimpleSwiper>
  15. </div>
  16. <img :src="clubLogo[0]" alt="logo" v-else />
  17. </div>
  18. <div class="section">
  19. <div class="name" v-text="productInfo.productName"></div>
  20. <div class="sncode mobile">
  21. SN码:<span>{{ productInfo.snCode | snCodeRender }}</span>
  22. </div>
  23. <div class="row">
  24. <!-- <span>产地:{{ productInfo.producePlace }}</span> -->
  25. <span>品牌:{{ productInfo.brandName }}</span
  26. ><i></i><span>产地:{{ productInfo.producePlace }}</span>
  27. <!-- <span>品牌:RÖS'S</span><i></i><span>产地:西班牙巴塞罗那</span> -->
  28. </div>
  29. <div class="sncode pc">
  30. SN码:<span>{{ productInfo.snCode | snCodeRender }}</span>
  31. </div>
  32. <div class="maker">制造商:{{ productInfo.manufacturer }}</div>
  33. <div class="supplier">供应商:{{ productInfo.shopName }}</div>
  34. <!-- <div class="supplier">供应商:ACEBELLE生物科技(深圳)有限公司</div> -->
  35. </div>
  36. <div class="auth" v-if="productInfo">
  37. <div class="auth-icon"></div>
  38. <template v-for="item in productInfo.clubList">
  39. <div class="auth-info" :key="item.authId">
  40. <span>该设备由</span>
  41. <span class="font-bold">ROS'S</span>
  42. <span>官方授权</span>
  43. <span>{{ item.authParty }}</span>
  44. </div>
  45. </template>
  46. </div>
  47. </div>
  48. </div>
  49. <div class="page-content">
  50. <div class="device-params">
  51. <div class="title">相关参数</div>
  52. <div class="line"></div>
  53. <SimpleParamList :paramList="paramListRender" />
  54. </div>
  55. </div>
  56. <!-- 授权牌弹窗 -->
  57. <div class="mask" v-if="showAuthCard" @click="onHideAuthCard"></div>
  58. <transition enter-active-class="animate__zoomIn" leave-active-class="animate__zoomOut">
  59. <div class="auth-card-content animate__animated" v-if="showAuthCard">
  60. <div class="auth-card-popup">
  61. <span class="el-icon-circle-close" @click="onHideAuthCard"></span>
  62. <img :src="authCardImage" />
  63. </div>
  64. </div>
  65. </transition>
  66. </div>
  67. </template>
  68. <script>
  69. import deviceDetailMixin from '@/mixins/deviceDetail'
  70. export default {
  71. layout: 'app-ross',
  72. mixins: [deviceDetailMixin],
  73. }
  74. </script>
  75. <style lang="scss" scoped>
  76. ::v-deep {
  77. .swiper-pagination-bullet {
  78. background: #f3920d !important;
  79. }
  80. .simple-swiper {
  81. .swiper-pagination-bullet-active {
  82. background: #f3920d;
  83. }
  84. }
  85. }
  86. .mask {
  87. width: 100vw;
  88. height: 100vh;
  89. position: fixed;
  90. left: 0;
  91. top: 0;
  92. z-index: 8;
  93. background: rgba(0, 0, 0, 0.5);
  94. }
  95. // pc 端
  96. @media screen and (min-width: 768px) {
  97. .device-detail {
  98. margin-bottom: 48px;
  99. .auth-card-content {
  100. width: 100vw;
  101. height: 100vh;
  102. position: fixed;
  103. left: 0;
  104. top: 0;
  105. display: flex;
  106. justify-content: center;
  107. align-items: center;
  108. z-index: 9;
  109. .auth-card-popup {
  110. position: relative;
  111. width: 622px;
  112. img {
  113. display: block;
  114. width: 100%;
  115. height: auto;
  116. }
  117. .el-icon-circle-close {
  118. position: absolute;
  119. top: -50px;
  120. right: 0;
  121. font-size: 32px;
  122. color: #fff;
  123. cursor: pointer;
  124. }
  125. }
  126. }
  127. .detail-title {
  128. font-size: 24px;
  129. color: #282828;
  130. margin: 32px auto 24px;
  131. width: 1200px;
  132. }
  133. .page-top,
  134. .page-content {
  135. width: 1200px;
  136. margin: 0 auto;
  137. background: #fff;
  138. }
  139. .page-top {
  140. display: flex;
  141. justify-content: space-between;
  142. align-items: flex-start;
  143. padding: 24px;
  144. padding-right: 40px;
  145. .swiper-body {
  146. position: relative;
  147. width: 540px;
  148. height: 540px;
  149. background: #f7f7f7;
  150. .device-image {
  151. width: 100%;
  152. height: 100%;
  153. }
  154. .auth-seal {
  155. position: absolute;
  156. width: 70px;
  157. height: 70px;
  158. background: url(~assets/theme-images/ross/pc-icon-auth-seal.png) no-repeat center;
  159. background-size: 70px;
  160. right: 24px;
  161. bottom: 24px;
  162. z-index: 2;
  163. }
  164. .auth-card {
  165. position: absolute;
  166. width: auto;
  167. height: 110px;
  168. display: block;
  169. bottom: 24px;
  170. left: 24px;
  171. z-index: 2;
  172. cursor: pointer;
  173. }
  174. .auth-logo {
  175. position: absolute;
  176. max-width: 120px;
  177. max-height: 120px;
  178. top: 24px;
  179. left: 24px;
  180. z-index: 2;
  181. }
  182. }
  183. .device-info {
  184. width: 572px;
  185. position: relative;
  186. .section {
  187. width: 440px;
  188. word-break: break-all;
  189. }
  190. .logo {
  191. width: 114px;
  192. height: 114px;
  193. border-radius: 50%;
  194. // background: #d8d8d8;
  195. border: 1px solid #d8d8d8;
  196. // box-sizing: border-box;
  197. position: absolute;
  198. right: 0;
  199. top: 0;
  200. .logo-swiper {
  201. width: 112px;
  202. height: 112px;
  203. overflow: hidden;
  204. border-radius: 50%;
  205. }
  206. ::v-deep {
  207. img {
  208. width: 112px;
  209. height: 112px;
  210. border-radius: 50%;
  211. }
  212. }
  213. &::after {
  214. content: '';
  215. position: absolute;
  216. z-index: 1;
  217. right: 6px;
  218. bottom: 0;
  219. display: block;
  220. width: 24px;
  221. height: 24px;
  222. background: url(~assets/theme-images/ross/pc-icon-auth-ren.png) no-repeat center;
  223. background-size: 23px;
  224. }
  225. img {
  226. display: block;
  227. width: 100%;
  228. height: 100%;
  229. // background: pink;
  230. border-radius: 50%;
  231. }
  232. }
  233. .name {
  234. font-size: 24px;
  235. color: #282828;
  236. line-height: 1.6;
  237. margin-bottom: 24px;
  238. font-weight: bold;
  239. }
  240. .row,
  241. .sncode,
  242. .maker {
  243. margin-bottom: 16px;
  244. }
  245. .row {
  246. line-height: 24px;
  247. i {
  248. position: relative;
  249. margin: 0 16px;
  250. &::after {
  251. content: '';
  252. display: block;
  253. width: 1px;
  254. height: 16px;
  255. background: #999999;
  256. position: absolute;
  257. top: 0;
  258. left: 0;
  259. }
  260. }
  261. span {
  262. font-size: 18px;
  263. color: #999999;
  264. }
  265. }
  266. .sncode.mobile {
  267. display: none;
  268. }
  269. .sncode.pc {
  270. font-size: 18px;
  271. color: #282828;
  272. }
  273. .supplier,
  274. .maker {
  275. font-size: 20px;
  276. color: #282828;
  277. }
  278. .auth {
  279. width: 100%;
  280. min-height: 114px;
  281. background: #f3920d;
  282. margin-top: 56px;
  283. box-sizing: border-box;
  284. padding: 24px;
  285. .auth-icon {
  286. height: 28px;
  287. background: url(~assets/theme-images/ross/pc-icon-auth2.png) no-repeat left center;
  288. background-size: auto 28px;
  289. margin-bottom: 10px;
  290. }
  291. .auth-info {
  292. font-size: 0;
  293. span {
  294. font-size: 20px;
  295. color: #fff;
  296. }
  297. }
  298. }
  299. }
  300. }
  301. .page-content {
  302. margin-top: 16px;
  303. box-sizing: border-box;
  304. padding: 24px;
  305. .device-params {
  306. .title {
  307. font-size: 28px;
  308. color: #282828;
  309. font-weight: bold;
  310. }
  311. .line {
  312. height: 1px;
  313. background: #ececec;
  314. position: relative;
  315. margin-top: 10px;
  316. margin-bottom: 20px;
  317. &::after {
  318. content: '';
  319. position: absolute;
  320. width: 73px;
  321. height: 2px;
  322. background: #f3920d;
  323. left: 0;
  324. bottom: 0;
  325. }
  326. }
  327. }
  328. }
  329. }
  330. }
  331. // 移动端
  332. @media screen and (max-width: 768px) {
  333. .device-detail {
  334. .detail-title {
  335. display: none;
  336. }
  337. .auth-card-content {
  338. width: 100vw;
  339. height: 100vh;
  340. position: fixed;
  341. left: 0;
  342. top: 0;
  343. display: flex;
  344. justify-content: center;
  345. align-items: center;
  346. z-index: 9;
  347. .auth-card-popup {
  348. position: relative;
  349. width: 86vw;
  350. img {
  351. display: block;
  352. width: 100%;
  353. height: auto;
  354. }
  355. .el-icon-circle-close {
  356. position: absolute;
  357. top: -8vw;
  358. right: 0;
  359. font-size: 7vw;
  360. color: #fff;
  361. cursor: pointer;
  362. }
  363. }
  364. }
  365. .page-top,
  366. .page-content {
  367. margin: 0 auto;
  368. background: #fff;
  369. }
  370. .page-top {
  371. .swiper-body {
  372. position: relative;
  373. width: 100vw;
  374. height: 100vw;
  375. background: #f7f7f7;
  376. .device-image {
  377. width: 100%;
  378. height: 100%;
  379. }
  380. ::v-deep {
  381. img {
  382. width: 100vw;
  383. height: 100vw;
  384. }
  385. }
  386. .auth-seal {
  387. position: absolute;
  388. width: 13.8vw;
  389. height: 13.8vw;
  390. background: url(~assets/theme-images/ross/h5-icon-auth-seal.png) no-repeat center;
  391. background-size: 13.8vw;
  392. right: 4vw;
  393. bottom: 4vw;
  394. z-index: 2;
  395. }
  396. .auth-card {
  397. position: absolute;
  398. width: auto;
  399. height: 20.6vw;
  400. display: block;
  401. bottom: 4vw;
  402. left: 4vw;
  403. z-index: 2;
  404. }
  405. .auth-logo {
  406. position: absolute;
  407. max-width: 18vw;
  408. max-height: 18vw;
  409. top: 4vw;
  410. left: 4vw;
  411. z-index: 2;
  412. }
  413. }
  414. .device-info {
  415. position: relative;
  416. .section {
  417. word-break: break-all;
  418. padding: 4vw 4vw 0;
  419. }
  420. .logo {
  421. width: 18vw;
  422. height: 18vw;
  423. border-radius: 50%;
  424. // background: #d8d8d8;
  425. border: 0.1vw solid #d8d8d8;
  426. box-sizing: border-box;
  427. position: absolute;
  428. right: 4vw;
  429. top: 5.8vw;
  430. .logo-swiper {
  431. width: 18vw;
  432. height: 18vw;
  433. overflow: hidden;
  434. border-radius: 50%;
  435. }
  436. ::v-deep {
  437. img {
  438. width: 18vw;
  439. height: 18vw;
  440. border-radius: 50%;
  441. }
  442. }
  443. &::after {
  444. content: '';
  445. position: absolute;
  446. z-index: 1;
  447. right: 0.7vw;
  448. bottom: 0;
  449. display: block;
  450. width: 3.6vw;
  451. height: 3.6vw;
  452. background: url(~assets/theme-images/ross/h5-icon-auth-ren.png) no-repeat center;
  453. background-size: 3.6vw;
  454. }
  455. img {
  456. display: block;
  457. width: 100%;
  458. height: 100%;
  459. // background: pink;
  460. border-radius: 50%;
  461. }
  462. }
  463. .name {
  464. font-size: 5.4vw;
  465. color: #282828;
  466. line-height: 7.4vw;
  467. margin-bottom: 2.4vw;
  468. font-weight: bold;
  469. }
  470. .sncode.pc {
  471. display: none;
  472. }
  473. .sncode.mobile {
  474. margin: 2.4vw 0 5.6vw;
  475. color: #282828;
  476. font-size: 4vw;
  477. }
  478. .row {
  479. line-height: 4.7vw;
  480. i {
  481. position: relative;
  482. margin: 0 4vw;
  483. &::after {
  484. content: '';
  485. display: block;
  486. width: 0.2vw;
  487. height: 3vw;
  488. background: #282828;
  489. position: absolute;
  490. top: 1vw;
  491. left: 0;
  492. }
  493. }
  494. span {
  495. font-size: 3.6vw;
  496. color: #282828;
  497. }
  498. }
  499. .row,
  500. .maker {
  501. margin-bottom: 1.2vw;
  502. }
  503. .supplier,
  504. .maker {
  505. font-size: 3.6vw;
  506. color: #282828;
  507. }
  508. .auth {
  509. // width: 100%;
  510. margin: 0 4vw;
  511. min-height: 20vw;
  512. background: #f3920d;
  513. margin-top: 4vw;
  514. box-sizing: border-box;
  515. padding: 5.2vw 4vw;
  516. border-radius: 1.2vw;
  517. .auth-icon {
  518. height: 4.9vw;
  519. background: url(~assets/theme-images/ross/h5-icon-auth2.png) no-repeat left center;
  520. background-size: auto 4.9vw;
  521. margin-bottom: 1vw;
  522. }
  523. .auth-info {
  524. font-size: 0;
  525. span {
  526. font-size: 3.6vw;
  527. line-height: 6.4vw;
  528. color: #fff;
  529. font-weight: bold;
  530. }
  531. }
  532. }
  533. }
  534. }
  535. .page-content {
  536. .device-params {
  537. padding: 8vw 4vw;
  538. box-sizing: border-box;
  539. .title {
  540. font-size: 4.6vw;
  541. color: #282828;
  542. font-weight: bold;
  543. }
  544. .line {
  545. // height: 0.2vw;
  546. // background: #ececec;
  547. position: relative;
  548. margin-top: 4.7vw;
  549. margin-bottom: 1.2vw;
  550. }
  551. }
  552. }
  553. }
  554. }
  555. </style>