|
@@ -1,99 +1,145 @@
|
|
|
<template>
|
|
|
<div class="bg">
|
|
|
<div class="container" v-if="placeType === 2 && role == 5">
|
|
|
- <div class="app-container">
|
|
|
- <div class="title">{{ qrcodeTitle }}-微信</div>
|
|
|
- <div class="flex-center">
|
|
|
- <img
|
|
|
- class="qrcode"
|
|
|
- src="../../assets/buildingCode.png"
|
|
|
- alt="加载失败"
|
|
|
- />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="app-container">
|
|
|
- <div class="title">{{ qrcodeTitle }}-支付宝</div>
|
|
|
- <div class="flex-center">
|
|
|
- <img
|
|
|
- class="qrcode"
|
|
|
- src="../../assets/zfbBuildingCode.jpg"
|
|
|
- alt="加载失败"
|
|
|
- />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <el-row :gutter="210">
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="app-container">
|
|
|
+ <div class="title">{{ qrcodeTitle }}-微信</div>
|
|
|
+ <div class="flex-center">
|
|
|
+ <el-image
|
|
|
+ class="qrcode"
|
|
|
+ src="../../assets/buildingCode.png"
|
|
|
+ alt="加载失败"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="app-container">
|
|
|
+ <div class="title">{{ qrcodeTitle }}-支付宝</div>
|
|
|
+ <div class="flex-center">
|
|
|
+ <el-image
|
|
|
+ class="qrcode"
|
|
|
+ src="../../assets/zfbBuildingCode.jpg"
|
|
|
+ alt="加载失败"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</div>
|
|
|
|
|
|
<!-- 普通场景 -->
|
|
|
<div class="container" v-if="genericCode || regularCode || zfbGenericCode || zfbRegularCode">
|
|
|
- <div class="app-container" v-if="genericCode">
|
|
|
- <div class="title">{{ qrcodeTitle }} - 微信通用码</div>
|
|
|
- <div class="flex-center">
|
|
|
- <img class="qrcode" :src="genericCode" alt="加载失败" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="app-container" v-if="regularCode">
|
|
|
- <div class="title">{{ qrcodeTitle }} - 微信员工码</div>
|
|
|
- <div class="flex-center">
|
|
|
- <img class="qrcode" :src="regularCode" alt="加载失败" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="app-container" v-if="zfbGenericCode">
|
|
|
- <div class="title">{{ qrcodeTitle }} - 支付宝通用码</div>
|
|
|
- <div class="flex-center">
|
|
|
- <img class="qrcode" :src="zfbGenericCode" alt="加载失败"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="app-container" v-if="zfbRegularCode">
|
|
|
- <div class="title">{{ qrcodeTitle }} - 支付宝员工码</div>
|
|
|
- <div class="flex-center">
|
|
|
- <img class="qrcode" :src="zfbRegularCode" alt="加载失败"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <el-row :gutter="210">
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="app-container" v-if="genericCode">
|
|
|
+ <div class="title">{{ qrcodeTitle }} - 微信通用码</div>
|
|
|
+ <div class="flex-center">
|
|
|
+ <el-image :src="genericCode" alt="加载失败" class="qrcode" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="app-container" v-if="regularCode">
|
|
|
+ <div class="title">{{ qrcodeTitle }} - 微信员工码</div>
|
|
|
+ <div class="flex-center">
|
|
|
+ <el-image :src="regularCode" class="qrcode" alt="加载失败" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="app-container" v-if="zfbFkjCode">
|
|
|
+ <div class="title">{{ qrcodeTitle }} - 访客机开门二维码</div>
|
|
|
+ <div class="flex-center">
|
|
|
+ <el-image :src="zfbFkjCode" class="qrcode" alt="加载失败" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="app-container" v-if="zfbGenericCode">
|
|
|
+ <div class="title">{{ qrcodeTitle }} - 支付宝通用码</div>
|
|
|
+ <div class="flex-center">
|
|
|
+ <el-image :src="zfbGenericCode" class="qrcode" alt="加载失败" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="app-container" v-if="zfbRegularCode">
|
|
|
+ <div class="title">{{ qrcodeTitle }} - 支付宝员工码</div>
|
|
|
+ <div class="flex-center">
|
|
|
+ <el-image :src="zfbRegularCode" class="qrcode" alt="加载失败" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</div>
|
|
|
<!-- 预约场景 -->
|
|
|
<div class="container" v-if="reservationCode">
|
|
|
- <div class="app-container">
|
|
|
- <div class="title">{{ qrcodeTitle }} - 内宾码</div>
|
|
|
- <div class="flex-center">
|
|
|
- <img class="qrcode" :src="reservationCode" alt="加载失败" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="app-container">
|
|
|
- <div class="title">{{ qrcodeTitlePinYin }} - Foreign guests code</div>
|
|
|
- <div class="flex-center">
|
|
|
- <img class="qrcode" :src="reservationEnCode" alt="加载失败" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <el-row :gutter="210">
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="app-container">
|
|
|
+ <div class="title">{{ qrcodeTitle }} - 内宾码</div>
|
|
|
+ <div class="flex-center">
|
|
|
+ <el-image class="qrcode" :src="reservationCode" alt="加载失败" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="app-container">
|
|
|
+ <div class="title">{{ qrcodeTitlePinYin }} - Foreign guests code</div>
|
|
|
+ <div class="flex-center">
|
|
|
+ <el-image class="qrcode" :src="reservationEnCode" alt="加载失败" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</div>
|
|
|
<!-- 楼宇场景 -->
|
|
|
<div class="container" v-if="buildingCode || buildingRegularCode">
|
|
|
- <div class="app-container" v-if="buildingCode">
|
|
|
- <div class="title">{{ qrcodeTitle }} - 微信通用码</div>
|
|
|
- <div class="flex-center">
|
|
|
- <img class="qrcode" :src="buildingCode" alt="加载失败" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="app-container" v-if="ZFBbuildingCode">
|
|
|
- <div class="title">{{ qrcodeTitle }} - 支付宝通用码</div>
|
|
|
- <div class="flex-center">
|
|
|
- <img class="qrcode" :src="ZFBbuildingCode" alt="加载失败" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="app-container" v-if="buildingRegularCode">
|
|
|
- <div class="title">{{ qrcodeTitle }} - 微信员工码</div>
|
|
|
- <div class="flex-center">
|
|
|
- <img class="qrcode" :src="buildingRegularCode" alt="加载失败" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="app-container" v-if="ZFBbuildingRegularCode">
|
|
|
- <div class="title">{{ qrcodeTitle }} - 支付宝员工码</div>
|
|
|
- <div class="flex-center">
|
|
|
- <img class="qrcode" :src="ZFBbuildingRegularCode" alt="加载失败" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <el-row :gutter="210">
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="app-container" v-if="buildingCode">
|
|
|
+ <div class="title">{{ qrcodeTitle }} - 微信通用码</div>
|
|
|
+ <div class="flex-center">
|
|
|
+ <el-image class="qrcode" :src="buildingCode" alt="加载失败" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="app-container" v-if="ZFBbuildingCode">
|
|
|
+ <div class="title">{{ qrcodeTitle }} - 支付宝通用码</div>
|
|
|
+ <div class="flex-center">
|
|
|
+ <el-image class="qrcode" :src="ZFBbuildingCode" alt="加载失败" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="app-container" v-if="zfbFkjCode">
|
|
|
+ <div class="title">{{ qrcodeTitle }} - 访客机开门二维码</div>
|
|
|
+ <div class="flex-center">
|
|
|
+ <el-image :src="zfbFkjCode" class="qrcode" alt="加载失败" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="app-container" v-if="buildingRegularCode">
|
|
|
+ <div class="title">{{ qrcodeTitle }} - 微信员工码</div>
|
|
|
+ <div class="flex-center">
|
|
|
+ <el-image class="qrcode" :src="buildingRegularCode" alt="加载失败" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="app-container" v-if="ZFBbuildingRegularCode">
|
|
|
+ <div class="title">{{ qrcodeTitle }} - 支付宝员工码</div>
|
|
|
+ <div class="flex-center">
|
|
|
+ <el-image class="qrcode" :src="ZFBbuildingRegularCode" alt="加载失败" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</div>
|
|
|
- <!-- </div> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -113,6 +159,7 @@ export default {
|
|
|
regularCode: "",
|
|
|
zfbGenericCode: null,
|
|
|
zfbRegularCode: "",
|
|
|
+ zfbFkjCode: null,
|
|
|
reservationCode: "",
|
|
|
reservationEnCode: "",
|
|
|
buildingCode: "",
|
|
@@ -146,6 +193,7 @@ export default {
|
|
|
}
|
|
|
this.zfbGenericCode = data.adminDetail ? data.adminDetail.zfbGenericCode : null
|
|
|
this.zfbRegularCode = data.adminDetail ? data.adminDetail.zfbRegularCode : null
|
|
|
+ this.zfbFkjCode = data.adminDetail ? data.adminDetail.zfbFkjCode : null
|
|
|
if (data.adminDetail.reservationStatus) {
|
|
|
this.reservationCode = data.adminDetail.reservationCode;
|
|
|
this.reservationEnCode = data.adminDetail.reservationEnCode;
|
|
@@ -173,14 +221,13 @@ export default {
|
|
|
background-repeat: no-repeat;
|
|
|
}
|
|
|
.container {
|
|
|
- width: 100%;
|
|
|
- display: flex;
|
|
|
- justify-content: space-around;
|
|
|
- align-items: center;
|
|
|
- height: calc(100vh - 80px);
|
|
|
- overflow: hidden;
|
|
|
+ padding: 0 120px;
|
|
|
+ height: calc(100vh - 60px);
|
|
|
}
|
|
|
.app-container {
|
|
|
+ flex: none;
|
|
|
+ width: 313px;
|
|
|
+ padding: 28px 20px;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
@@ -191,17 +238,25 @@ export default {
|
|
|
box-shadow: 0px 14px 23px rgba(12, 31, 128, 0.15);
|
|
|
border-radius: 10px;
|
|
|
}
|
|
|
+.el-col {
|
|
|
+ padding-top: 60px;
|
|
|
+}
|
|
|
+.el-col:nth-of-type(n+4){
|
|
|
+ padding-top: 30px;
|
|
|
+}
|
|
|
.title {
|
|
|
- font-size: 40px;
|
|
|
- font-weight: 700;
|
|
|
- margin-top: 50px;
|
|
|
+ color: #000000;
|
|
|
+ font-size: 27px;
|
|
|
+ font-weight: 500;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 40px;
|
|
|
}
|
|
|
.flex-center {
|
|
|
- margin-top: 30px;
|
|
|
+ margin-top: 24px;
|
|
|
}
|
|
|
.qrcode {
|
|
|
- width: 350px;
|
|
|
- height: 350px;
|
|
|
+ width: 220px;
|
|
|
+ height: 220px;
|
|
|
}
|
|
|
.btn-area {
|
|
|
padding: 50px 0;
|
|
@@ -209,10 +264,5 @@ export default {
|
|
|
justify-content: space-around;
|
|
|
align-items: center;
|
|
|
}
|
|
|
-.title {
|
|
|
- width: 370px;
|
|
|
- word-break: break-all;
|
|
|
- text-align: center;
|
|
|
-}
|
|
|
</style>
|
|
|
|