Commit dd34161956ebf4d8da4ac947dcaa28ba5492fbe1
1 parent
5799a03f
首页页面调整
Showing
3 changed files
with
16 additions
and
8 deletions
app.wxss
pages/index/index/index.wxml
| ... | ... | @@ -132,11 +132,11 @@ |
| 132 | 132 | </navigator> |
| 133 | 133 | <view class="seckill-list"> |
| 134 | 134 | <swiper class="s_prom" indicator-dots="{{false}}" bindchange="flashSwiperChange"> |
| 135 | - <swiper-item wx:for="{{saleGoods}}" wx:key="{{index}}" class="p_swiper flex-center-around" wx:key="saleGoods"> | |
| 136 | - <navigator url="/pages/goods/goodsInfo/goodsInfo?goods_id={{aitem.goods_id}}" | |
| 135 | + <swiper-item wx:for="{{saleGoods}}" wx:key="{{index}}" class="p_swiper " wx:key="saleGoods"> | |
| 136 | + <navigator class="ib m-left" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{aitem.goods_id}}" | |
| 137 | 137 | wx:for="{{item}}" wx:key="item" wx:for-item="aitem" wx:for-index="aind" |
| 138 | 138 | > |
| 139 | - <view class="imgview"> | |
| 139 | + <view class="imgview "> | |
| 140 | 140 | <image src="{{url+aitem.original_img}}" lazy-load="true" data-errorimg="saleGoods[{{index}}][{{aind}}].original_img" |
| 141 | 141 | binderror="bind_bnerr3" data-img="{{aitem.original_img}}"></image> |
| 142 | 142 | ... | ... |
pages/index/index/index.wxss
| ... | ... | @@ -267,7 +267,9 @@ left: 10%; |
| 267 | 267 | width: 203rpx; |
| 268 | 268 | height: 226rpx; |
| 269 | 269 | position: relative; |
| 270 | - overflow: hidden | |
| 270 | + overflow: hidden; | |
| 271 | + | |
| 272 | + | |
| 271 | 273 | } |
| 272 | 274 | .imgview image{ |
| 273 | 275 | width: 203rpx; |
| ... | ... | @@ -660,7 +662,7 @@ margin-top: 10rpx; |
| 660 | 662 | margin-top: 6rpx; |
| 661 | 663 | } |
| 662 | 664 | .seckill-list view.translation{ |
| 663 | - width:108rpx;height:20rpx; border-radius: 20rpx;background:#e0e0e0;margin: auto;line-height: 20rpx; | |
| 665 | + width:108rpx;height:20rpx; border-radius: 20rpx;background:#dfdfdf;margin: auto;line-height: 20rpx; | |
| 664 | 666 | } |
| 665 | 667 | .seckill-list view.spot{ |
| 666 | 668 | width:10rpx; |
| ... | ... | @@ -683,12 +685,12 @@ left: 43%; |
| 683 | 685 | } |
| 684 | 686 | |
| 685 | 687 | .translation{ |
| 686 | - width:108rpx;height:20rpx; border-radius: 20rpx;background:#e0e0e0;line-height: 20rpx; | |
| 687 | - bottom: 45rpx; | |
| 688 | + width:108rpx;height:20rpx; border-radius: 20rpx;background:#b8d1d6;line-height: 20rpx; | |
| 689 | + bottom: 12rpx; | |
| 688 | 690 | left: 43%; |
| 689 | 691 | } |
| 690 | 692 | .translations{ |
| 691 | - width:108rpx;height:20rpx; border-radius: 20rpx;background:#e0e0e0;line-height: 20rpx; | |
| 693 | + width:108rpx;height:20rpx; border-radius: 20rpx;background:#dfdfdf;line-height: 20rpx; | |
| 692 | 694 | bottom: 25rpx; |
| 693 | 695 | left: 43%; |
| 694 | 696 | } |
| ... | ... | @@ -703,4 +705,7 @@ left: 43%; |
| 703 | 705 | @keyframes sport { |
| 704 | 706 | 0% {transform: translateY(80rpx);opacity: 0;} |
| 705 | 707 | 100% {transform: translateY(0rpx);opacity: 1} |
| 708 | +} | |
| 709 | +.m-left{ | |
| 710 | + margin-left: 18rpx; | |
| 706 | 711 | } |
| 707 | 712 | \ No newline at end of file | ... | ... |