From 7298d5354963a88643a543b51b90192dc9fc934c Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期四, 11 九月 2025 18:43:14 +0800
Subject: [PATCH] 最新版本541200007
---
h5/App.vue | 204 ++++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 179 insertions(+), 25 deletions(-)
diff --git a/h5/App.vue b/h5/App.vue
index b69017c..2fb62ad 100644
--- a/h5/App.vue
+++ b/h5/App.vue
@@ -1,30 +1,26 @@
<script>
+ import {
+ wxAuthorize,
+ refreshToken,
+ app_url
+ } from '@/api'
export default {
onLaunch: function() {
- var that = this
- if (!that.$store.state.openid) {
- let url = window.location.href
- let code = ''
- if (url.indexOf('code=') !== -1) {
- const query = url.split('?')
-
- for (const q of query) {
- if (q.indexOf('code=') !== -1) {
- code = q.substring(q.indexOf('code=') + 5, q.length)
- }
- }
- that.$u.api.wxAuthorize({
- code: code
- }).then(res => {
- if (res.code === 200) {
- that.$store.commit('setOpenId', res.data.openid)
- if (res.data.member) {
- that.$store.commit('setMember', res.data.member)
- }
- }
- })
+ 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')
@@ -39,6 +35,13 @@
/*姣忎釜椤甸潰鍏叡css */
@import "uview-ui/index.scss";
+ html,
+ body {
+ height: auto;
+ min-height: 100%;
+ overflow: visible;
+ }
+
.flex-cb {
display: flex;
justify-content: space-between;
@@ -50,6 +53,20 @@
width: 100%;
max-width: 800rpx;
overflow-y: auto;
+ }
+
+ .empty_wrap {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ color: #666666;
+ min-height: 600rpx;
+
+ image {
+ width: 300rpx;
+ height: 300rpx;
+ }
}
.doumee-container .ivu-tabs-nav {
@@ -107,7 +124,7 @@
}
.cell.is-link::after {
- content: '';
+ content: "";
display: block;
width: 8rpx;
height: 8rpx;
@@ -124,7 +141,7 @@
}
.card::after {
- content: '';
+ content: "";
display: block;
position: absolute;
width: calc(100% - 32rpx);
@@ -142,4 +159,141 @@
.card .content {
color: #222;
}
+
+ .placeholder9 {
+ color: #999999 !important;
+ font-size: 28rpx;
+ }
+
+ .placeholder3 {
+ color: #333333 !important;
+ }
+
+ .red {
+ color: red !important;
+ }
+
+ //璁剧疆鍦嗚
+ checkbox .uni-checkbox-input {
+ border-radius: 50%;
+ }
+
+ checkbox .uni-checkbox-input.uni-checkbox-input-checked {
+ color: #fff !important;
+ border: 1px solid #4d99a8 !important;
+ background-color: #4d99a8 !important;
+ }
+
+ checkbox .uni-checkbox-input.uni-checkbox-input-checked:before {
+ /* color: #4d99a8 !important; */
+ /* border: 1px solid #4d99a8 !important; */
+ /* font-size: 58rpx; */
+ /* border-radius: 50%; */
+ }
+
+ //
+
+ view {
+ box-sizing: border-box;
+ }
+
+ image {
+ box-sizing: border-box;
+ margin: 0;
+ display: flex;
+ }
+
+ input {
+ font-size: 30rpx;
+ }
+
+ textarea {
+ box-sizing: border-box;
+ // background-color: #f7f7f7;
+ font-size: 30rpx !important;
+ padding: 0;
+ border-radius: 8rpx;
+ color: #333333 !important;
+ }
+
+ .u-textarea {
+ padding: 0 !important;
+ color: #333333 !important;
+ }
+
+ .df_ac {
+ display: flex;
+ align-items: center;
+ }
+
+ .main_app {
+ padding: 10rpx 30rpx 0rpx;
+ font-size: 28rpx;
+ color: #333333;
+ }
+
+ .popupShow {
+ overflow: hidden;
+ position: fixed;
+ width: 100%;
+ }
+
+ .placeholder6 {
+ color: #666666;
+ font-size: 28rpx;
+ }
+
+ .primaryColor {
+ color: $uni-color-primary;
+ }
+
+ .avatar {
+ width: 64rpx;
+ height: 64rpx;
+ border-radius: 50%;
+ margin-right: 20rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ background-color: $uni-color-primary;
+ color: #fff;
+ font-size: 30rpx;
+ }
+
+ .placeholder9 {
+ color: #999999;
+ font-size: 28rpx;
+ }
+
+ .fs24 {
+ font-size: 24rpx;
+ }
+
+ .mr24 {
+ margin-right: 24rpx;
+ }
+
+ .mt24 {
+ margin-top: 24rpx;
+ }
+
+ .mr12 {
+ margin-right: 12rpx;
+ }
+
+ .ml12 {
+ margin-left: 12rpx;
+ }
+
+ .ml6 {
+ margin-left: 6rpx;
+ }
+
+ .mt6 {
+ margin-top: 6rpx;
+ }
+
+ .mr6 {
+ margin-right: 6rpx;
+ }
</style>
\ No newline at end of file
--
Gitblit v1.9.3