Commit aab086265bdc448f5c5e889bac8f54643e863289

Authored by yvan.ni
1 parent a0960568

1 购物车的样式的修复

custom-tab-bar/index.wxml
1 1 <!-- 如果是自定义的话 -->
2   -<view class="main_bar" style=" background: {{backgroundColor}}; font-size: 30rpx;">
  2 +<view class="main_bar" style=" background: {{backgroundColor}}; font-size: 23rpx;">
3 3 <block wx:for="{{list}}" wx:for-index="idx">
4 4 <view data-url="{{item.weappurl}}" bindtap="nav_goto" class="tabbar_item" data-act="{{active==idx?1:0}}"
5 5 style="width:{{100 / list.length}}%;color: {{active==idx?fontcolor_sele:fontcolor}};">
6 6 <view wx:if="{{item.nav_name=='购物车'}}" class="cart_num" >{{cartGoodsNum}} </view>
7   - <view class="tab_img" style="margin-top: 10rpx;">
  7 + <view class="tab_img" style="margin-top: 6rpx;">
8 8 <view class="nav_imgage" style="background-image: url({{active==idx?item.src_sele:item.src}});"></view>
9 9 </view>
10   - <view style="height:20px;line-height:15px; margin-top: 10rpx;">
  10 + <view style="height:20px;line-height:15px; margin-top: 2rpx;">
11 11 {{item.nav_name}}
12 12 </view>
13 13 </view>
... ...
custom-tab-bar/index.wxss
... ... @@ -6,7 +6,7 @@
6 6 }
7 7 .tab_img{display: flex; justify-content: center;align-items: center}
8 8 .nav_imgage{
9   - height: 54rpx; width: 54rpx;background-position: center;background-repeat: no-repeat;background-size: auto 85%;
  9 + height: 58rpx; width: 58rpx;background-position: center;background-repeat: no-repeat;background-size: auto 92%;
10 10 }
11 11 .cart_num{
12 12 top:0;background-color: red;color: #fff;font-size: 20rpx;border-radius: 50%;width: 40rpx;line-height:40rpx;height: 40rpx;position: absolute;z-index: 100;right:30rpx;
... ...
pages/cart/cart/cart.wxss
... ... @@ -142,7 +142,7 @@ radio {
142 142 height: 110rpx;
143 143 position: fixed;
144 144 left: 0;
145   - bottom: 130rpx;
  145 + bottom: 110rpx;
146 146 font-size: 28rpx;
147 147 color: #666;
148 148 background-color: rgb(255, 255, 255);
... ...