zpj 2 жил өмнө
parent
commit
3348f6cac2

+ 6 - 0
pages.json

@@ -52,6 +52,12 @@
 			"style": {
 				"navigationBarTitleText": "订单"
 			}
+		},
+		{
+			"path": "pages/index/search-record",
+			"style": {
+				"navigationBarTitleText": "搜索"
+			}
 		}
 	],
 	"subPackages": [

+ 6 - 1
pages/index/index.vue

@@ -83,7 +83,7 @@
 			
 			
 			<!-- 类型选择 -->
-			<view class="type-list-box display-flex" :style="[{'top': (BarH + 38) + 'px','background':bgckgroundType}]">
+			<view class="type-list-box display-flex" :style="[{'background':bgckgroundType}]">
 				<view class="type-item-box view-nowrap" :class="type==item.id?'s-type':'n-type'" v-for="(item,i) in typeList" :key="i">{{item.name}}</view>
 			</view>
 			<!-- 商品列表 -->
@@ -181,6 +181,9 @@
 			    let custom = 0;
 			    custom = wx.getMenuButtonBoundingClientRect()	  
 			    let customBarH = custom.height;
+				
+				console.log(statusBarH);
+				console.log(customBarH);
 				this.BarH = statusBarH + customBarH;
 			  }
 			})
@@ -322,6 +325,8 @@
 			.type-list-box{
 				position: sticky;
 				left: 0;
+				// top: calc(var(BarH)px + 93rpx);
+				top: calc(86px + 93rpx);
 				padding: 0 24rpx 24rpx 24rpx;
 				overflow-x: scroll;
 				

+ 17 - 0
pages/index/search-record.vue

@@ -0,0 +1,17 @@
+<template>
+	<view class="seacrh-record-index">
+		<Nav :customNav='true' :bgckgroundBox='bgckgroundBox'></Nav>
+	</view>
+</template>
+
+<script>
+	export default {
+		
+	}
+</script>
+
+<style scoped lang="scss">
+	.seacrh-record-index{
+		
+	}
+</style>