From 12d19c841ddaeb905e89f2ecc85947169e7346d5 Mon Sep 17 00:00:00 2001 From: xiaozhiyong Date: Wed, 31 May 2023 15:17:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BagAuth/pages/login/login.vue | 111 ++++++---------------------------- 1 file changed, 19 insertions(+), 92 deletions(-) diff --git a/BagAuth/pages/login/login.vue b/BagAuth/pages/login/login.vue index b5eadef..646a1f9 100644 --- a/BagAuth/pages/login/login.vue +++ b/BagAuth/pages/login/login.vue @@ -1,127 +1,43 @@ @@ -131,7 +47,6 @@ import loginBottom from './components/loginBottom.vue' import oilIdentityApi from '@/api/oil-identity' - export default { components: { loginBottom @@ -139,6 +54,7 @@ data() { return { // imgsrc:require('../../../BagStation/static/img/login-bg.png'), + checked:false, userHandle: false, TabCur: 0, accuntSource: false, @@ -161,12 +77,12 @@ uni.login({ provider: 'weixin', success: (loginRes) => { - console.log(loginRes,'+++++++') + console.log(loginRes, '+++++++') const code = loginRes.code this.onceCode = code - console.log(this.onceCode,'----------') + console.log(this.onceCode, '----------') oilIdentityApi.sendCode(this.onceCode).then(res => { - console.log(res,'++++++++++++++++') + console.log(res, '++++++++++++++++') if (res.code === 20000) { this.sessionKey = res.data.sessionKey uni.setStorageSync('openid', res.data.openId) @@ -198,6 +114,9 @@ }) }, methods: { + checkAgree(val) { + this.checked = val + }, refuseLogin() { uni.switchTab({ url: '/pages/tabbar/home/home' @@ -231,6 +150,13 @@ decryptPhoneNumber(e) { + if (!this.checked) { + uni.showToast({ + title: '请您阅读并同意协议', + icon: 'none' + }) + return + } // console.log(e.detail) if (e.detail.errMsg === 'getPhoneNumber:ok') { const data1 = { @@ -306,7 +232,8 @@ height: 750rpx; background-color: #fff; } - .bg-0{ + + .bg-0 { background-color: transparent; color: #555555; }