shish 3 лет назад
Родитель
Сommit
a58cf10fac
2 измененных файлов с 6 добавлено и 5 удалено
  1. 3 2
      mallApp/src/pages/home/category.vue
  2. 3 3
      mallApp/src/pages/item/item.vue

+ 3 - 2
mallApp/src/pages/home/category.vue

@@ -18,6 +18,7 @@
       <view v-for="(item,index) in tabbar" :key="index" class="tab-bar-item" :class="[currentTab==index ? 'active' : '']" :data-current="index" @tap.stop="swichNav($event ,item)" >
         <text>{{item.categoryName}}</text>
       </view>
+      <view style="height:150upx"></view>
     </scroll-view>
     <block v-for="(item,index) in tabbar" :key="index" >
       <scroll-view scroll-y class="right-box" @scrolltolower="onReachBottoms" v-if="currentTab==index" >
@@ -201,7 +202,7 @@ export default {
     background: linear-gradient(to bottom,#3385FF, #fff);
     .nav{
       position:absolute;
-      top:155upx;
+      top:148upx;
       .selected{
         width:auto;
         height:60upx;
@@ -332,7 +333,7 @@ page {
   position: fixed;
   left: 0;
   z-index: 10;
-  height: 100vh;
+  height: calc(100vh - 100upx);
   background-color: #f0f2f6;
   .tab-bar-item {
     width: 200upx;

+ 3 - 3
mallApp/src/pages/item/item.vue

@@ -29,7 +29,7 @@
 					<text v-if="item.classId=='-1' || item.classId=='-3'" style="color:red;font-weight:bold;">{{ item.className || "" }}</text>
 					<text v-else>{{ item.className }}</text>
 				</div>
-				<view style="height: 120upx"></view>
+				<view style="height:180upx"></view>
 			</scroll-view>
 
 			<scroll-view scroll-y class="right-box" :scroll-into-view="scroll_into_view" scroll-with-animation="true" @scroll="scroll_detail" lower-threshold="100"	@scrolltolower="scroll_bottom">
@@ -512,7 +512,7 @@ export default {
     background: linear-gradient(to bottom,#3385FF, #fff);
 	.nav{
 		position:absolute;
-		top:155upx;
+		top:148upx;
 		.selected{
 			width:auto;
 			height:60upx;
@@ -627,7 +627,7 @@ export default {
 		overflow: hidden;
 	}
 	.tab-view {
-		height: 100%;
+		height: calc(100vh - 100upx);
 		width: 170upx;
 		flex-shrink: 0;
 		background-color: #f0f2f6;