|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="bg">
|
|
|
- <div class="container" v-if="placeType === 2 && role == 5">
|
|
|
- <el-row :gutter="210">
|
|
|
+ <div v-if="placeType === 2 && role == 5" class="container">
|
|
|
+ <el-row :gutter="40">
|
|
|
<el-col :span="8">
|
|
|
<div class="app-container">
|
|
|
<div class="title">{{ qrcodeTitle }}-微信</div>
|
|
@@ -30,45 +30,42 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- 普通场景 -->
|
|
|
- <div
|
|
|
- class="container"
|
|
|
- v-if="genericCode || regularCode || zfbGenericCode || zfbRegularCode"
|
|
|
- >
|
|
|
- <el-row :gutter="210">
|
|
|
- <el-col :span="8">
|
|
|
- <div class="app-container" v-if="genericCode">
|
|
|
+ <div v-if="genericCode || regularCode || zfbGenericCode || zfbRegularCode" class="container">
|
|
|
+ <el-row :gutter="40">
|
|
|
+ <el-col v-if="genericCode" :span="8">
|
|
|
+ <div class="app-container">
|
|
|
<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">
|
|
|
+ <el-col v-if="regularCode" :span="8">
|
|
|
+ <div class="app-container">
|
|
|
<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">
|
|
|
+ <el-col v-if="zfbFkjCode" :span="8">
|
|
|
+ <div class="app-container">
|
|
|
<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">
|
|
|
+ <el-col v-if="zfbGenericCode" :span="8">
|
|
|
+ <div class="app-container">
|
|
|
<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">
|
|
|
+ <el-col v-if="zfbRegularCode" :span="8">
|
|
|
+ <div class="app-container">
|
|
|
<div class="title">{{ qrcodeTitle }} - 支付宝员工码</div>
|
|
|
<div class="flex-center">
|
|
|
<el-image :src="zfbRegularCode" class="qrcode" alt="加载失败" />
|
|
@@ -78,8 +75,8 @@
|
|
|
</el-row>
|
|
|
</div>
|
|
|
<!-- 预约场景 -->
|
|
|
- <div class="container" v-if="reservationCode && placeType == 1">
|
|
|
- <el-row :gutter="210">
|
|
|
+ <div v-if="reservationCode" class="container">
|
|
|
+ <el-row :gutter="40">
|
|
|
<el-col :span="8">
|
|
|
<div class="app-container">
|
|
|
<div class="title">{{ qrcodeTitle }} - 内宾码</div>
|
|
@@ -90,76 +87,54 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<div class="app-container">
|
|
|
- <div class="title">
|
|
|
- {{ qrcodeTitlePinYin }} - Foreign guests code
|
|
|
- </div>
|
|
|
+ <div class="title">{{ qrcodeTitlePinYin }} - Foreign guests code</div>
|
|
|
<div class="flex-center">
|
|
|
- <el-image
|
|
|
- class="qrcode"
|
|
|
- :src="reservationEnCode"
|
|
|
- alt="加载失败"
|
|
|
- />
|
|
|
+ <el-image class="qrcode" :src="reservationEnCode" alt="加载失败" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
<!-- 楼宇场景 -->
|
|
|
- <div class="container" v-if="buildingCode || buildingRegularCode">
|
|
|
- <el-row :gutter="210">
|
|
|
- <el-col :span="8" v-if="buildingCode">
|
|
|
- <div class="app-container" >
|
|
|
+ <div v-if="buildingCode || buildingRegularCode" class="container">
|
|
|
+ <el-row :gutter="40">
|
|
|
+ <el-col v-if="buildingCode" :span="8">
|
|
|
+ <div class="app-container">
|
|
|
<div class="title">{{ qrcodeTitle }} - 微信通用码</div>
|
|
|
<div class="flex-center">
|
|
|
<el-image class="qrcode" :src="buildingCode" alt="加载失败" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
- <el-col :span="8" v-if="ZFBbuildingCode">
|
|
|
- <div class="app-container" >
|
|
|
+ <el-col v-if="ZFBbuildingCode" :span="8">
|
|
|
+ <div class="app-container">
|
|
|
<div class="title">{{ qrcodeTitle }} - 支付宝通用码</div>
|
|
|
<div class="flex-center">
|
|
|
<el-image class="qrcode" :src="ZFBbuildingCode" alt="加载失败" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
- <el-col :span="8" v-if="zfbFkjCode">
|
|
|
- <div class="app-container" >
|
|
|
+ <el-col v-if="zfbFkjCode" :span="8">
|
|
|
+ <div class="app-container">
|
|
|
<div class="title">{{ qrcodeTitle }} - 访客机开门二维码</div>
|
|
|
<div class="flex-center">
|
|
|
<el-image :src="zfbFkjCode" class="qrcode" alt="加载失败" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
- <el-col :span="8" v-if="buildingRegularCode">
|
|
|
- <div class="app-container" >
|
|
|
+ <el-col v-if="buildingRegularCode" :span="8">
|
|
|
+ <div class="app-container">
|
|
|
<div class="title">{{ qrcodeTitle }} - 微信员工码</div>
|
|
|
<div class="flex-center">
|
|
|
- <el-image
|
|
|
- class="qrcode"
|
|
|
- :src="buildingRegularCode"
|
|
|
- alt="加载失败"
|
|
|
- />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8" v-if="ZFBbuildingRegularCode">
|
|
|
- <div class="app-container" >
|
|
|
- <div class="title">{{ qrcodeTitle }} - 支付宝员工码</div>
|
|
|
- <div class="flex-center">
|
|
|
- <el-image
|
|
|
- class="qrcode"
|
|
|
- :src="ZFBbuildingRegularCode"
|
|
|
- alt="加载失败"
|
|
|
- />
|
|
|
+ <el-image class="qrcode" :src="buildingRegularCode" alt="加载失败" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
- <el-col :span="8" v-if="placeType == 3">
|
|
|
+ <el-col v-if="ZFBbuildingRegularCode" :span="8">
|
|
|
<div class="app-container">
|
|
|
- <div class="title">{{ qrcodeTitle }} - 支付宝入库码</div>
|
|
|
+ <div class="title">{{ qrcodeTitle }} - 支付宝员工码</div>
|
|
|
<div class="flex-center">
|
|
|
- <el-image class="qrcode" :src="schoolCode" alt="加载失败" />
|
|
|
+ <el-image class="qrcode" :src="ZFBbuildingRegularCode" alt="加载失败" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-col>
|
|
@@ -191,8 +166,6 @@ export default {
|
|
|
ZFBbuildingCode: "",
|
|
|
buildingRegularCode: "",
|
|
|
ZFBbuildingRegularCode: "",
|
|
|
- schoolCode:
|
|
|
- "https://tx.hz-hanghui.com:8088/yx-fyzd/file/upload/imagesnew/20230912/417855998988910592.jpg",
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -200,7 +173,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
pinyin,
|
|
|
- //获取微信二维码
|
|
|
+ // 获取微信二维码
|
|
|
getWXQRCode() {
|
|
|
getInfo().then(({ data }) => {
|
|
|
this.qrcodeTitle = data.username;
|
|
@@ -218,13 +191,9 @@ export default {
|
|
|
if (data.adminDetail.regularStatus) {
|
|
|
this.regularCode = data.adminDetail.regularCode;
|
|
|
}
|
|
|
- this.zfbGenericCode = data.adminDetail
|
|
|
- ? data.adminDetail.zfbGenericCode
|
|
|
- : null;
|
|
|
- this.zfbRegularCode = data.adminDetail
|
|
|
- ? data.adminDetail.zfbRegularCode
|
|
|
- : null;
|
|
|
- this.zfbFkjCode = data.adminDetail ? data.adminDetail.zfbFkjCode : null;
|
|
|
+ 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;
|
|
@@ -245,6 +214,10 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
+.el-col {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+}
|
|
|
.bg {
|
|
|
height: calc(100vh - 50px);
|
|
|
background-image: url("../../assets/bg.png");
|
|
@@ -252,7 +225,7 @@ export default {
|
|
|
background-repeat: no-repeat;
|
|
|
}
|
|
|
.container {
|
|
|
- padding: 0 120px;
|
|
|
+ padding: 0 80px;
|
|
|
height: calc(100vh - 60px);
|
|
|
}
|
|
|
.app-container {
|
|
@@ -272,7 +245,7 @@ export default {
|
|
|
.el-col {
|
|
|
padding-top: 60px;
|
|
|
}
|
|
|
-.el-col:nth-of-type(n + 4) {
|
|
|
+.el-col:nth-of-type(n+4){
|
|
|
padding-top: 30px;
|
|
|
}
|
|
|
.title {
|