Procházet zdrojové kódy

fix: 修复首发新品轮播图尺寸变形

yll před 4 roky
rodič
revize
98a82f1bb7

+ 2 - 2
view/xcx/pages/index/index.wxml

@@ -2,7 +2,7 @@
 <view class="indexs">
   <view class="indexTip" style="top:{{navH+13}}rpx" hidden="{{iShiddenTip}}">
     <view class="tip acea-row row-between-wrapper">
-      <view class="text">点击“<image src="/images/spot.png"></image>”添加到我的小程序, 微信首页下拉即可访问商城。</view>
+      <view class="text">点击“<image src="/images/spot.png"></image>”添加到我的小程序, 微信首页下拉即可访问美天旺。</view>
       <view class="iconfont icon-guanbi1" bindtap="closeTip"></view>
     </view> 
   </view>
@@ -239,7 +239,7 @@
             <swiper autoplay="{{autoplay}}" circular="{{circular}}" interval="{{intervalNew}}" duration="{{durationNew}}"     previous-margin="110px" next-margin="110px" bindchange="bindchange">
               <swiper-item wx:for="{{info.firstList}}" wx:key='index'>
                 <view bindtap="goDetailType" data-items='{{item}}' class="item {{avtiveIndex===index?'active':'quiet'}}">
-                  <image src="{{item.image}}"></image>
+                  <image src="{{item.image}}" mode="widthFix"></image>
                   <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type ==='1'}}">秒杀</text>
                   <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type === '2'}}">砍价</text>
                   <text class="pictrue_log_medium pictrue_log_class" wx:if="{{item.activity && item.activity.type === '3'}}">拼团</text>

+ 1 - 1
view/xcx/pages/index/index.wxss

@@ -97,7 +97,7 @@ page{background-color:#fff!important;}
 .indexs .newProducts .newSwiper .item {width:100%;height:100%;display: block;position:relative;}
 .indexs .newProducts .newSwiper .item.active{transform: none;transition: all 0.2s ease-in 0s;}
 .indexs .newProducts .newSwiper .item.quiet{ transform: scale(0.76);transition: all 0.2s ease-in 0s;}
-.indexs .newProducts .newSwiper .item image {width: 100%;height: 100%;display: block;}
+.indexs .newProducts .newSwiper .item image {width: 100%; display: block;}
 .indexs .newProducts .newSwiper .text {width: 355rpx;margin: 20rpx auto 0 auto;}
 .indexs .newProducts .newSwiper .text .name {font-size: 28rpx;color: #282828;
   text-align: center;}