From 5d1179bb45532d042c3a9711f56955efb436b114 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期二, 19 八月 2025 09:30:15 +0800
Subject: [PATCH] 代码初始化
---
h5/App.vue | 25 ++++++++++++-------------
1 files changed, 12 insertions(+), 13 deletions(-)
diff --git a/h5/App.vue b/h5/App.vue
index 960cc4d..bba739d 100644
--- a/h5/App.vue
+++ b/h5/App.vue
@@ -11,13 +11,14 @@
},
methods: {
async init() {
- // if (!this.$store.state.userInfo) {
- // let res = await this.$u.api.login({ code: 'ShiXuHui' })
- // if (res.code === 200) {
- // this.$store.commit('setUserInfo', res.data)
- // }
- // }
- // return
+ // ShiXuHui GuoJiWenWu
+ if (!this.$store.state.userInfo) {
+ let res = await this.$u.api.login({ code: 'GuoJiWenWu' })
+ if (res.code === 200) {
+ this.$store.commit('setUserInfo', res.data)
+ }
+ }
+ return
let code = this.getQueryVariable('code')
if (code) {
if (!uni.getStorageSync('code')) {
@@ -40,7 +41,7 @@
})
} else if (value[0] == 1) {
uni.navigateTo({
- url: `/pages/workOrder_dca/workOrder_dca?id=${value[1]}`
+ url: `/pages/details_dca/details_dca?id=${value[1]}&isShow=true`
})
} else if (value[0] == 3) {
uni.navigateTo({
@@ -50,10 +51,8 @@
}
}
}
- } else if (uni.getStorageSync('code') !== code) {
-
+ } else if (uni.getStorageSync('code') !== code) {
uni.setStorageSync('code', code);
-
let res = await this.$u.api.login({ code: code })
if (res.code === 200) {
this.$store.commit('setUserInfo', res.data)
@@ -71,7 +70,7 @@
})
} else if (value[0] == 1) {
uni.navigateTo({
- url: `/pages/workOrder_dca/workOrder_dca?id=${value[1]}`
+ url: `/pages/details_dca/details_dca?id=${value[1]}&isShow=true`
})
} else if (value[0] == 3) {
uni.navigateTo({
@@ -81,7 +80,7 @@
}
}
}
-
+
} else {
let loc_href = encodeURIComponent("https://dmtest.ahapp.net/lianhelihua_web/")
--
Gitblit v1.9.3