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 | 98 | <block wx:elif="{{is_used_share == 1}}"> |
99 | 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 | 102 | <view class="share-height t-c" bindtap="getScancode" > |
103 | 103 | <image class="scanning_black-img"src="{{iurl}}/miniapp/images/goodscategory/scanning_black.png"></image> |
104 | 104 | <view class="fs24"> |
... | ... | @@ -113,22 +113,25 @@ |
113 | 113 | </view> |
114 | 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 | 128 | </view> |
127 | 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 | 135 | </view> |
133 | 136 | </view> |
134 | 137 | <view wx:if="{{is_show_pl}}"> |
... | ... | @@ -136,17 +139,10 @@ |
136 | 139 | <view wx:for="{{one_level_classify}}" wx:for-item="ittms" > |
137 | 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 | 146 | </view> |
151 | 147 | |
152 | 148 | </view> |
... | ... | @@ -156,7 +152,7 @@ |
156 | 152 | |
157 | 153 | </view> |
158 | 154 | <!-- 分类项目的内容 --> |
159 | - <view class="classify_content"> | |
155 | + <view class="classify_content" style="margin-left:27%;margin-top:130rpx"> | |
160 | 156 | <!-- 国家的样式 --> |
161 | 157 | <block wx:if="{{select_classify_on==223&&is_show_gb}}"> |
162 | 158 | <view class="classify_name fs28 flex-space-between"> |
... | ... | @@ -292,17 +288,17 @@ |
292 | 288 | <!-- 分类项目内容 --> |
293 | 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 | 292 | <view class="project_type-frame" style="margin-bottom:120rpx;"> |
297 | 293 | <view wx:if="{{is_show_gb}}"> |
298 | 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 | 296 | </view> |
301 | 297 | </view> |
302 | 298 | <view wx:if="{{is_show_pp}}"> |
303 | 299 | |
304 | 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 | 302 | </view> |
307 | 303 | </view> |
308 | 304 | <view wx:if="{{is_show_pl}}"> |
... | ... | @@ -400,7 +396,7 @@ |
400 | 396 | <!-- <view class="classify_content-frame flex-wrap" style="width:100%;overflow:hidden;heigth:100%;"> --> |
401 | 397 | |
402 | 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 | 400 | <view class="null" style="width:100%;height:1px;"></view> |
405 | 401 | <!-- goodslist --> |
406 | 402 | <view class="choice_list" style="height:{{msgStatus != true?'100%':''}}"> | ... | ... |
pages/goods/categoryList/categoryList.wxss
... | ... | @@ -234,6 +234,16 @@ margin-top: 40rpx; |
234 | 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 | 247 | /* 左边菜单点击样式 20200601 luca */ |
238 | 248 | .is_show_class{ |
239 | 249 | width: 100%; |
... | ... | @@ -434,35 +444,79 @@ margin: auto; |
434 | 444 | z-index: 10; */ |
435 | 445 | } |
436 | 446 | |
437 | -.tab-bar-item { | |
447 | +#thress_type3 .tab-bar-item { | |
438 | 448 | width: 200rpx; |
439 | 449 | height: 110rpx; |
440 | - /* background: #f6f6f6; */ | |
441 | 450 | box-sizing: border-box; |
442 | 451 | display: flex; |
443 | 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 | 456 | color: #444; |
447 | 457 | font-weight: 400; |
448 | -} | |
458 | +} | |
449 | 459 | |
450 | -.active { | |
460 | +#thress_type3 .active { | |
451 | 461 | position: relative; |
452 | 462 | color: #000; |
453 | 463 | font-size: 30rpx; |
454 | 464 | font-weight: 600; |
455 | - background: #fcfcfc; | |
456 | -} | |
465 | + background: #fff; | |
466 | +} | |
457 | 467 | |
458 | -.active::before { | |
468 | +#thress_type3 .active::before { | |
459 | 469 | content: ""; |
460 | 470 | position: absolute; |
461 | 471 | border-left: 8rpx solid #E41F19; |
462 | 472 | height: 50rpx; |
463 | 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 | 522 | @import "../goodsList/goodsList.wxss"; |
469 | 523 | \ No newline at end of file | ... | ... |
pages/tabbar/tabbar.wxml
1 | 1 | <!--pages/tabbar.wxml--> |
2 | 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 | 5 | <block wx:for="{{tabBar.list}}" wx:key="weappurl"> |
6 | 6 | |
7 | 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 | 10 | {{tabBar.cartGoodsNum}} |
11 | 11 | </view> |
12 | 12 | <view style="width:35%;height:30px;margin-left:33%;"> |
... | ... | @@ -16,8 +16,8 @@ |
16 | 16 | </navigator> |
17 | 17 | </block> |
18 | 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 | 21 | {{tabBar.cartGoodsNum}} |
22 | 22 | </view> |
23 | 23 | <view style="width:35%;height:30px;margin-left:33%;"> |
... | ... | @@ -81,7 +81,7 @@ |
81 | 81 | <!-- 3 --> |
82 | 82 | <block wx:if="{{tabBar.active!='/pages/cart/cart/cart'}}"> |
83 | 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 | 85 | {{tabBar.cartGoodsNum}} |
86 | 86 | </view><view style="width:30%;height:57rpx;margin-left:35%;"> |
87 | 87 | <image src="{{tabBar.url}}/miniapp/images/bar/car.png" class="img" style="width:100%;height:100%"></image> |
... | ... | @@ -91,7 +91,7 @@ |
91 | 91 | </block> |
92 | 92 | <block wx:else> |
93 | 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 | 95 | {{tabBar.cartGoodsNum}} |
96 | 96 | </view><view style="width:30%;height:57rpx;margin-left:35%;"> |
97 | 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 | 9 | \ No newline at end of file | ... | ... |