123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615 |
- <template>
- <div class="device-detail">
- <template v-if="productInfo">
- <div class="detail-title">设备认证</div>
- <div class="page-top">
- <div class="swiper-body">
- <img :src="productInfo.pcImage" class="device-image" />
- <div class="auth-seal"></div>
- <img class="auth-card" :src="authCardImage" @click="onShowAuthCard" v-if="!showAuthCard" />
- <img class="auth-logo" :src="brandLogoImage" />
- </div>
- <div class="device-info">
- <div class="logo">
- <div class="logo-swiper" v-if="clubLogo.length > 1">
- <SimpleSwiper :imageList="clubLogo" :pagination="false"></SimpleSwiper>
- </div>
- <img :src="clubLogo[0]" alt="logo" v-else />
- </div>
- <div class="section">
- <div class="name" v-text="productInfo.productName"></div>
- <div class="sncode mobile">
- SN码:<span>{{ productInfo.snCode | snCodeRender }}</span>
- </div>
- <div class="row">
- <!-- <span>产地:{{ productInfo.producePlace }}</span> -->
- <span>品牌:{{ productInfo.brandName }}</span
- ><i></i><span>产地:{{ productInfo.producePlace }}</span>
- <!-- <span>品牌:RÖS'S</span><i></i><span>产地:西班牙巴塞罗那</span> -->
- </div>
- <div class="sncode pc">
- SN码:<span>{{ productInfo.snCode | snCodeRender }}</span>
- </div>
- <div class="maker">制造商:{{ productInfo.manufacturer }}</div>
- <div class="supplier">供应商:{{ productInfo.shopName }}</div>
- <!-- <div class="supplier">供应商:ACEBELLE生物科技(深圳)有限公司</div> -->
- </div>
- <div class="auth" v-if="productInfo">
- <div class="auth-icon"></div>
- <template v-for="item in productInfo.clubList">
- <div class="auth-info" :key="item.authId">
- <span>该设备由</span>
- <span class="font-bold">{{ productInfo.shopName }}</span>
- <span>官方授权</span>
- <span>{{ item.authParty }}</span>
- </div>
- </template>
- </div>
- </div>
- </div>
- <div class="page-content">
- <div class="device-params">
- <div class="title">相关参数</div>
- <div class="line"></div>
- <SimpleParamList :paramList="paramListRender" />
- </div>
- </div>
- </template>
- <!-- 设备为空 -->
- <SimpleEmpty
- v-else
- name="icon-empty-device.png"
- description="暂无关联设备信息~"
- />
- <!-- 授权牌弹窗 -->
- <div class="mask" v-if="showAuthCard" @click="onHideAuthCard"></div>
- <transition enter-active-class="animate__zoomIn" leave-active-class="animate__zoomOut">
- <div class="auth-card-content animate__animated" v-if="showAuthCard">
- <div class="auth-card-popup">
- <span class="el-icon-circle-close" @click="onHideAuthCard"></span>
- <img :src="authCardImage" />
- </div>
- </div>
- </transition>
- </div>
- </template>
- <script>
- import deviceDetailMixin from '@/mixins/deviceDetail'
- export default {
- layout: 'app-asbl',
- mixins: [deviceDetailMixin],
- }
- </script>
- <style lang="scss" scoped>
- ::v-deep {
- .swiper-pagination-bullet {
- background: #36bbce !important;
- }
- .simple-swiper {
- .swiper-pagination-bullet-active {
- background: #36bbce;
- }
- }
- }
- .mask {
- width: 100vw;
- height: 100vh;
- position: fixed;
- left: 0;
- top: 0;
- z-index: 8;
- background: rgba(0, 0, 0, 0.5);
- }
- // pc 端
- @media screen and (min-width: 768px) {
- .device-detail {
- margin-bottom: 48px;
- .auth-card-content {
- width: 100vw;
- height: 100vh;
- position: fixed;
- left: 0;
- top: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- z-index: 9;
- .auth-card-popup {
- position: relative;
- width: 622px;
- img {
- display: block;
- width: 100%;
- height: auto;
- }
- .el-icon-circle-close {
- position: absolute;
- top: -50px;
- right: 0;
- font-size: 32px;
- color: #fff;
- cursor: pointer;
- }
- }
- }
- .detail-title {
- font-size: 24px;
- color: #282828;
- margin: 32px auto 24px;
- width: 1200px;
- }
- .page-top,
- .page-content {
- width: 1200px;
- margin: 0 auto;
- background: #fff;
- }
- .page-top {
- display: flex;
- justify-content: space-between;
- align-items: flex-start;
- padding: 24px;
- padding-right: 40px;
- .swiper-body {
- position: relative;
- width: 540px;
- height: 540px;
- background: #f7f7f7;
- .device-image {
- width: 100%;
- height: 100%;
- }
- .auth-seal {
- position: absolute;
- width: 70px;
- height: 70px;
- background: url(~assets/theme-images/asbl/pc-icon-auth-seal-t.png) no-repeat center;
- background-size: 70px;
- right: 24px;
- bottom: 24px;
- z-index: 2;
- }
- .auth-card {
- position: absolute;
- width: auto;
- height: 110px;
- display: block;
- bottom: 24px;
- left: 24px;
- z-index: 2;
- cursor: pointer;
- }
- .auth-logo {
- position: absolute;
- max-width: 120px;
- max-height: 120px;
- top: 24px;
- left: 24px;
- z-index: 2;
- }
- }
- .device-info {
- width: 572px;
- position: relative;
- .section {
- width: 440px;
- word-break: break-all;
- }
- .logo {
- width: 114px;
- height: 114px;
- border-radius: 50%;
- // background: #d8d8d8;
- border: 1px solid #d8d8d8;
- // box-sizing: border-box;
- position: absolute;
- right: 0;
- top: 0;
- .logo-swiper {
- width: 112px;
- height: 112px;
- overflow: hidden;
- border-radius: 50%;
- }
- ::v-deep {
- img {
- width: 112px;
- height: 112px;
- border-radius: 50%;
- }
- }
- &::after {
- content: '';
- position: absolute;
- z-index: 1;
- right: 6px;
- bottom: 0;
- display: block;
- width: 24px;
- height: 24px;
- background: url(~assets/theme-images/asbl/pc-icon-auth-ren.png) no-repeat center;
- background-size: 23px;
- }
- img {
- display: block;
- width: 100%;
- height: 100%;
- // background: pink;
- border-radius: 50%;
- }
- }
- .name {
- font-size: 24px;
- color: #282828;
- line-height: 1.6;
- margin-bottom: 24px;
- font-weight: bold;
- }
- .row,
- .sncode,
- .maker {
- margin-bottom: 16px;
- }
- .row {
- line-height: 24px;
- i {
- position: relative;
- margin: 0 16px;
- &::after {
- content: '';
- display: block;
- width: 1px;
- height: 16px;
- background: #999999;
- position: absolute;
- top: 0;
- left: 0;
- }
- }
- span {
- font-size: 18px;
- color: #999999;
- }
- }
- .sncode.mobile {
- display: none;
- }
- .sncode.pc {
- font-size: 18px;
- color: #282828;
- }
- .supplier,
- .maker {
- font-size: 20px;
- color: #282828;
- }
- .auth {
- width: 100%;
- min-height: 114px;
- background: #36bbce;
- margin-top: 56px;
- box-sizing: border-box;
- padding: 24px;
- .auth-icon {
- height: 28px;
- background: url(~assets/theme-images/asbl/pc-icon-auth2.png) no-repeat left center;
- background-size: auto 28px;
- margin-bottom: 10px;
- }
- .auth-info {
- font-size: 0;
- span {
- font-size: 20px;
- color: #fff;
- }
- }
- }
- }
- }
- .page-content {
- margin-top: 16px;
- box-sizing: border-box;
- padding: 24px;
- .device-params {
- .title {
- font-size: 28px;
- color: #282828;
- font-weight: bold;
- }
- .line {
- height: 1px;
- background: #ececec;
- position: relative;
- margin-top: 10px;
- margin-bottom: 20px;
- &::after {
- content: '';
- position: absolute;
- width: 73px;
- height: 2px;
- background: #36bbce;
- left: 0;
- bottom: 0;
- }
- }
- }
- }
- }
- }
- // 移动端
- @media screen and (max-width: 768px) {
- .device-detail {
- .detail-title {
- display: none;
- }
- .auth-card-content {
- width: 100vw;
- height: 100vh;
- position: fixed;
- left: 0;
- top: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- z-index: 9;
- .auth-card-popup {
- position: relative;
- width: 86vw;
- img {
- display: block;
- width: 100%;
- height: auto;
- }
- .el-icon-circle-close {
- position: absolute;
- top: -8vw;
- right: 0;
- font-size: 7vw;
- color: #fff;
- cursor: pointer;
- }
- }
- }
- .page-top,
- .page-content {
- margin: 0 auto;
- background: #fff;
- }
- .page-top {
- .swiper-body {
- position: relative;
- width: 100vw;
- height: 100vw;
- background: #f7f7f7;
- .device-image {
- width: 100%;
- height: 100%;
- }
- ::v-deep {
- img {
- width: 100vw;
- height: 100vw;
- }
- }
- .auth-seal {
- position: absolute;
- width: 13.8vw;
- height: 13.8vw;
- background: url(~assets/theme-images/asbl/h5-icon-auth-seal-t.png) no-repeat center;
- background-size: 13.8vw;
- right: 4vw;
- bottom: 4vw;
- z-index: 2;
- }
- .auth-card {
- position: absolute;
- width: auto;
- height: 20.6vw;
- display: block;
- bottom: 4vw;
- left: 4vw;
- z-index: 2;
- }
- .auth-logo {
- position: absolute;
- max-width: 18vw;
- max-height: 18vw;
- top: 4vw;
- left: 4vw;
- z-index: 2;
- }
- }
- .device-info {
- position: relative;
- .section {
- word-break: break-all;
- padding: 4vw 4vw 0;
- }
- .logo {
- width: 18vw;
- height: 18vw;
- border-radius: 50%;
- // background: #d8d8d8;
- border: 0.1vw solid #d8d8d8;
- box-sizing: border-box;
- position: absolute;
- right: 4vw;
- top: 5.8vw;
- .logo-swiper {
- width: 18vw;
- height: 18vw;
- overflow: hidden;
- border-radius: 50%;
- }
- ::v-deep {
- img {
- width: 18vw;
- height: 18vw;
- border-radius: 50%;
- }
- }
- &::after {
- content: '';
- position: absolute;
- z-index: 1;
- right: 0.7vw;
- bottom: 0;
- display: block;
- width: 3.6vw;
- height: 3.6vw;
- background: url(~assets/theme-images/asbl/h5-icon-auth-ren.png) no-repeat center;
- background-size: 3.6vw;
- }
- img {
- display: block;
- width: 100%;
- height: 100%;
- // background: pink;
- border-radius: 50%;
- }
- }
- .name {
- font-size: 5.4vw;
- color: #282828;
- line-height: 7.4vw;
- margin-bottom: 2.4vw;
- font-weight: bold;
- }
- .sncode.pc {
- display: none;
- }
- .sncode.mobile {
- margin: 2.4vw 0 5.6vw;
- color: #282828;
- font-size: 4vw;
- }
- .row {
- line-height: 4.7vw;
- i {
- position: relative;
- margin: 0 4vw;
- &::after {
- content: '';
- display: block;
- width: 0.2vw;
- height: 3vw;
- background: #282828;
- position: absolute;
- top: 1vw;
- left: 0;
- }
- }
- span {
- font-size: 3.6vw;
- color: #282828;
- }
- }
- .row,
- .maker {
- margin-bottom: 1.2vw;
- }
- .supplier,
- .maker {
- font-size: 3.6vw;
- color: #282828;
- }
- .auth {
- // width: 100%;
- margin: 0 4vw;
- min-height: 20vw;
- background: #36bbce;
- margin-top: 4vw;
- box-sizing: border-box;
- padding: 5.2vw 4vw;
- border-radius: 1.2vw;
- .auth-icon {
- height: 4.9vw;
- background: url(~assets/theme-images/asbl/h5-icon-auth2.png) no-repeat left center;
- background-size: auto 4.9vw;
- margin-bottom: 1vw;
- }
- .auth-info {
- font-size: 0;
- span {
- font-size: 3.6vw;
- line-height: 6.4vw;
- color: #fff;
- font-weight: bold;
- }
- }
- }
- }
- }
- .page-content {
- .device-params {
- padding: 8vw 4vw;
- box-sizing: border-box;
- .title {
- font-size: 4.6vw;
- color: #282828;
- font-weight: bold;
- }
- .line {
- // height: 0.2vw;
- // background: #ececec;
- position: relative;
- margin-top: 4.7vw;
- margin-bottom: 1.2vw;
- }
- }
- }
- }
- }
- </style>
|