|
@@ -1,8 +1,8 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
- <view class="jpLogin">
|
|
|
+ <view class="jpLogin" :style="customStyle0" >
|
|
|
|
|
|
- <view class="personal-btn" v-if="bottonShow">
|
|
|
+ <view class="personal-btn" v-if="bottonShow">
|
|
|
<u-button type="error" shape="circle" :custom-style="customStyle1" @click="gotoMain(true)" ><span>加入我们</span></u-button>
|
|
|
<u-button hover-class="none" shape="circle" :custom-style="customStyle2" @click="gotoMain(false)"><span>我先逛逛</span></u-button>
|
|
|
<view style="text-align:center;margin-top:10px;color: white;font-size: 16px;">荆州市总工会 主办</view>
|
|
@@ -20,6 +20,7 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ customStyle0: "",
|
|
|
customStyle1: {
|
|
|
background: '#FF3737',
|
|
|
color:'#FF3737',
|
|
@@ -67,7 +68,11 @@
|
|
|
}).then((response) => {
|
|
|
console.log('findByOpenId')
|
|
|
let [error, res] = response;
|
|
|
-
|
|
|
+
|
|
|
+ //var backImg="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
|
|
|
+ this.carhelp.setConfig(res.data.data.configure)
|
|
|
+ this.setBackImg()
|
|
|
+
|
|
|
if (res.data.code == 200&&res.data.result) {
|
|
|
var token = res ? res.data.data.token : '';
|
|
|
this.carhelp.setPersonInfo(res.data.data.memberInfo );
|
|
@@ -88,7 +93,19 @@
|
|
|
this.carhelp.logoff()
|
|
|
this.bottonShow=true
|
|
|
})
|
|
|
+ },
|
|
|
+ setBackImg(){
|
|
|
+ var img=this.carhelp.getConfig().homepageLogo
|
|
|
+ if(img){
|
|
|
+ this.customStyle0="background:url("+img+") no-repeat;background-size: 100%;"
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
+ },
|
|
|
+ onLoad() {
|
|
|
+
|
|
|
+ this.setBackImg( )
|
|
|
+
|
|
|
},
|
|
|
onReady() {
|
|
|
|