邹能昇 3 months ago
parent
commit
68289c744f

+ 0 - 1
nova-tourism/components/homestay/index.js

@@ -358,7 +358,6 @@ Component({
                 this.setData({
                   scrollTop: event.detail.scrollTop,
                 });
-                console.log(this.data.scrollTop);
               })
               .exec();
           },

+ 3 - 3
nova-tourism/components/homestay/index.wxml

@@ -28,8 +28,8 @@
     <view class="Legendary-Information" wx:if="{{storeList.length!=0}}">
         <block>
             <view class="container">
-                <block wx:for="{{storeList}}" wx:if="{{index%2==0}}">
-                    <block wx:if="{{index == 2}}">
+                <block wx:for="{{storeList}}" wx:if="{{(index+1)%2==0}}">
+                    <block wx:if="{{index == 3}}">
                         <view class="picbox">
                             <view class="pic-2"></view>
                             <block wx:for="{{3}}">
@@ -65,7 +65,7 @@
 
             </view>
             <view class="container">
-                <block wx:for="{{storeList}}" wx:if="{{index%2==1}}">
+                <block wx:for="{{storeList}}" wx:if="{{(index+1)%2==1}}">
                     <view class="cardbox">
                         <image class="pic" src="{{item.cover}}" data-id="{{item.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl"></image>
                         <view class="textobx">

+ 1 - 1
nova-tourism/pages/index/index.less

@@ -2,7 +2,7 @@ van-tabbar-item{
   // background-color: #B1181B;
   position: relative;
   view{
-    font-size: 25rpx;
+    font-size: 20rpx;
     text-align: center;
     margin-top: 3rpx;
   }

+ 2 - 2
nova-tourism/pages/index/index.wxml

@@ -24,8 +24,8 @@
  class="custom-tabbar" active="{{ active }}" bind:change="onChange" active-color="{{tabbarList.activeColor || '#000000'}}" inactive-color="{{tabbarList.inactiveColor || '#999'}}" z-index="99">
 	<block wx:for="{{tabbarList.list}}" wx:key="index">
 		<van-tabbar-item wx:if="{{item.open}}" name="{{index}}">
-			<image slot="icon" src="{{ item.iconPath }}" mode="aspectFit" style="width:40rpx;height:40rpx;" />
-			<image  slot="icon-active" src="{{ item.selectedIconPath }}" mode="aspectFit" style="width:40rpx;height:40rpx;" />
+			<image slot="icon" src="{{ item.iconPath }}" mode="aspectFit" style="width:56rpx;height:56rpx;" />
+			<image  slot="icon-active" src="{{ item.selectedIconPath }}" mode="aspectFit" style="width:56rpx;height:56rpx;" />
 			{{item.text}}
 		</van-tabbar-item>
 	</block>

+ 1 - 1
nova-tourism/pages/index/index.wxss

@@ -1 +1 @@
-van-tabbar-item{position:relative}van-tabbar-item view{font-size:25rpx;text-align:center;margin-top:3rpx}van-tabbar-item .active{position:absolute;top:-20rpx;left:50%;transform:translate(-50%, -50%)}
+van-tabbar-item{position:relative}van-tabbar-item view{font-size:20rpx;text-align:center;margin-top:3rpx}van-tabbar-item .active{position:absolute;top:-20rpx;left:50%;transform:translate(-50%, -50%)}