MrShi
2025-04-23 c8b32b8bca79a116cfab70eb8c389907b664c9ca
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({
@@ -71,7 +72,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 +82,7 @@
                        }
                     }
                  }
               } else {
                  let loc_href = encodeURIComponent("https://dmtest.ahapp.net/lianhelihua_web/")