From d91c23a3dc8cb22c0a5b2bbb5a74c6aac37469b5 Mon Sep 17 00:00:00 2001
From: xuxy <1059738716@qq.com>
Date: 星期三, 03 七月 2024 11:35:02 +0800
Subject: [PATCH] update 分类过滤
---
App.vue | 24 +++++++++++++++++++++++-
1 files changed, 23 insertions(+), 1 deletions(-)
diff --git a/App.vue b/App.vue
index e9c7d94..9ad1faf 100644
--- a/App.vue
+++ b/App.vue
@@ -41,8 +41,23 @@
// console.log('init info',res,this.currentInfo)
if (this.currentInfo && this.currentInfo.id && !this.currentInfo.openId) {
uni.reLaunch({
- url: '/pages/home/farmer-home'
+ url: '/pages/home/supplier-home'
})
+ }
+ }, 200);
+ } else {
+
+ }
+ // #endif
+ // #ifdef H5
+ if (true && storage.getItem('token')) {
+ setTimeout(async () => {
+ const res = await this.$store.dispatch('getCurrentInfo');
+ // console.log('init info',res,this.currentInfo)
+ if (this.currentInfo && this.currentInfo.id && !this.currentInfo.openId) {
+ // uni.reLaunch({
+ // url: '/pages/home/supplier-home'
+ // })
}
}, 200);
} else {
@@ -66,8 +81,14 @@
</script>
<style lang="scss">
+
/*每个页面公共css */
@import '@/uni_modules/uni-scss/index.scss';
+ /* uni.scss */
+
+ // @import "@/uni_modules/uview-plus/index.scss";
+ @import "uview-ui/index.scss";
+
/* #ifndef APP-NVUE */
@import '@/static/customicons.css';
@@ -78,6 +99,7 @@
@import '@/common/self.scss';
@import '@/common/icons.scss';
+ @import '@/common/global.scss';
/* #endif */
.example-info {
--
Gitblit v1.9.3