给首页增加安卓、苹果、小程序的图标

This commit is contained in:
季圣华
2023-07-14 00:38:54 +08:00
parent 7dcc32e899
commit a140bce0f1
7 changed files with 83 additions and 77 deletions

View File

@@ -7,7 +7,6 @@
size="large"
v-decorator="['loginName',{initialValue:'', rules: validatorRules.loginName.rules}]"
type="text"
@mouseover="initWeixin"
placeholder="请输入用户名">
<a-icon slot="prefix" type="user" :style="{ color: 'rgba(0,0,0,.25)' }"/>
</a-input>
@@ -18,7 +17,6 @@
v-decorator="['password',{initialValue:'', rules: validatorRules.password.rules}]"
size="large"
type="password"
@mouseover="initWeixin"
autocomplete="false"
placeholder="请输入密码">
<a-icon slot="prefix" type="lock" :style="{ color: 'rgba(0,0,0,.25)' }"/>
@@ -39,7 +37,6 @@
htmlType="submit"
class="login-button"
:loading="loginBtn"
@mouseover="initWeixin"
@click.stop.prevent="handleSubmit"
:disabled="loginBtn">登 录
</a-button>
@@ -53,11 +50,6 @@
</a-col>
</a-row>
</div>
<div v-if="showWeixinFlag" style="text-align: center; padding-top: 20px;">
<img src="/static/weixin.jpg" style="width:160px" />
<div style="font-size:16px;padding-top:10px;font-weight:bold">欢迎【扫一扫】<br/>{{systemTitle}}微信小程序</div>
</div>
</a-form>
</div>
</template>
@@ -112,8 +104,7 @@
currdatetime:'',
randCodeImage:'',
registerFlag:'',
requestCodeSuccess:false,
showWeixinFlag:false,
requestCodeSuccess:false
}
},
created () {
@@ -293,32 +284,6 @@
}
})
},
initWeixin() {
if(this.showWeixinSpan()) {
let that = this
setTimeout(function() {
that.showWeixin()
},1000)
}
},
showWeixinSpan() {
let host = window.location.host
if(host === 'cloud.huaxiaerp.vip' || host === 'cloud.huaxiaerp.com') {
return true
} else {
return false
}
},
showWeixin() {
this.showWeixinFlag = true
},
changeWeixinStatus() {
if(this.showWeixinFlag) {
this.showWeixinFlag = false
} else {
this.showWeixinFlag = true
}
},
checkScreen() {
let percentage = '100%'
let basicWidth = 1920

View File

@@ -5,7 +5,7 @@
<a-form-item
fieldDecoratorId="username"
:fieldDecoratorOptions="{rules: [{ required: true, message: '用户名不能为空'}, { validator: this.handleUserName}], validateTrigger: ['change', 'blur'], validateFirst: true}">
<a-input size="large" type="text" @focus="initWeixin" @mouseover="initWeixin" autocomplete="false"
<a-input size="large" type="text" autocomplete="false"
placeholder="请输入用户名"></a-input>
</a-form-item>
@@ -22,8 +22,7 @@
<a-form-item
fieldDecoratorId="password"
:fieldDecoratorOptions="{rules: [{ required: false}, { validator: this.handlePasswordLevel }], validateTrigger: ['change', 'blur'], validateFirst: true}">
<a-input size="large" type="password" @click="handlePasswordInputClick" @mouseover="initWeixin"
autocomplete="false" placeholder="至少6位密码区分大小写"></a-input>
<a-input size="large" type="password" @click="handlePasswordInputClick" autocomplete="false" placeholder="至少6位密码区分大小写"></a-input>
</a-form-item>
</a-popover>
@@ -42,7 +41,6 @@
size="large"
type="text"
default-value=""
@mouseover="initWeixin"
placeholder="请输入验证码">
<a-icon slot="prefix" type="smile" :style="{ color: 'rgba(0,0,0,.25)' }"/>
</a-input>
@@ -61,7 +59,6 @@
htmlType="submit"
class="register-button"
:loading="registerBtn"
@mouseover="initWeixin"
@click.stop.prevent="handleSubmit"
:disabled="registerBtn">注册租户
</a-button>
@@ -76,11 +73,6 @@
</a-col>
</a-row>
</div>
<div v-if="showWeixinFlag" style="text-align: center; padding-top: 20px;">
<img src="/static/weixin.jpg" style="width:160px" />
<div style="font-size:16px;padding-top:10px;font-weight:bold">欢迎【扫一扫】<br/>{{systemTitle}}微信小程序</div>
</div>
</a-form>
</div>
</template>
@@ -129,7 +121,6 @@
progressColor: '#FF0000'
},
registerBtn: false,
showWeixinFlag:false,
}
},
computed: {
@@ -278,33 +269,7 @@
duration: 4,
});
this.registerBtn = false;
},
initWeixin() {
if(this.showWeixinSpan()) {
let that = this
setTimeout(function() {
that.showWeixin()
},1000)
}
},
showWeixinSpan() {
let host = window.location.host
if(host === 'cloud.huaxiaerp.vip' || host === 'cloud.huaxiaerp.com') {
return true
} else {
return false
}
},
showWeixin() {
this.showWeixinFlag = true
},
changeWeixinStatus() {
if(this.showWeixinFlag) {
this.showWeixinFlag = false
} else {
this.showWeixinFlag = true
}
},
}
},
watch: {
'state.passwordLevel'(val) {