Commit 39233efb by yy

css

1 parent 5c86b4be
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
</div> </div>
</div> </div>
<div <div
class="config-box" class="config-box config-box-first"
v-if="active == 1" v-if="active == 1"
:style="{ :style="{
'min-height': boxHeight - 140 + 'px' 'min-height': boxHeight - 140 + 'px'
...@@ -229,7 +229,7 @@ ...@@ -229,7 +229,7 @@
</div> </div>
</div> </div>
<GLFooter class="footer-panel"> <GLFooter class="footer-panel">
<el-button type="primary" @click="handlePrev" v-show="active != 1">上一步</el-button> <el-button type="primary" @click="handlePrev" v-show="active == 4">上一步</el-button>
<el-button type="info" disabled v-show="active == 2 && tryStatus == 2">应用审核中</el-button> <el-button type="info" disabled v-show="active == 2 && tryStatus == 2">应用审核中</el-button>
<el-button type="primary" v-show="(active != 4 && tryStatus != 2) || (active == 1 && tryStatus == 2)" @click="handleNext">下一步</el-button> <el-button type="primary" v-show="(active != 4 && tryStatus != 2) || (active == 1 && tryStatus == 2)" @click="handleNext">下一步</el-button>
</GLFooter> </GLFooter>
...@@ -347,7 +347,7 @@ export default { ...@@ -347,7 +347,7 @@ export default {
}, },
//获取二维码 //获取二维码
getQrcode() { getQrcode() {
this.$apis.ww.getQrcode({ loginType: 'login_admin' }).then(res => { this.$apis.ww.getQrcode({ }).then(res => {
let qrcode = new QRCode('qrcode', { let qrcode = new QRCode('qrcode', {
text: res.qrcodeUrl, // 需要转换为二维码的内容 text: res.qrcodeUrl, // 需要转换为二维码的内容
width: 120, width: 120,
...@@ -531,6 +531,10 @@ export default { ...@@ -531,6 +531,10 @@ export default {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
&-first {
align-items: flex-start;
padding-top: 60px;
}
&.config-box-second { &.config-box-second {
width: 600px; width: 600px;
margin: 0 auto; margin: 0 auto;
......
<template> <template>
<div class="scrm-wechat-main"> <div class="scrm-wechat-main">
<wx-system v-if="corpAuthModel == 1"></wx-system> <wx-system v-if="corpAuthModel === 0"></wx-system>
<wx-user v-if="corpAuthModel == 3"></wx-user> <wx-user v-if="corpAuthModel === 3"></wx-user>
<div
class="wechat-qrcode-panel"
v-if="corpAuthModel === null"
:style="{
height: bHeight + 'px'
}"
>
<div class="config-box-qrcode">
<div class="config-use-desc">请联系平台运营配置企微接入模式</div>
<div class="config-use-qrcode">
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/lianghh.png" alt="" />
</div>
<div class="config-use-desc">联系电话:18824231191</div>
</div>
</div>
</div> </div>
</template> </template>
...@@ -16,16 +31,42 @@ export default { ...@@ -16,16 +31,42 @@ export default {
}, },
data() { data() {
return { return {
corpAuthModel: '' corpAuthModel: '',
bHeight: 500
} }
}, },
mounted() { mounted() {
this.$apis.ww.getStatus({}).then(res => { let clientHeight = document.documentElement.clientHeight
this.corpAuthModel = res.corpAuthModel this.bHeight = clientHeight - 80
}) this.$apis.ww.getStatus({}).then(res => {
this.corpAuthModel = res.corpAuthModel
if (this.corpAuthModel === null) {
this.$alert('请联系平台运营配置企微接入模式', {
confirmButtonText: '确定'
})
}
})
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.wechat-qrcode-panel {
width: 100%;
background: #fff;
height: calc(100% - 100px);
display: flex;
justify-content: center;
align-items: center;
.config-box-qrcode {
width: 300px;
text-align: center;
.config-use-qrcode {
width: 200px;
height: 200px;
text-align: center;
margin: 0 auto;
}
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!