|
@@ -5,11 +5,7 @@
|
|
|
<el-row :span="24">
|
|
|
<el-col :span="24" class="top">
|
|
|
<div class="w_1200">
|
|
|
- <el-col :span="22"><img style="width: 290px; height: 66px" :src="url"/></el-col>
|
|
|
- <el-col :span="2">
|
|
|
- <el-col :span="6"><img style="width: 25px; height: 25px" :src="pic"/></el-col>
|
|
|
- <el-col :span="18"><el-link type="primary">咨询帮助</el-link></el-col>
|
|
|
- </el-col>
|
|
|
+ <p>{{ siteTitle }}</p>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<div class="w_1200">
|
|
@@ -61,7 +57,7 @@
|
|
|
<!-- <el-col :span="19" style="padding: 8px 0;"><el-checkbox v-model="checked">记住登陆账号</el-checkbox></el-col> -->
|
|
|
<el-col :span="24"><el-button type="success" class="login" @click="toSubmit">登录</el-button></el-col>
|
|
|
</el-col>
|
|
|
- <el-col><el-link type="primary" class="login_tips" :underline="false">忘记登陆密码?</el-link></el-col>
|
|
|
+ <!-- <el-col><el-link type="primary" class="login_tips" :underline="false">忘记登陆密码?</el-link></el-col> -->
|
|
|
</el-row>
|
|
|
</el-col>
|
|
|
<el-col :span="8" class="mainRight" v-else>
|
|
@@ -109,13 +105,16 @@ export default {
|
|
|
passwd: [{ required: true, message: '请输入密码', trigger: 'blur' }],
|
|
|
},
|
|
|
verifyForm: {},
|
|
|
+ site: {},
|
|
|
+ siteTitle: '',
|
|
|
}),
|
|
|
created() {
|
|
|
this.initQrcode();
|
|
|
+ this.getSite();
|
|
|
},
|
|
|
computed: {},
|
|
|
methods: {
|
|
|
- ...mapActions(['studLogin', 'createConnection', 'getWxtoken', 'verifyOperation']),
|
|
|
+ ...mapActions(['studLogin', 'createConnection', 'getWxtoken', 'verifyOperation', 'siteOperation']),
|
|
|
toSubmit() {
|
|
|
this.$refs.form.validate(valid => {
|
|
|
if (valid) {
|
|
@@ -163,6 +162,22 @@ export default {
|
|
|
let result = await this.getWxtoken(this.qrcode);
|
|
|
this.submit(result);
|
|
|
},
|
|
|
+ //获取站点信息
|
|
|
+ async getSite() {
|
|
|
+ let site = sessionStorage.getItem('site');
|
|
|
+ if (!site) {
|
|
|
+ let result = await this.siteOperation({ type: 'search', data: {} });
|
|
|
+ if (`${result.errcode}` === `0`) {
|
|
|
+ sessionStorage.setItem('site', JSON.stringify(result.data));
|
|
|
+ this.$set(this, `site`, result.data);
|
|
|
+ console.log(this.site);
|
|
|
+ this.$set(this, `siteTitle`, this.site.name);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$set(this, `site`, JSON.parse(site));
|
|
|
+ this.$set(this, `siteTitle`, this.site.name);
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
@@ -178,6 +193,14 @@ export default {
|
|
|
opacity: 0.9;
|
|
|
border-top: 4px solid #44b569;
|
|
|
}
|
|
|
+.top p {
|
|
|
+ font-size: 27px;
|
|
|
+ padding: 0;
|
|
|
+ margin: 0;
|
|
|
+ height: 70px;
|
|
|
+ line-height: 70px;
|
|
|
+ font-family: cursive;
|
|
|
+}
|
|
|
.mainLeft {
|
|
|
padding: 15% 0;
|
|
|
}
|
|
@@ -217,4 +240,7 @@ export default {
|
|
|
font-size: 13px;
|
|
|
color: #808080;
|
|
|
}
|
|
|
+/deep/.login {
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
</style>
|