From 57c04c4c4b7c6bd5470ac3e48bed5b0fceecc639 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期五, 03 一月 2025 16:59:55 +0800
Subject: [PATCH] 代码初始化
---
h5/pages/login/login.vue | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/h5/pages/login/login.vue b/h5/pages/login/login.vue
index 9ab5fd0..8107316 100644
--- a/h5/pages/login/login.vue
+++ b/h5/pages/login/login.vue
@@ -45,6 +45,7 @@
}
},
onLoad(option) {
+ console.log('onLoad');
if(option.ywid){
uni.setStorageSync('ywinfo', {
type: option.type,
@@ -57,7 +58,12 @@
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('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)
--
Gitblit v1.9.3