|
@@ -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,42 +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="加载失败" />
|
|
@@ -75,8 +75,8 @@
|
|
|
</el-row>
|
|
|
</div>
|
|
|
<!-- 预约场景 -->
|
|
|
- <div class="container" v-if="reservationCode">
|
|
|
- <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>
|
|
@@ -96,42 +96,42 @@
|
|
|
</el-row>
|
|
|
</div>
|
|
|
<!-- 楼宇场景 -->
|
|
|
- <div class="container" v-if="buildingCode || buildingRegularCode">
|
|
|
- <el-row :gutter="210">
|
|
|
- <el-col :span="8">
|
|
|
- <div class="app-container" v-if="buildingCode">
|
|
|
+ <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">
|
|
|
- <div class="app-container" v-if="ZFBbuildingCode">
|
|
|
+ <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">
|
|
|
- <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="buildingRegularCode">
|
|
|
+ <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">
|
|
|
- <div class="app-container" v-if="ZFBbuildingRegularCode">
|
|
|
+ <el-col v-if="ZFBbuildingRegularCode" :span="8">
|
|
|
+ <div class="app-container">
|
|
|
<div class="title">{{ qrcodeTitle }} - 支付宝员工码</div>
|
|
|
<div class="flex-center">
|
|
|
<el-image class="qrcode" :src="ZFBbuildingRegularCode" alt="加载失败" />
|
|
@@ -173,7 +173,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
pinyin,
|
|
|
- //获取微信二维码
|
|
|
+ // 获取微信二维码
|
|
|
getWXQRCode() {
|
|
|
getInfo().then(({ data }) => {
|
|
|
this.qrcodeTitle = data.username;
|
|
@@ -214,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");
|
|
@@ -221,7 +225,7 @@ export default {
|
|
|
background-repeat: no-repeat;
|
|
|
}
|
|
|
.container {
|
|
|
- padding: 0 120px;
|
|
|
+ padding: 0 80px;
|
|
|
height: calc(100vh - 60px);
|
|
|
}
|
|
|
.app-container {
|