修改了部分bug

This commit is contained in:
weidizhu_admin 2024-08-16 10:29:18 +08:00
parent 7bf4d2fad1
commit a0b1937da4
5 changed files with 16 additions and 5 deletions

View File

@ -22,7 +22,7 @@
></wButton> ></wButton>
</view> </view>
<view class="footer"> <view class="footer">
<view class="" @click="login_type = 1"> <view class="" @click="doLoginType(1)">
密码登录 密码登录
</view> </view>
<text>|</text> <text>|</text>
@ -67,7 +67,7 @@
<text>|</text> <text>|</text>
<navigator url="register" open-type="navigate">注册账号</navigator> <navigator url="register" open-type="navigate">注册账号</navigator>
<text>|</text> <text>|</text>
<view class="" @click="login_type = 0"> <view class="" @click="doLoginType(0)">
扫码登录 扫码登录
</view> </view>
</view> </view>
@ -122,6 +122,17 @@
url: '/pages/index/index' url: '/pages/index/index'
}) })
}, },
doLoginType(type){
this.login_type = type
if(type == 0){
this.qrCodeMsg = '加载中...'
this.qrCode = ''
this.getLoginCode()
}else{
this.qrCodeMsg = '加载中...'
this.qrCode = ''
}
},
getLoginCode(){ getLoginCode(){
this.$store.dispatch('api/getLoginCode').then(res => { this.$store.dispatch('api/getLoginCode').then(res => {
this.qrCode = 'https://ai.agrimedia.cn/qrcodeLogin/index?qrcode=' + res.key this.qrCode = 'https://ai.agrimedia.cn/qrcodeLogin/index?qrcode=' + res.key

View File

@ -1,2 +1,2 @@
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>智能终端</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)')) <!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>智能终端</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/watchapp/static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/watchapp/static/js/chunk-vendors.48364482.js></script><script src=/watchapp/static/js/index.b2cf881e.js></script></body></html> document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/watchapp/static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/watchapp/static/js/chunk-vendors.48364482.js></script><script src=/watchapp/static/js/index.b2305018.js></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long