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 @@ - - - - - - - {{$t(item.name)}} - - - - {{$t(item.name)}} - -
- {{cartNum}} -
-
-
-
+ + @@ -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 }} - - - - - - {{$t(item.name)}} - - - - - {{$t(item.name)}} - -
- {{countNum}} -
-
-
-
+ @@ -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 @@ - - - - - - - {{item.name}} - - - - {{item.name}} - -
- {{cartCount}} -
-
-
-
+ +
@@ -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 @@