Commit a1d890b8c9217a07801680c0b71758eee0d0e5ff
1 parent
38b6bdf1
底部导航和分类样式调整
Showing
4 changed files
with
104 additions
and
46 deletions
pages/goods/categoryList/categoryList.wxml
@@ -98,7 +98,7 @@ | @@ -98,7 +98,7 @@ | ||
98 | <block wx:elif="{{is_used_share == 1}}"> | 98 | <block wx:elif="{{is_used_share == 1}}"> |
99 | <block wx:if="{{is_show_pl || is_show_gb || is_show_pp }}"> | 99 | <block wx:if="{{is_show_pl || is_show_gb || is_show_pp }}"> |
100 | <!-- 新版分类头部 --> | 100 | <!-- 新版分类头部 --> |
101 | - <view class="xc-search-box flex-center white_b"> | 101 | + <view class="xc-search-box flex-center white_b" style="position:fixed;top:0;z-index:99999"> |
102 | <view class="share-height t-c" bindtap="getScancode" > | 102 | <view class="share-height t-c" bindtap="getScancode" > |
103 | <image class="scanning_black-img"src="{{iurl}}/miniapp/images/goodscategory/scanning_black.png"></image> | 103 | <image class="scanning_black-img"src="{{iurl}}/miniapp/images/goodscategory/scanning_black.png"></image> |
104 | <view class="fs24"> | 104 | <view class="fs24"> |
@@ -113,22 +113,25 @@ | @@ -113,22 +113,25 @@ | ||
113 | </view> | 113 | </view> |
114 | </view> | 114 | </view> |
115 | 115 | ||
116 | - <!-- 分类项目内容 --> | ||
117 | - <view class="flex project_height" style="margin-left:-10rpx;margin-bottom:120rpx"> | 116 | + |
117 | + <!-- 分类项目内容 22 --> | ||
118 | + <view class="flex project_height" style="margin-left:-10rpx;margin-bottom:120rpx" id="two_type"> | ||
118 | <!-- 分类项目的类型 --> | 119 | <!-- 分类项目的类型 --> |
119 | - <view class="project_type" style="background-color:#eee"> | ||
120 | - <view class="project_type-frame" style="margin-bottom:120rpx"> | ||
121 | - <view wx:if="{{is_show_gb}}" class="{{status_show == 1?'is_show_class':''}}"> | ||
122 | - <view style="{{status_show == 1?'position: absolute;height: 52rpx;width: 6rpx;background-color: red;left: 0; margin-top: 24rpx;':''}}"></view> | ||
123 | - <view bindtap="click_classify" style="{{status_show == 1?'margin-top:0':'margin-top:40rpx'}}" class="share_type fs30 flex-space-between xc-letter-spacing {{select_classify_on==223?'select_classify':''}}"data-index="223"data-name="国家" wx:if="{{is_country}}"> | ||
124 | - <text>国</text><text>家</text> | 120 | + <view class="project_type" style="background-color:#eee;height:88%;overflow-y:auto;position:fixed;left:0;z-index:999999;top:126rpx;"> |
121 | + <view class="project_type-frame" style="margin-bottom:120rpx;"> | ||
122 | + <view wx:if="{{is_show_gb}}" class="{{status_show == 1?'':''}}"> | ||
123 | + <!-- <view style="{{status_show == 1?'position: absolute;height: 52rpx;width: 6rpx;background-color: red;left: 0; margin-top: 24rpx;':''}}"></view> --> | ||
124 | + <view bindtap="click_classify" style="{{status_show == 1?'margin-top:0':'margin-top:40rpx'}}" class="fs30 flex-space-between {{select_classify_on==223?'select_classify':''}}"data-index="223"data-name="国家" wx:if="{{is_country}}"> | ||
125 | + | ||
126 | + <view class="tab-bar-item sort-name ellipsis-1" style="letter-spacing:50rpx;">国家</view> | ||
125 | 127 | ||
126 | </view> | 128 | </view> |
127 | </view> | 129 | </view> |
128 | - <view wx:if="{{is_show_pp}}" class="{{status_show == 2?'is_show_class':''}}"> | ||
129 | - <view style="{{status_show == 2?'position: absolute;height: 52rpx;width: 6rpx;background-color: red;left: 0; margin-top: 24rpx;':''}}"></view> | ||
130 | - <view bindtap="click_classify" class="{{select_classify_on==220?'select_classify':''}} share_type fs30 flex-space-between xc-letter-spacing" wx:if="{{is_brand}}"data-index="220"data-name="品牌"> | ||
131 | - <text>品</text><text>牌</text> | 130 | + <view wx:if="{{is_show_pp}}" class="{{status_show == 2?'':''}}"> |
131 | + <!-- <view style="{{status_show == 2?'position: absolute;height: 52rpx;width: 6rpx;background-color: red;left: 0; margin-top: 24rpx;':''}}"></view> --> | ||
132 | + <view bindtap="click_classify" class="{{select_classify_on==220?'select_classify':''}} fs30 flex-space-between " wx:if="{{is_brand}}"data-index="220"data-name="品牌"> | ||
133 | + | ||
134 | + <view class="tab-bar-item sort-name ellipsis-1" style="letter-spacing:50rpx;">品牌</view> | ||
132 | </view> | 135 | </view> |
133 | </view> | 136 | </view> |
134 | <view wx:if="{{is_show_pl}}"> | 137 | <view wx:if="{{is_show_pl}}"> |
@@ -136,17 +139,10 @@ | @@ -136,17 +139,10 @@ | ||
136 | <view wx:for="{{one_level_classify}}" wx:for-item="ittms" > | 139 | <view wx:for="{{one_level_classify}}" wx:for-item="ittms" > |
137 | <view class="{{ittms.items.is_show_class == true?'is_show_class':''}}"> | 140 | <view class="{{ittms.items.is_show_class == true?'is_show_class':''}}"> |
138 | <!-- 添加左边红色条 --> | 141 | <!-- 添加左边红色条 --> |
139 | - <view style="{{ittms.items.is_show_class == true?'position: absolute;height: 52rpx;width: 6rpx;background-color: red;left: 0; margin-top: 24rpx;':''}}"></view> | ||
140 | - <view bindtap="click_classify" data-arr="{{ittms.array}}" data-cid="{{ittms.items.id}}" data-pid="0" class="{{select_classify_on==index?'select_classify width80':''}} share_type fs30 t-c {{ittms.items.name.length==2? 'world_sn':''}} {{select_classify_on==index&&ittms.items.name.length==2?'text-indent':''}} {{select_classify_on==index&&ittms.items.name.length==3?'text3':''}}"data-index="{{index}}"data-name="{{ittms.items.mobile_name}}"> | ||
141 | - <view class="{{ittms.items.name.length==3?'flex-center-around':'flex-space-between'}}" wx:if="{{ittms.items.name.length<4}}"> | ||
142 | - <view wx:for="{{ittms.items.name}}" wx:for-item="name"wx:for-index="index"> | ||
143 | - <view> | ||
144 | - {{name}} | ||
145 | - </view> | ||
146 | - </view> | ||
147 | - | ||
148 | - </view> | ||
149 | - <view wx:else class="sort-name ellipsis-1">{{ittms.items.name}}</view> | 142 | + <!-- <view style="{{ittms.items.is_show_class == true?'position: absolute;height: 52rpx;width: 6rpx;background-color: red;left: 0; margin-top: 24rpx;':''}}"></view> --> |
143 | + <view bindtap="click_classify" data-arr="{{ittms.array}}" data-cid="{{ittms.items.id}}" data-pid="0" class="{{select_classify_on==index?'select_classify width80':''}} fs30 t-c {{select_classify_on==index&&ittms.items.name.length==2?'text-indent':''}} {{select_classify_on==index&&ittms.items.name.length==3?'text3':''}}"data-index="{{index}}"data-name="{{ittms.items.mobile_name}}"> | ||
144 | + | ||
145 | + <view class="tab-bar-item sort-name ellipsis-1">{{ittms.items.name}}</view> | ||
150 | </view> | 146 | </view> |
151 | 147 | ||
152 | </view> | 148 | </view> |
@@ -156,7 +152,7 @@ | @@ -156,7 +152,7 @@ | ||
156 | 152 | ||
157 | </view> | 153 | </view> |
158 | <!-- 分类项目的内容 --> | 154 | <!-- 分类项目的内容 --> |
159 | - <view class="classify_content"> | 155 | + <view class="classify_content" style="margin-left:27%;margin-top:130rpx"> |
160 | <!-- 国家的样式 --> | 156 | <!-- 国家的样式 --> |
161 | <block wx:if="{{select_classify_on==223&&is_show_gb}}"> | 157 | <block wx:if="{{select_classify_on==223&&is_show_gb}}"> |
162 | <view class="classify_name fs28 flex-space-between"> | 158 | <view class="classify_name fs28 flex-space-between"> |
@@ -292,17 +288,17 @@ | @@ -292,17 +288,17 @@ | ||
292 | <!-- 分类项目内容 --> | 288 | <!-- 分类项目内容 --> |
293 | <view class="flex project_height" style="margin-left:-10rpx;"> | 289 | <view class="flex project_height" style="margin-left:-10rpx;"> |
294 | <!-- 分类项目的类型 --> | 290 | <!-- 分类项目的类型 --> |
295 | - <view class="project_type" style="background-color:#eee;height:88%;overflow-y:auto;position:fixed;left:0;z-index:999999;top:126rpx;"> | 291 | + <view class="project_type" style="background-color:#eee;height:88%;overflow-y:auto;position:fixed;left:0;z-index:999999;top:126rpx;" id="thress_type3"> |
296 | <view class="project_type-frame" style="margin-bottom:120rpx;"> | 292 | <view class="project_type-frame" style="margin-bottom:120rpx;"> |
297 | <view wx:if="{{is_show_gb}}"> | 293 | <view wx:if="{{is_show_gb}}"> |
298 | <view bindtap="click_classify" class="tab-bar-item {{select_classify_on==223 ? 'active' : ''}}" data-current="223" data-index="223" data-name="国家" wx:if="{{is_country}}"> | 294 | <view bindtap="click_classify" class="tab-bar-item {{select_classify_on==223 ? 'active' : ''}}" data-current="223" data-index="223" data-name="国家" wx:if="{{is_country}}"> |
299 | - <text>国</text><text>家</text> | 295 | + <text style="letter-spacing:50rpx;">国家</text> |
300 | </view> | 296 | </view> |
301 | </view> | 297 | </view> |
302 | <view wx:if="{{is_show_pp}}"> | 298 | <view wx:if="{{is_show_pp}}"> |
303 | 299 | ||
304 | <view bindtap="click_classify" class="tab-bar-item {{select_classify_on==220 ? 'active' : ''}}" wx:if="{{is_brand}}" data-current="220" data-index="220" data-name="品牌"> | 300 | <view bindtap="click_classify" class="tab-bar-item {{select_classify_on==220 ? 'active' : ''}}" wx:if="{{is_brand}}" data-current="220" data-index="220" data-name="品牌"> |
305 | - <text>品</text><text>牌</text> | 301 | + <text style="letter-spacing:50rpx;">品牌</text> |
306 | </view> | 302 | </view> |
307 | </view> | 303 | </view> |
308 | <view wx:if="{{is_show_pl}}"> | 304 | <view wx:if="{{is_show_pl}}"> |
@@ -400,7 +396,7 @@ | @@ -400,7 +396,7 @@ | ||
400 | <!-- <view class="classify_content-frame flex-wrap" style="width:100%;overflow:hidden;heigth:100%;"> --> | 396 | <!-- <view class="classify_content-frame flex-wrap" style="width:100%;overflow:hidden;heigth:100%;"> --> |
401 | 397 | ||
402 | <!-- <view class="null" style="width:100%;margin-top:70rpx;"></view> --> | 398 | <!-- <view class="null" style="width:100%;margin-top:70rpx;"></view> --> |
403 | - <scroll-view scroll-y scroll-top="{{scrollTop}}" bindscrolltolower='scrollLower' style="height:{{windowHeight}};position:absolute;margin-top:70rpx;top:120rpx;bottom:0;rigth:0;left:26%;width:73%;margin-bottom:100rpx;"> | 399 | + <scroll-view scroll-y scroll-top="{{scrollTop}}" bindscrolltolower='scrollLower' style="height:{{windowHeight}};position:absolute;margin-top:70rpx;top:140rpx;bottom:0;rigth:0;left:26%;width:73%;margin-bottom:100rpx;"> |
404 | <view class="null" style="width:100%;height:1px;"></view> | 400 | <view class="null" style="width:100%;height:1px;"></view> |
405 | <!-- goodslist --> | 401 | <!-- goodslist --> |
406 | <view class="choice_list" style="height:{{msgStatus != true?'100%':''}}"> | 402 | <view class="choice_list" style="height:{{msgStatus != true?'100%':''}}"> |
pages/goods/categoryList/categoryList.wxss
@@ -234,6 +234,16 @@ margin-top: 40rpx; | @@ -234,6 +234,16 @@ margin-top: 40rpx; | ||
234 | margin-left:28rpx; | 234 | margin-left:28rpx; |
235 | } | 235 | } |
236 | 236 | ||
237 | + | ||
238 | +#two_type .xc-letter-spacing{ | ||
239 | + padding-left: 20rpx; | ||
240 | + padding-right: 29rpx; | ||
241 | + width: 58%; | ||
242 | + margin: auto; | ||
243 | + margin-top: 40rpx; | ||
244 | + margin-left:28rpx; | ||
245 | + } | ||
246 | + | ||
237 | /* 左边菜单点击样式 20200601 luca */ | 247 | /* 左边菜单点击样式 20200601 luca */ |
238 | .is_show_class{ | 248 | .is_show_class{ |
239 | width: 100%; | 249 | width: 100%; |
@@ -434,35 +444,79 @@ margin: auto; | @@ -434,35 +444,79 @@ margin: auto; | ||
434 | z-index: 10; */ | 444 | z-index: 10; */ |
435 | } | 445 | } |
436 | 446 | ||
437 | -.tab-bar-item { | 447 | +#thress_type3 .tab-bar-item { |
438 | width: 200rpx; | 448 | width: 200rpx; |
439 | height: 110rpx; | 449 | height: 110rpx; |
440 | - /* background: #f6f6f6; */ | ||
441 | box-sizing: border-box; | 450 | box-sizing: border-box; |
442 | display: flex; | 451 | display: flex; |
443 | align-items: center; | 452 | align-items: center; |
444 | - justify-content: center; | ||
445 | - font-size: 26rpx; | 453 | + justify-content: left; |
454 | + font-size: 30rpx; | ||
455 | + padding-left: 30rpx; | ||
446 | color: #444; | 456 | color: #444; |
447 | font-weight: 400; | 457 | font-weight: 400; |
448 | -} | 458 | +} |
449 | 459 | ||
450 | -.active { | 460 | +#thress_type3 .active { |
451 | position: relative; | 461 | position: relative; |
452 | color: #000; | 462 | color: #000; |
453 | font-size: 30rpx; | 463 | font-size: 30rpx; |
454 | font-weight: 600; | 464 | font-weight: 600; |
455 | - background: #fcfcfc; | ||
456 | -} | 465 | + background: #fff; |
466 | +} | ||
457 | 467 | ||
458 | -.active::before { | 468 | +#thress_type3 .active::before { |
459 | content: ""; | 469 | content: ""; |
460 | position: absolute; | 470 | position: absolute; |
461 | border-left: 8rpx solid #E41F19; | 471 | border-left: 8rpx solid #E41F19; |
462 | height: 50rpx; | 472 | height: 50rpx; |
463 | left: 0; | 473 | left: 0; |
464 | -} | 474 | +} |
475 | + | ||
476 | + | ||
477 | + | ||
478 | + | ||
479 | + | ||
480 | + | ||
481 | +#two_type .tab-bar-item { | ||
482 | + width: 200rpx; | ||
483 | + height: 110rpx; | ||
484 | + box-sizing: border-box; | ||
485 | + display: flex; | ||
486 | + align-items: center; | ||
487 | + justify-content: left; | ||
488 | + font-size: 30rpx; | ||
489 | + padding-left: 30rpx; | ||
490 | + color: #444; | ||
491 | + font-weight: 400; | ||
492 | +} | ||
493 | +#two_type .select_classify { | ||
494 | + position: relative; | ||
495 | + color: #000; | ||
496 | + font-size: 30rpx; | ||
497 | + font-weight: 600; | ||
498 | + background: #fff; | ||
499 | +} | ||
500 | + | ||
501 | +#two_type .select_classify::before { | ||
502 | + content: ""; | ||
503 | + position: absolute; | ||
504 | + border-left: 8rpx solid #E41F19; | ||
505 | + height: 50rpx; | ||
506 | + left: 0; | ||
507 | + top:26rpx; | ||
508 | +} | ||
509 | + | ||
510 | + | ||
511 | + | ||
512 | +#two_type .is_show_class{ | ||
513 | + width: 100%; | ||
514 | + background-color: white; | ||
515 | + color:black; | ||
516 | + font-weight: 700; | ||
517 | + height: 110rpx; | ||
465 | 518 | ||
519 | + } | ||
466 | 520 | ||
467 | /* 风格三商品列表样式引入 */ | 521 | /* 风格三商品列表样式引入 */ |
468 | @import "../goodsList/goodsList.wxss"; | 522 | @import "../goodsList/goodsList.wxss"; |
469 | \ No newline at end of file | 523 | \ No newline at end of file |
pages/tabbar/tabbar.wxml
1 | <!--pages/tabbar.wxml--> | 1 | <!--pages/tabbar.wxml--> |
2 | <template name="tabBar"> | 2 | <template name="tabBar"> |
3 | <!-- 如果是自定义的话 --> | 3 | <!-- 如果是自定义的话 --> |
4 | - <view hidden="{{tabBar.iscustom=='2'}}" class="tab-bar" style="width:100%;height:{{tabBar.isIpx ? '168rpx' : '100rpx'}};position:fixed;color: {{tabBar.color}}; background: {{tabBar.backgroundColor}}; bottom: 0;z-index:9999999;padding:2px 0;"> | 4 | + <view hidden="{{tabBar.iscustom=='2'}}" class="tab-bar" style="width:100%;height:{{tabBar.isIpx ? '168rpx' : '100rpx'}};position:fixed;color: {{tabBar.color}}; background: {{tabBar.backgroundColor}}; bottom: 0;z-index:9999999;"> |
5 | <block wx:for="{{tabBar.list}}" wx:key="weappurl"> | 5 | <block wx:for="{{tabBar.list}}" wx:key="weappurl"> |
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:2px 0;"> | ||
9 | - <view wx:if="{{item.nav_name=='购物车'}}" style="background-color: red;color: #fff;font-size: 20rpx;border-radius: 40rpx;width: 50rpx;height: 30rpx;padding: 5rpx;position: absolute;z-index: 100;right: 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"> | ||
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%;"> |
@@ -16,8 +16,8 @@ | @@ -16,8 +16,8 @@ | ||
16 | </navigator> | 16 | </navigator> |
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:2px 0;"> | ||
20 | - <view wx:if="{{item.nav_name=='购物车'}}" style="background-color: red;color: #fff;font-size: 20rpx;border-radius: 40rpx;width: 50rpx;height: 30rpx;padding: 5rpx;position: absolute;z-index: 100;right: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"> | ||
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 style="background-color: red;color: #fff;font-size: 20rpx;border-radius: 40rpx;width: 50rpx;height: 30rpx;padding: 5rpx;position: fixed;z-index: 100;left:63%"> | 84 | + <view class="menu_default_red"> |
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 style="background-color: red;color: #fff;font-size: 20rpx;border-radius: 40rpx;width: 50rpx;height: 30rpx;padding: 5rpx;position: fixed;z-index: 100;left:63%"> | 94 | + <view class="menu_default_red"> |
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> |
pages/tabbar/tabbar.wxss
1 | +.menu_red{ | ||
2 | + | ||
3 | + 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; | ||
4 | +} | ||
5 | + | ||
6 | +.menu_default_red{ | ||
7 | + 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% | ||
8 | +} | ||
0 | \ No newline at end of file | 9 | \ No newline at end of file |