Commit 444f3cbb2288a5e45bbe2d7f5c9d2e82a5664a7e

Authored by season
1 parent 117aca77

分类导航

Showing 1 changed file with 4 additions and 4 deletions
pages/tabbar/tabbar.wxml
@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 6
7 <block wx:if="{{!item.active}}"> 7 <block wx:if="{{!item.active}}">
8 <navigator url="{{item.weappurl}}" open-type="redirect" class="tabbar_item {{item.clas}}" style="position:relative;width:{{100 / tabBar.length}}%;height:100%;float:left;text-align:center;padding:5px 0;"> 8 <navigator url="{{item.weappurl}}" open-type="redirect" class="tabbar_item {{item.clas}}" style="position:relative;width:{{100 / tabBar.length}}%;height:100%;float:left;text-align:center;padding:5px 0;">
9 - <view wx:if="{{item.nav_name=='购物车'}}" class="menu_red"> 9 + <view wx:if="{{item.nav_name=='购物车'}}" style="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;">
10 {{tabBar.cartGoodsNum}} 10 {{tabBar.cartGoodsNum}}
11 </view> 11 </view>
12 <view style="width:35%;height:30px;margin-left:33%;"> 12 <view style="width:35%;height:30px;margin-left:33%;">
@@ -17,7 +17,7 @@ @@ -17,7 +17,7 @@
17 </block> 17 </block>
18 <block wx:else> 18 <block wx:else>
19 <view class="tabbar_item {{item.clas}}" style="color: {{item.selectedColor? item.selectedColor :tabBar.selectedColor}};position:relative;width:{{100 / tabBar.length}}%;height:100%;float:left;text-align:center;padding:5px 0;"> 19 <view class="tabbar_item {{item.clas}}" style="color: {{item.selectedColor? item.selectedColor :tabBar.selectedColor}};position:relative;width:{{100 / tabBar.length}}%;height:100%;float:left;text-align:center;padding:5px 0;">
20 - <view wx:if="{{item.nav_name=='购物车'}}" class="menu_red"> 20 + <view wx:if="{{item.nav_name=='购物车'}}" style="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;">
21 {{tabBar.cartGoodsNum}} 21 {{tabBar.cartGoodsNum}}
22 </view> 22 </view>
23 <view style="width:35%;height:30px;margin-left:33%;"> 23 <view style="width:35%;height:30px;margin-left:33%;">
@@ -81,7 +81,7 @@ @@ -81,7 +81,7 @@
81 <!-- 3 --> 81 <!-- 3 -->
82 <block wx:if="{{tabBar.active!='/pages/cart/cart/cart'}}"> 82 <block wx:if="{{tabBar.active!='/pages/cart/cart/cart'}}">
83 <navigator url="/pages/cart/cart/cart" open-type="redirect" class="tabbar_item {{tabBar.clas}}" style="position:relative;width:25%;height:100%;float:left;text-align:center;padding:2px 0;"> 83 <navigator url="/pages/cart/cart/cart" open-type="redirect" class="tabbar_item {{tabBar.clas}}" style="position:relative;width:25%;height:100%;float:left;text-align:center;padding:2px 0;">
84 - <view class="menu_default_red"> 84 + <view style="background-color: red;color: #fff;font-size: 20rpx;border-radius: 50%;width: 40rpx;height: 40rpx;line-heith:40rpx;position: fixed;z-index: 100;left:63%">
85 {{tabBar.cartGoodsNum}} 85 {{tabBar.cartGoodsNum}}
86 </view><view style="width:30%;height:57rpx;margin-left:35%;"> 86 </view><view style="width:30%;height:57rpx;margin-left:35%;">
87 <image src="{{tabBar.url}}/miniapp/images/bar/car.png" class="img" style="width:100%;height:100%"></image> 87 <image src="{{tabBar.url}}/miniapp/images/bar/car.png" class="img" style="width:100%;height:100%"></image>
@@ -91,7 +91,7 @@ @@ -91,7 +91,7 @@
91 </block> 91 </block>
92 <block wx:else> 92 <block wx:else>
93 <view class="tabbar_item {{tabBar.clas}}" style="color: #f23030;position:relative;width:25%;height:100%;float:left;text-align:center;padding:2px 0;"> 93 <view class="tabbar_item {{tabBar.clas}}" style="color: #f23030;position:relative;width:25%;height:100%;float:left;text-align:center;padding:2px 0;">
94 - <view class="menu_default_red"> 94 + <view style="background-color: red;color: #fff;font-size: 20rpx;border-radius: 50%;width: 40rpx;height: 40rpx;line-heith:40rpx;position: fixed;z-index: 100;left:63%">
95 {{tabBar.cartGoodsNum}} 95 {{tabBar.cartGoodsNum}}
96 </view><view style="width:30%;height:57rpx;margin-left:35%;"> 96 </view><view style="width:30%;height:57rpx;margin-left:35%;">
97 <image src="{{tabBar.url}}/miniapp/images/bar/car_on.png" class="img" style="width:100%;height:100%"></image> 97 <image src="{{tabBar.url}}/miniapp/images/bar/car_on.png" class="img" style="width:100%;height:100%"></image>