Commit 046c2c046bf72da43b6959749c458036e228dd87
1 parent
dce67cb7
分类列表、商品列表样式调整
Showing
4 changed files
with
146 additions
and
90 deletions
pages/goods/categoryList/categoryList.wxml
... | ... | @@ -90,55 +90,60 @@ |
90 | 90 | <view class="no-data" wx:if="{{!is_date}}"> |
91 | 91 | <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> |
92 | 92 | <view class="no-data-title">暂无分类</view> |
93 | - <navigator class="lookat" url="/pages/index/index/index"> 去逛逛 </navigator> | |
93 | + <navigator class="lookat" url="/pages/index/index/index">去逛逛</navigator> | |
94 | 94 | </view> |
95 | 95 | </block> |
96 | 96 | <block wx:elif="{{is_do}}"> |
97 | 97 | <view class="no-data" > |
98 | 98 | <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> |
99 | 99 | <view class="no-data-title">商家暂未设置分类</view> |
100 | - <navigator class="lookat" url="/pages/index/index/index"> 去逛逛 </navigator> | |
100 | + <navigator class="lookat" url="/pages/index/index/index">去逛逛</navigator> | |
101 | 101 | </view> |
102 | 102 | </block> |
103 | 103 | </block> |
104 | 104 | <!-- 风格2 --> |
105 | 105 | <block wx:elif="{{is_used_share == 1}}"> |
106 | 106 | <block wx:if="{{is_show_pl || is_show_gb || is_show_pp }}"> |
107 | - <!-- 新版分类头部 --> | |
108 | - <view class="xc-search-box flex-center white_b" style="position:fixed;top:0;z-index:99"> | |
109 | - <view class="share-height t-c" bindtap="getScancode" > | |
110 | - <image class="scanning_black-img"src="{{iurl}}/miniapp/images/goodscategory/scanning_black.png"></image> | |
111 | - <view class="fs24"> | |
112 | - 扫一扫 | |
113 | - </view> | |
114 | - </view> | |
115 | - <view class="xc-search-inner "> | |
116 | - <view class="search-img left"> | |
117 | - <image class="wh100" src="{{iurl}}/miniapp/images/search.png"></image> | |
118 | - </view> | |
119 | - <input bindfocus="goseach" class="search-cont" placeholder="请输入您所搜索的商品" type="text"></input> | |
120 | - </view> | |
121 | - </view> | |
107 | + <!-- 新版分类头部 --> | |
108 | + <view class="xc-search-box flex jc_sb ai-center" style="position:fixed;top:0;z-index:99"> | |
109 | + <!-- <view class="xc-search-inner "> | |
110 | + <view class="search-img left"> | |
111 | + <image class="wh100" src="{{iurl}}/miniapp/images/search.png"></image> | |
112 | + </view> | |
113 | + <input bindfocus="goseach" class="search-cont" placeholder="搜索店铺商品" type="text"></input> | |
114 | + </view> --> | |
115 | + <!-- 搜索框 --> | |
116 | + <view class="search-container f1"> | |
117 | + <view bindtap="goseach"><text class="iconfont icon-sousuo pdr10"></text>搜索店铺商品</view> | |
118 | + </view> | |
119 | + <view class="pdl30" bindtap="getScancode" > | |
120 | + <image class="scanning_black-img"src="{{iurl}}/miniapp/images/goodscategory/scanning_black.png"></image> | |
121 | + <!-- <view class="fs24">扫一扫</view> --> | |
122 | + </view> | |
123 | + | |
124 | + </view> | |
122 | 125 | |
123 | 126 | |
124 | 127 | <!-- 分类项目内容 22 --> |
125 | - <view class="flex project_height" style="height:100%;box-sizing:border-box;padding-bottom:100rpx;padding-top:120rpx;" id="two_type"> | |
128 | + <view class="flex project_height" style="height:100%;box-sizing:border-box;padding-bottom:100rpx;padding-top:108rpx;" id="two_type"> | |
126 | 129 | <!-- 分类项目的类型 --> |
127 | - <view class="project_type" style="background-color:#eee;<!-- height:88%; -->overflow-y:auto;position:fixed;left:0;z-index:99;top:120rpx;"> | |
130 | + <view class="project_type" style="background-color:#f4f4f4;overflow-y:auto;position:fixed;left:0;z-index:99;top:108rpx;"> | |
128 | 131 | <view class="project_type-frame" style="margin-bottom:120rpx;"> |
129 | 132 | <view wx:if="{{is_show_gb}}" class="{{status_show == 1?'':''}}"> |
130 | 133 | <!-- <view style="{{status_show == 1?'position: absolute;height: 52rpx;width: 6rpx;background-color: red;left: 0; margin-top: 24rpx;':''}}"></view> --> |
131 | - <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}}"> | |
134 | + <view bindtap="click_classify" style="{{status_show == 1?'margin-top:0':'margin-top:40rpx'}}" class="fs30 {{select_classify_on==223?'select_classify':''}}"data-index="223"data-name="国家" wx:if="{{is_country}}"> | |
132 | 135 | |
133 | - <view class="tab-bar-item sort-name ellipsis-1" style="letter-spacing:50rpx;">国家</view> | |
136 | + <!-- <view class="tab-bar-item sort-name ellipsis-1" style="letter-spacing:50rpx;">国家</view> --> | |
137 | + <view class="tab-bar-item sort-name ellipsis-1" style="">国家</view> | |
134 | 138 | |
135 | 139 | </view> |
136 | 140 | </view> |
137 | 141 | <view wx:if="{{is_show_pp}}" class="{{status_show == 2?'':''}}"> |
138 | 142 | <!-- <view style="{{status_show == 2?'position: absolute;height: 52rpx;width: 6rpx;background-color: red;left: 0; margin-top: 24rpx;':''}}"></view> --> |
139 | - <view bindtap="click_classify" class="{{select_classify_on==220?'select_classify':''}} fs30 flex-space-between " wx:if="{{is_brand}}"data-index="220"data-name="品牌"> | |
143 | + <view bindtap="click_classify" class="{{select_classify_on==220?'select_classify':''}} fs30" wx:if="{{is_brand}}"data-index="220"data-name="品牌"> | |
140 | 144 | |
141 | - <view class="tab-bar-item sort-name ellipsis-1" style="letter-spacing:50rpx;">品牌</view> | |
145 | + <!-- <view class="tab-bar-item sort-name ellipsis-1" style="letter-spacing:50rpx;">品牌</view> --> | |
146 | + <view class="tab-bar-item sort-name ellipsis-1" style="">品牌</view> | |
142 | 147 | </view> |
143 | 148 | </view> |
144 | 149 | <view wx:if="{{is_show_pl}}"> |
... | ... | @@ -210,11 +215,11 @@ |
210 | 215 | <block wx:if="{{is_show_pl}}"> |
211 | 216 | <block wx:if="{{select_classify_on!=220&&select_classify_on!=223&&is_level_three!=1}}"> |
212 | 217 | <view class="my-container"> |
213 | - <view class="classify_name fs28 flex-space-between"data-pid="0"data-cid="{{cat_id}}" bindtap='select_more'> | |
218 | + <view class="classify_name fs28 flex-space-between ai-center"data-pid="0"data-cid="{{cat_id}}" bindtap='select_more'> | |
214 | 219 | <view class="classify_title ellipsis-1">{{classify_name}}</view> |
215 | - <view class="flex select_more" > | |
220 | + <view class="flex select_more ai-center" > | |
216 | 221 | <view class="red-co fs24" >更多</view> |
217 | - <view class="bg_right width_height"></view> | |
222 | + <view class="bg_right width_height" style="margin-top: 0;"></view> | |
218 | 223 | </view> |
219 | 224 | </view> |
220 | 225 | <!-- 显示2级列表 --> |
... | ... | @@ -223,7 +228,7 @@ |
223 | 228 | <block wx:for="{{goodslist}}" wx:for-item="goods" wx:for-index="indx"> |
224 | 229 | <view class="type_img_frame t-c ib" data-cid="{{goods.items.id}}" data-pid="{{goods.items.parent_id}}" bindtap="go_cate"> |
225 | 230 | <image class=" type_img" src="{{goods.items.icoimg==null||goods.items.icoimg==''?iurl+'/miniapp/images/no_cate_def.png':goods.items.icoimg}}"binderror="goods_bnerr" data-err="goodslist[{{index}}].logo"></image> |
226 | - <view class="brand_img_name fs24 ellipsis-1">{{goods.items.name}}</view> | |
231 | + <view class="brand_img_name fs24 ellipsis-1 pdh10">{{goods.items.name}}</view> | |
227 | 232 | </view> |
228 | 233 | </block> |
229 | 234 | </block> |
... | ... | @@ -240,12 +245,12 @@ |
240 | 245 | <block wx:for="{{goodslist}}"wx:for-item="goods"wx:for-index="inds"> |
241 | 246 | <view> |
242 | 247 | |
243 | - <view class="classify_name fs28 flex-space-between"data-pid="{{goods.items.parent_id}}" data-cid="{{goods.items.id}}" bindtap='select_more'> | |
248 | + <view class="classify_name fs28 flex-space-between ai-center"data-pid="{{goods.items.parent_id}}" data-cid="{{goods.items.id}}" bindtap='select_more'> | |
244 | 249 | |
245 | 250 | <view class="classify_title ellipsis-1">{{goods.items.name}}</view> |
246 | - <view class="flex select_more" > | |
251 | + <view class="flex select_more ai-center" > | |
247 | 252 | <view class="red-co fs24" >更多</view> |
248 | - <view class="bg_right width_height"></view> | |
253 | + <view class="bg_right width_height" style="margin-top: 0;"></view> | |
249 | 254 | </view> |
250 | 255 | </view> |
251 | 256 | |
... | ... | @@ -253,10 +258,10 @@ |
253 | 258 | <view class="classify_content-frame flex-wrap"> |
254 | 259 | <view class="type_img_frame t-c ib" data-cid="{{item.id}}" data-pid="three" wx:for="{{goods.arrays}}" wx:for-index="index" wx:for-item="item" bindtap="go_cate"> |
255 | 260 | <image class=" type_img"src="{{item.icoimg==null||item.icoimg==''?iurl+'/miniapp/images/no_cate_def.png':item.icoimg}}"binderror="goods_bnerr" data-err="goodslist[{{index}}].logo"></image> |
256 | - <view class="brand_img_name fs24 ellipsis-1">{{item.name}}</view> | |
261 | + <view class="brand_img_name fs24 ellipsis-1 pdh10">{{item.name}}</view> | |
257 | 262 | </view> |
258 | 263 | </view> |
259 | - <view class="divider_line"></view> | |
264 | + <!-- <view class="divider_line"></view> --> | |
260 | 265 | </block> |
261 | 266 | |
262 | 267 | </view> |
... | ... | @@ -270,7 +275,7 @@ |
270 | 275 | <view class="no-data" > |
271 | 276 | <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> |
272 | 277 | <view class="no-data-title">商家暂未设置分类</view> |
273 | - <navigator class="lookat" url="/pages/index/index/index"> 去逛逛 </navigator> | |
278 | + <navigator class="lookat" url="/pages/index/index/index">去逛逛</navigator> | |
274 | 279 | </view> |
275 | 280 | </block> |
276 | 281 | |
... | ... | @@ -280,7 +285,7 @@ |
280 | 285 | <block wx:if="{{is_show_pl || is_show_gb || is_show_pp }}"> |
281 | 286 | <!-- 头部 --> |
282 | 287 | <view class="xc-search-box flex-center white_b" id="navbar" style="position:fixed;top:0;z-index:99"> |
283 | - <view class="share-height t-c" bindtap="getScancode" > | |
288 | + <!-- <view class="share-height t-c" bindtap="getScancode" > | |
284 | 289 | <image class="scanning_black-img"src="{{iurl}}/miniapp/images/goodscategory/scanning_black.png"></image> |
285 | 290 | <view class="fs24"> |
286 | 291 | 扫一扫 |
... | ... | @@ -291,23 +296,32 @@ |
291 | 296 | <image class="wh100" src="{{iurl}}/miniapp/images/search.png"></image> |
292 | 297 | </view> |
293 | 298 | <input bindfocus="goseach" class="search-cont" placeholder="请输入您所搜索的商品" type="text"></input> |
294 | - </view> | |
299 | + </view> --> | |
300 | + | |
301 | + <!-- 搜索框 --> | |
302 | + <view class="search-container f1"> | |
303 | + <view bindtap="goseach"><text class="iconfont icon-sousuo pdr10"></text>搜索店铺商品</view> | |
304 | + </view> | |
305 | + <view class="pdl30" bindtap="getScancode" > | |
306 | + <image class="scanning_black-img"src="{{iurl}}/miniapp/images/goodscategory/scanning_black.png"></image> | |
307 | + <!-- <view class="fs24">扫一扫</view> --> | |
308 | + </view> | |
295 | 309 | </view> |
296 | 310 | <!-- /头部 --> |
297 | 311 | <!-- 分类项目内容 --> |
298 | - <view class="flex project_height" style="margin-left:-10rpx;"> | |
312 | + <view class="flex project_height" style=""> | |
299 | 313 | <!-- 分类项目的类型 --> |
300 | - <view class="project_type" style="background-color:#eee;height:88%;overflow-y:auto;position:fixed;left:0;z-index:99;top:120rpx;" id="thress_type3"> | |
314 | + <view class="project_type" style="background-color:#f4f4f4;overflow-y:auto;position:fixed;left:0;z-index:99;top:108rpx;" id="thress_type3"> | |
301 | 315 | <view class="project_type-frame" style="margin-bottom:120rpx;"> |
302 | 316 | <view wx:if="{{is_show_gb}}"> |
303 | 317 | <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}}"> |
304 | - <text style="letter-spacing:50rpx;">国家</text> | |
318 | + <text style="">国家</text> | |
305 | 319 | </view> |
306 | 320 | </view> |
307 | 321 | <view wx:if="{{is_show_pp}}"> |
308 | 322 | |
309 | 323 | <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="品牌"> |
310 | - <text style="letter-spacing:50rpx;">品牌</text> | |
324 | + <text style="">品牌</text> | |
311 | 325 | </view> |
312 | 326 | </view> |
313 | 327 | <view wx:if="{{is_show_pl}}"> |
... | ... | @@ -345,7 +359,7 @@ |
345 | 359 | </view> |
346 | 360 | </view> |
347 | 361 | <!-- 分类项目的内容 --> |
348 | - <view class="classify_content" style="margin-left:27%;margin-top:120rpx"> | |
362 | + <view class="classify_content" style="padding-left:26%;padding-top:108rpx;box-sizing: border-box;"> | |
349 | 363 | <!-- 国家的样式 --> |
350 | 364 | <block wx:if="{{select_classify_on==223&&is_show_gb}}"> |
351 | 365 | <view class="classify_name fs28 flex-space-between"> |
... | ... | @@ -394,19 +408,19 @@ |
394 | 408 | <!-- 品类--> |
395 | 409 | <block wx:if="{{is_show_pl}}"> |
396 | 410 | <block wx:if="{{select_classify_on!=220&&select_classify_on!=223}}"> |
397 | - <view style="width:100%;height:100%;"> | |
398 | - <view class="classify_name fs28 flex-space-between" id="header" data-pid="0" data-cid="{{cat_id}}" bindtap='select_more' style="position:fixed;z-index:999999;top:130rpx;width:70%;background-color:#ffffff;left:27%;padding:0 10rpx;"> | |
411 | + <view style="width:100%;height:100%;position: relative;"> | |
412 | + <view class="classify_name fs28 flex ai-center flex-space-between" id="header" data-pid="0" data-cid="{{cat_id}}" bindtap='select_more' style="box-sizing:border-box;position:fixed;z-index: 999;width:74%;background-color:#ffffff;padding:0 20rpx;"> | |
399 | 413 | <view class="classify_title ellipsis-1">{{classify_name}}</view> |
400 | - <view class="flex select_more" > | |
414 | + <view class="flex select_more ai-center" > | |
401 | 415 | <view class="red-co fs24" >更多</view> |
402 | - <view class="bg_right width_height"></view> | |
416 | + <view class="bg_right width_height" style="margin-top: 0;"></view> | |
403 | 417 | </view> |
404 | 418 | </view> |
405 | 419 | <!-- 显示商品列表开始 --> |
406 | 420 | <!-- <view class="classify_content-frame flex-wrap" style="width:100%;overflow:hidden;heigth:100%;"> --> |
407 | 421 | |
408 | 422 | <!-- <view class="null" style="width:100%;margin-top:70rpx;"></view> --> |
409 | - <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%;"> | |
423 | + <scroll-view scroll-y scroll-top="{{scrollTop}}" bindscrolltolower='scrollLower' style="height:{{windowHeight}};position:absolute;margin-top:70rpx;top:0;bottom:0;left:0;width:100%;"> | |
410 | 424 | <view class="null" style="width:100%;height:1px;"></view> |
411 | 425 | <!-- goodslist --> |
412 | 426 | <view class="choice_list" style="height:{{msgStatus != true?'100%':''}}"> |
... | ... | @@ -560,7 +574,7 @@ |
560 | 574 | <view class="no-data" > |
561 | 575 | <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> |
562 | 576 | <view class="no-data-title">商家暂未设置分类</view> |
563 | - <navigator class="lookat" url="/pages/index/index/index"> 去逛逛 </navigator> | |
577 | + <navigator class="lookat" url="/pages/index/index/index">去逛逛</navigator> | |
564 | 578 | </view> |
565 | 579 | </block> |
566 | 580 | </block> | ... | ... |
pages/goods/categoryList/categoryList.wxss
... | ... | @@ -47,6 +47,14 @@ swiper{ |
47 | 47 | border-radius: 50%; |
48 | 48 | overflow: hidden; |
49 | 49 | } |
50 | +.search-container { | |
51 | + color: #bbb; | |
52 | + font-size: 26rpx; | |
53 | + border-radius: 40rpx; | |
54 | + padding: 16rpx; | |
55 | + background-color: #f4f4f4; | |
56 | +} | |
57 | + | |
50 | 58 | |
51 | 59 | .search-inner { |
52 | 60 | display: flex; |
... | ... | @@ -176,25 +184,27 @@ line-height: 50rpx; |
176 | 184 | /* 商品分类新的版本 */ |
177 | 185 | /* 分享样式*/ |
178 | 186 | .xc-search-box { |
179 | - width: 100%; | |
180 | - height: 120rpx; | |
181 | - z-index: 10; | |
182 | - background: #fff; | |
183 | - /* border-top: 4rpx solid #eee; */ | |
184 | - border-bottom: 1rpx solid #eee; | |
185 | - | |
187 | + box-sizing: border-box; | |
188 | + width: 100%; | |
189 | + /* height: 120rpx; */ | |
190 | + z-index: 10; | |
191 | + background: #fff; | |
192 | + /* border-top: 4rpx solid #eee; */ | |
193 | + border-bottom: 1rpx solid #f4f4f4; | |
194 | + padding: 20rpx; | |
186 | 195 | } |
187 | 196 | |
188 | 197 | .share-height{ |
189 | - line-height: 20rpx; | |
198 | + /* line-height: 20rpx; | |
190 | 199 | margin-right: 15rpx; |
191 | -margin-top: 8rpx; | |
200 | +margin-top: 8rpx; */ | |
192 | 201 | |
193 | 202 | } |
194 | -.scanning_black-img{ | |
203 | +.scanning_black-img { | |
204 | + display: block; | |
195 | 205 | width:50rpx; |
196 | - height: 45rpx; | |
197 | - margin-bottom: 5rpx; | |
206 | + height: 50rpx; | |
207 | + /* margin-bottom: 5rpx; */ | |
198 | 208 | |
199 | 209 | } |
200 | 210 | .search-img.left{ |
... | ... | @@ -219,7 +229,7 @@ margin-top: 8rpx; |
219 | 229 | width: 26%; |
220 | 230 | height: 100%; |
221 | 231 | padding-bottom: 100rpx; |
222 | - border-right: 1rpx solid #eee; | |
232 | + /* border-right: 1rpx solid #eee; */ | |
223 | 233 | white-space: nowrap; |
224 | 234 | overflow: hidden; |
225 | 235 | overflow-y: scroll; |
... | ... | @@ -298,20 +308,20 @@ width: 60%; |
298 | 308 | /* width: 90%; |
299 | 309 | margin: auto; */ |
300 | 310 | height: 70rpx; |
301 | - border-bottom: 1rpx solid #f5f6f6; | |
311 | + /* border-bottom: 1rpx solid #f5f6f6; */ | |
302 | 312 | line-height: 70rpx; |
303 | 313 | font-weight: 600; |
304 | 314 | padding-left: 20rpx; |
305 | 315 | padding-right: 20rpx; |
306 | 316 | } |
307 | 317 | .classify_content{ |
308 | - width: 100% | |
309 | - | |
318 | + width: 100%; | |
319 | + box-sizing: border-box; | |
310 | 320 | } |
311 | 321 | .classify_content-frame{ |
312 | 322 | box-sizing: border-box; |
313 | 323 | width: 100%; |
314 | - padding: 0 20rpx; | |
324 | + padding: 0 12rpx; | |
315 | 325 | flex-wrap:wrap; |
316 | 326 | overflow-y:scroll; |
317 | 327 | } |
... | ... | @@ -376,6 +386,7 @@ line-height: 65rpx; |
376 | 386 | |
377 | 387 | } |
378 | 388 | .type_img_frame { |
389 | + box-sizing: border-box; | |
379 | 390 | width: calc(100% / 3); |
380 | 391 | height: 140rpx; |
381 | 392 | margin-top: 20rpx; |
... | ... | @@ -386,8 +397,8 @@ line-height: 65rpx; |
386 | 397 | |
387 | 398 | |
388 | 399 | .type_img{ |
389 | - width:80rpx; | |
390 | - height:80rpx; | |
400 | + width: 110rpx; | |
401 | + height: 110rpx; | |
391 | 402 | margin-bottom: 10rpx; |
392 | 403 | margin-top: 10rpx; |
393 | 404 | |
... | ... | @@ -408,9 +419,9 @@ width: 62%; |
408 | 419 | margin-top:12rpx; |
409 | 420 | } |
410 | 421 | .select_more{ |
411 | -line-height: 37rpx; | |
422 | +/* line-height: 37rpx; */ | |
412 | 423 | height: 35rpx; |
413 | -margin-top: 24rpx; | |
424 | +/* margin-top: 24rpx; */ | |
414 | 425 | } |
415 | 426 | .divider_line{ |
416 | 427 | width: 100%; |
... | ... | @@ -431,7 +442,10 @@ margin: auto; |
431 | 442 | /* width: 80%; */ |
432 | 443 | } |
433 | 444 | |
434 | -.brand_img_name {color: #666;} | |
445 | +.brand_img_name { | |
446 | + /* box-sizing: border-box; */ | |
447 | + color: #8a8a8a; | |
448 | +} | |
435 | 449 | |
436 | 450 | |
437 | 451 | .tab-view { |
... | ... | @@ -449,16 +463,16 @@ margin: auto; |
449 | 463 | box-sizing: border-box; |
450 | 464 | display: flex; |
451 | 465 | align-items: center; |
452 | - justify-content: left; | |
453 | - font-size: 30rpx; | |
454 | - padding-left: 30rpx; | |
455 | - color: #444; | |
456 | - font-weight: 400; | |
466 | + justify-content: center; | |
467 | + font-size: 28rpx; | |
468 | + padding: 0 20rpx; | |
469 | + color: #080808; | |
470 | + /* font-weight: 400; */ | |
457 | 471 | } |
458 | 472 | |
459 | 473 | #thress_type3 .active { |
460 | 474 | position: relative; |
461 | - color: #000; | |
475 | + color: #e83028; | |
462 | 476 | font-size: 30rpx; |
463 | 477 | font-weight: 600; |
464 | 478 | background: #fff; |
... | ... | @@ -467,9 +481,12 @@ margin: auto; |
467 | 481 | #thress_type3 .active::before { |
468 | 482 | content: ""; |
469 | 483 | position: absolute; |
470 | - border-left: 8rpx solid #E41F19; | |
471 | - height: 50rpx; | |
484 | + border-left: 8rpx solid #e83028; | |
485 | + border-radius: 8rpx; | |
486 | + height: 40rpx; | |
472 | 487 | left: 0; |
488 | + top: 50%; | |
489 | + transform: translateY(-50%); | |
473 | 490 | } |
474 | 491 | |
475 | 492 | |
... | ... | @@ -483,11 +500,11 @@ margin: auto; |
483 | 500 | box-sizing: border-box; |
484 | 501 | display: flex; |
485 | 502 | align-items: center; |
486 | - justify-content: left; | |
487 | - font-size: 30rpx; | |
488 | - padding-left: 30rpx; | |
489 | - color: #444; | |
490 | - font-weight: 400; | |
503 | + justify-content: center; | |
504 | + font-size: 28rpx; | |
505 | + padding: 0 20rpx; | |
506 | + color: #080808; | |
507 | + /* font-weight: 600; */ | |
491 | 508 | } |
492 | 509 | #two_type .select_classify { |
493 | 510 | position: relative; |
... | ... | @@ -500,13 +517,18 @@ margin: auto; |
500 | 517 | #two_type .select_classify::before { |
501 | 518 | content: ""; |
502 | 519 | position: absolute; |
503 | - border-left: 8rpx solid #E41F19; | |
504 | - height: 50rpx; | |
520 | + border-left: 8rpx solid #e83028; | |
521 | + border-radius: 8rpx; | |
522 | + height: 40rpx; | |
505 | 523 | left: 0; |
506 | 524 | top:50%; |
507 | 525 | transform: translateY(-50%); |
508 | 526 | } |
509 | 527 | |
528 | +#two_type .select_classify .tab-bar-item { | |
529 | + color: #e83028; | |
530 | +} | |
531 | + | |
510 | 532 | |
511 | 533 | |
512 | 534 | #two_type .is_show_class{ |
... | ... | @@ -518,7 +540,7 @@ margin: auto; |
518 | 540 | |
519 | 541 | } |
520 | 542 | |
521 | - | |
543 | + .classify_content > view:last-of-type, | |
522 | 544 | .classify_content > view:last-of-type .classify_content-frame { |
523 | 545 | padding-bottom: 100rpx; |
524 | 546 | } | ... | ... |
pages/goods/goodsList/goodsList.wxml
... | ... | @@ -293,8 +293,8 @@ |
293 | 293 | |
294 | 294 | <view class="no-data" wx:if="{{(!requestData||requestData.length==0) && is_go}}"> |
295 | 295 | <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> |
296 | - <view class="no-data-title">没有相关的数据</view> | |
297 | - <navigator class="lookat" url="/pages/index/index/index"> 去逛逛 </navigator> | |
296 | + <view class="no-data-title">暂无相关商品</view> | |
297 | + <navigator class="lookat" url="/pages/index/index/index">回到首页</navigator> | |
298 | 298 | </view> |
299 | 299 | </view> |
300 | 300 | <view hidden="{{!openFilterModal}}"> | ... | ... |
pages/goods/goodsList/goodsList.wxss
... | ... | @@ -59,11 +59,11 @@ page { |
59 | 59 | |
60 | 60 | .search-box { |
61 | 61 | color: #BEBEBE; |
62 | - font-size: 24rpx; | |
62 | + font-size: 26rpx; | |
63 | 63 | /* border: 2rpx solid #f23030; */ |
64 | 64 | border-radius: 40rpx; |
65 | 65 | padding: 16rpx; |
66 | - background-color: #e0e0e0; | |
66 | + background-color: #e8e8e8; | |
67 | 67 | } |
68 | 68 | |
69 | 69 | .icon-sousuo { |
... | ... | @@ -266,7 +266,7 @@ page { |
266 | 266 | .choice_list.on { |
267 | 267 | display: flex; |
268 | 268 | flex-wrap: wrap; |
269 | - padding-bottom: 12rpx; | |
269 | + padding-bottom: 16rpx; | |
270 | 270 | padding-left: 16rpx; |
271 | 271 | padding-right: 16rpx; |
272 | 272 | background-color: #f0f0f0; |
... | ... | @@ -293,7 +293,7 @@ page { |
293 | 293 | } |
294 | 294 | |
295 | 295 | .choice_list.on .item-cont { |
296 | - padding: 10rpx; | |
296 | + padding: 10rpx 14rpx; | |
297 | 297 | display: flex; |
298 | 298 | flex-direction: column; |
299 | 299 | justify-content: space-between; |
... | ... | @@ -303,3 +303,23 @@ page { |
303 | 303 | .choice_list.on .item-cont .flex.on { |
304 | 304 | display: block; |
305 | 305 | } |
306 | + | |
307 | +.no-data .cart-image { | |
308 | + width: 208rpx; | |
309 | + height: 202rpx; | |
310 | +} | |
311 | + | |
312 | +.no-data .no-data-title { | |
313 | + font-size: 28rpx; | |
314 | + color: #b8b8b8; | |
315 | + margin-bottom: 50rpx; | |
316 | +} | |
317 | + | |
318 | +.no-data .lookat { | |
319 | + display: inline-block; | |
320 | + font-size: 28rpx; | |
321 | + border-radius: 10rpx; | |
322 | + background-color: #e83028; | |
323 | + color: white; | |
324 | + padding: 20rpx 50rpx; | |
325 | +} | ... | ... |