瀏覽代碼

间距调整

sharp-agezi 6 年之前
父節點
當前提交
91cf25e6cd
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      pages/index/index.wxml
  2. 1 1
      pages/index/index.wxss

+ 2 - 2
pages/index/index.wxml

@@ -73,10 +73,10 @@
         <!-- 专题精选 -->
         <view class='special-box'>
           <view class='spec-title'>专题精选</view>
-          <swiper autoplay="true" interval="5000" duration="500" previous-margin="20rpx" next-margin="180rpx">
+          <swiper autoplay="true" interval="5000" duration="500" previous-margin="30rpx" next-margin="180rpx">
             <block wx:for="{{specArray}}">
               <swiper-item>
-              <view class='mar-r20' style='height:100%'>
+              <view style='height:100%;margin-right:30rpx'>
                 <image src="{{item.classify_logo}}" class="slide-image" mode="aspectFill" />
               </view>
               </swiper-item>

+ 1 - 1
pages/index/index.wxss

@@ -878,5 +878,5 @@ page{
   /* width:500rpx;
   height:260rpx; */
   display: block;
-  margin-right:20rpx;
+  margin-right:30rpx;
 }