Parcourir la source

产品分类列表添加底部导航

gcz il y a 2 ans
Parent
commit
49ac0cfb97
1 fichiers modifiés avec 9 ajouts et 4 suppressions
  1. 9 4
      shopping/producTypetList.vue

+ 9 - 4
shopping/producTypetList.vue

@@ -1,12 +1,13 @@
 <template>
 	<view class="">
-		<u-navbar
+		<view class="" :style="{height: navHeight+'px' }"></view>
+	<!-- 	<u-navbar
 			:placeholder="true"
 			title="产品"
 			:autoBack="true"
 			 :safeAreaInsetTop="true"
 		>
-		</u-navbar>
+		</u-navbar> -->
 		<view class="search-wrap">
 			<u-search
 				placeholder="请输入搜索的商品" 
@@ -89,19 +90,20 @@
 				</mescroll-body>
 			</view>
 		</view>
-		<!-- <tabbar :tabbarIndexProps="Number(1)" /> -->
+		<tabbar :tabbarIndexProps="Number(1)" />
 		<cartfixed ref="cartfixed" @getCartList="getCartList" />
 		<u-toast ref="uToast"></u-toast>
 	</view>
 </template>
 
 <script>
+	import { systemInfo } from "@/mixin.js";
 	// 引入mescroll-mixins.js
 	import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
 	import tabbar from "../components/tabbar.vue";
 	import cartfixed from "../components/cartfixed.vue"
 	export default {
-		mixins: [MescrollMixin], // 使用mixin
+		mixins: [MescrollMixin,systemInfo], // 使用mixin
 		components: {
 			tabbar,
 			cartfixed
@@ -154,6 +156,9 @@
 				immediate:false
 			}
 		},
+		onLoad() {
+			this.getSystemInfo();
+		},
 		onShow() {
 			this.getgoodsTypeTree();
 			this.$refs.cartfixed.getCartList();