ll
liukangdong
2024-12-31 423155b8134694c2f2e68f6d3f5239ba0541b0cf
h5/pages/login/login.vue
@@ -41,7 +41,7 @@
   export default {
      data() {
         return {
            code: 'aaa'
            code: ''
         }
      },
      onLoad(option) {
@@ -58,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)