ll
liukangdong
2025-03-12 5c802188cf8bc8783cdcbff336b2fe29ec608b4e
h5/App.vue
@@ -1,8 +1,22 @@
<script>
import { wxAuthorize, refreshToken } from '@/api'
import { wxAuthorize, refreshToken, app_url } from '@/api'
export default {
  onLaunch: function () {
    window.addEventListener("popstate", (event) => {
         const path = this.$route.fullPath
         // console.log('path', path);
       if(path == '/pages/login/login' || path == '/'){
            window.location.href = app_url
         }
         if(path == '/pages/wdata/home'){
            window.location.href = 'https://atwl.ahzyssl.com/zhyq_h5/#/pages/wdata/home'
         }
         if(path == '/pages/waybill/home'){
            window.location.href = 'https://atwl.ahzyssl.com/zhyq_h5/#/pages/waybill/home'
         }
    })
      uni.setStorageSync('transportList', [])
      console.log('onLaunch')
  },
  onShow: function () {
    console.log('App Show')
@@ -16,7 +30,11 @@
<style lang="scss">
/*每个页面公共css */
@import "uview-ui/index.scss";
html, body {
    height: auto;
    min-height: 100%;
    overflow: visible;
}
.flex-cb {
  display: flex;
  justify-content: space-between;
@@ -136,6 +154,9 @@
  color: #999999 !important;
  font-size: 28rpx;
}
.placeholder3{
   color: #333333 !important;
}
.red{
   color: red !important;
}
@@ -191,7 +212,7 @@
}
.main_app {
  padding: 0 30rpx 30rpx;
  padding: 10rpx 30rpx 0rpx;
  font-size: 28rpx;
  color: #333333;
}