From 2ec3a281332d0ded94c1a3cb6911f261d4bd55c0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com>
Date: Tue, 6 Dec 2022 18:47:28 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=A8=A1=E7=89=88=E7=9B=AE=E5=BD=95?=
=?UTF-8?q?=E3=80=91=E6=9B=B4=E6=96=B0=E7=A7=BB=E5=8A=A8=E7=AB=AF=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=E6=BA=90=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../uni-app/components/pageFooter/index.vue | 389 +++++++++---------
.../uni-app/pages/goods_cate/goods_cate1.vue | 81 +---
template/uni-app/pages/index/diy/index.vue | 96 +----
.../pages/order_addcart/order_addcart.vue | 84 +---
template/uni-app/pages/user/index.vue | 88 +---
5 files changed, 200 insertions(+), 538 deletions(-)
diff --git a/template/uni-app/components/pageFooter/index.vue b/template/uni-app/components/pageFooter/index.vue
index a7c8360d3..44e6c1068 100644
--- a/template/uni-app/components/pageFooter/index.vue
+++ b/template/uni-app/components/pageFooter/index.vue
@@ -1,203 +1,188 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/template/uni-app/pages/goods_cate/goods_cate1.vue b/template/uni-app/pages/goods_cate/goods_cate1.vue
index 9b9d1180b..82697b10f 100644
--- a/template/uni-app/pages/goods_cate/goods_cate1.vue
+++ b/template/uni-app/pages/goods_cate/goods_cate1.vue
@@ -53,24 +53,8 @@
-
-
+
+
@@ -83,10 +67,10 @@
mapState,
mapGetters
} from "vuex"
- import pageFooter from '@/components/pageFooter/index.vue'
import {
getNavigation
- } from '@/api/public.js'
+ } from '@/api/public.js'
+ import pageFooter from '@/components/pageFooter/index.vue'
import tabBar from "@/pages/index/visualization/components/tabBar.vue";
const app = getApp();
export default {
@@ -397,61 +381,4 @@
width: 120rpx;
text-align: center;
}
-
- .page-footer {
- position: fixed;
- bottom: 0;
- z-index: 30;
- display: flex;
- align-items: center;
- justify-content: space-around;
- width: 100%;
- height: calc(98rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
- height: calc(98rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
- box-sizing: border-box;
- border-top: solid 1rpx #F3F3F3;
- background-color: #fff;
- box-shadow: 0px 0px 17rpx 1rpx rgba(206, 206, 206, 0.32);
- padding-bottom: constant(safe-area-inset-bottom); ///兼容 IOS<11.2/
- padding-bottom: env(safe-area-inset-bottom); ///兼容 IOS>11.2/
-
- .foot-item {
- display: flex;
- width: max-content;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- position: relative;
- width: 100%;
- .count-num {
- position: absolute;
- display: flex;
- justify-content: center;
- align-items: center;
- width: 40rpx;
- height: 40rpx;
- top: 0rpx;
- right: -15rpx;
- color: #fff;
- font-size: 20rpx;
- background-color: #FD502F;
- border-radius: 50%;
- padding: 4rpx;
- }
- }
-
- .foot-item image {
- height: 50rpx;
- width: 50rpx;
- text-align: center;
- margin: 0 auto;
- }
-
- .foot-item .txt {
- font-size: 24rpx;
-
-
- &.active {}
- }
- }
diff --git a/template/uni-app/pages/index/diy/index.vue b/template/uni-app/pages/index/diy/index.vue
index adbd42378..31da9f7a8 100644
--- a/template/uni-app/pages/index/diy/index.vue
+++ b/template/uni-app/pages/index/diy/index.vue
@@ -145,26 +145,7 @@
{{ site_config }}
-
+
@@ -208,9 +189,6 @@
getCouponNewUser,
siteConfig
} from '@/api/api.js';
- import {
- getNavigation
- } from '@/api/public.js';
// #ifdef H5
import mConfig from './components/index.js';
// #endif
@@ -382,9 +360,6 @@
}
});
})
- getNavigation().then(res => {
- this.newData = res.data
- })
let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
let curRoute = routes[routes.length - 1].route //获取当前页面路由
this.activeRouter = '/' + curRoute
@@ -709,20 +684,6 @@
if (item.name == 'headerSerch') {
this.isHeaderSerch = true
}
- if (item.name == 'pageFoot') {
- if (item.status && item.status.status) {
- this.newData = item
- }
- uni.setStorageSync('FOOTER_BAR', item.status && item.status.status ? true :
- false)
- item.menuList.map((path, index) => {
- if (path.link === '/pages/order_addcart/order_addcart') {
- uni.setStorageSync('FOOTER_ADDCART', index)
- }
- })
- arr.splice(index, 1);
-
- }
if (item.name == 'promotionList') {
that.numConfig = item.numConfig.val;
that.goodType = item.tabConfig.list[0].link.activeVal;
@@ -1160,59 +1121,4 @@
width: 100%;
}
}
-
- .page-footer {
- position: fixed;
- bottom: 0;
- z-index: 30;
- display: flex;
- align-items: center;
- justify-content: space-around;
- width: 100%;
- height: calc(98rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
- height: calc(98rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
- box-sizing: border-box;
- border-top: solid 1rpx #F3F3F3;
- background-color: #fff;
- box-shadow: 0px 0px 17rpx 1rpx rgba(206, 206, 206, 0.32);
- padding-bottom: constant(safe-area-inset-bottom); ///兼容 IOS<11.2/
- padding-bottom: env(safe-area-inset-bottom); ///兼容 IOS>11.2/
-
- .foot-item {
- display: flex;
- width: max-content;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- position: relative;
- width: 100%;
- .count-num {
- position: absolute;
- display: flex;
- justify-content: center;
- align-items: center;
- width: 40rpx;
- height: 40rpx;
- top: 0rpx;
- right: -15rpx;
- color: #fff;
- font-size: 20rpx;
- background-color: #FD502F;
- border-radius: 50%;
- padding: 4rpx;
- }
- }
-
- .foot-item image {
- height: 50rpx;
- width: 50rpx;
- text-align: center;
- margin: 0 auto;
- }
-
- .foot-item .txt {
- font-size: 24rpx;
- &.active {}
- }
- }
diff --git a/template/uni-app/pages/order_addcart/order_addcart.vue b/template/uni-app/pages/order_addcart/order_addcart.vue
index 77a2eded4..73021092c 100644
--- a/template/uni-app/pages/order_addcart/order_addcart.vue
+++ b/template/uni-app/pages/order_addcart/order_addcart.vue
@@ -144,24 +144,8 @@
-
-
+
+
@@ -201,9 +185,6 @@
import {
HTTP_REQUEST_URL
} from '@/config/app';
- import {
- getNavigation
- } from '@/api/public.js'
export default {
components: {
pageFooter,
@@ -266,9 +247,6 @@
computed: mapGetters(['isLogin']),
onLoad(options) {
uni.hideTabBar()
- getNavigation().then(res => {
- this.newData = res.data
- })
let that = this;
if (that.isLogin == false) {
toLogin();
@@ -968,64 +946,6 @@