From b946b74ca674f7e7a04d99a960040438c95ef22d Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期四, 20 十一月 2025 16:53:13 +0800
Subject: [PATCH] 优化
---
h5/pages/login/login.vue | 58 +++++++++++++++++++++++++++++-----------------------------
1 files changed, 29 insertions(+), 29 deletions(-)
diff --git a/h5/pages/login/login.vue b/h5/pages/login/login.vue
index a5c4bc1..e068cc0 100644
--- a/h5/pages/login/login.vue
+++ b/h5/pages/login/login.vue
@@ -41,42 +41,42 @@
export default {
data() {
return {
- code: '11'
+ code: ''
}
},
onLoad(option) {
console.log('onLoad');
- if (option.ywid) {
- uni.setStorageSync('ywinfo', {
- type: option.type,
- yw: option.yw,
- ywid: option.ywid
- })
- }
+ // if (option.ywid) {
+ // uni.setStorageSync('ywinfo', {
+ // type: option.type,
+ // yw: option.yw,
+ // ywid: option.ywid
+ // })
+ // }
// https://atwl.ahzyssl.com/zhyq_h5/#/pages/login/login?type=2&yw=5&ywid=b3db2072-a453-470d-8c0d-ba3b8b256530
},
onShow() {
- var that = this
- let url = 'https://atwl.ahzyssl.com/zhyq_h5/#/'
- let code = ''
- if (window.location.href.indexOf('code=') !== -1 || this.code) {
- // if(window.location.href.indexOf('wdata') !== -1){
- // uni.redirectTo({
- // url: '/pages/wdata/home?code=' +
- // })
- // }
- const ywinfo = uni.getStorageSync('ywinfo') || {}
- if (ywinfo.ywid && (ywinfo.type || ywinfo.type == 0)) {
- this.userAuth(ywinfo.type)
- }
- } else {
- // let url = window.location.href
- const appID = 'wx173e6caf5abc718a'
- let uri = encodeURIComponent(url)
- let authURL =
- `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appID}&redirect_uri=${uri}&response_type=code&scope=snsapi_base#wechat_redirect`
- window.location.href = authURL
- }
+ // var that = this
+ // let url = 'https://atwl.ahzyssl.com/zhyq_h5/#/'
+ // let code = ''
+ // if (window.location.href.indexOf('code=') !== -1 || this.code) {
+ // // if(window.location.href.indexOf('wdata') !== -1){
+ // // uni.redirectTo({
+ // // url: '/pages/wdata/home?code=' +
+ // // })
+ // // }
+ // const ywinfo = uni.getStorageSync('ywinfo') || {}
+ // if (ywinfo.ywid && (ywinfo.type || ywinfo.type == 0)) {
+ // this.userAuth(ywinfo.type)
+ // }
+ // } else {
+ // // let url = window.location.href
+ // const appID = 'wx173e6caf5abc718a'
+ // let uri = encodeURIComponent(url)
+ // let authURL =
+ // `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appID}&redirect_uri=${uri}&response_type=code&scope=snsapi_base#wechat_redirect`
+ // window.location.href = authURL
+ // }
},
methods: {
--
Gitblit v1.9.3