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,55 +90,60 @@ | ||
| 90 | <view class="no-data" wx:if="{{!is_date}}"> | 90 | <view class="no-data" wx:if="{{!is_date}}"> |
| 91 | <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> | 91 | <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> |
| 92 | <view class="no-data-title">暂无分类</view> | 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 | </view> | 94 | </view> |
| 95 | </block> | 95 | </block> |
| 96 | <block wx:elif="{{is_do}}"> | 96 | <block wx:elif="{{is_do}}"> |
| 97 | <view class="no-data" > | 97 | <view class="no-data" > |
| 98 | <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> | 98 | <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> |
| 99 | <view class="no-data-title">商家暂未设置分类</view> | 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 | </view> | 101 | </view> |
| 102 | </block> | 102 | </block> |
| 103 | </block> | 103 | </block> |
| 104 | <!-- 风格2 --> | 104 | <!-- 风格2 --> |
| 105 | <block wx:elif="{{is_used_share == 1}}"> | 105 | <block wx:elif="{{is_used_share == 1}}"> |
| 106 | <block wx:if="{{is_show_pl || is_show_gb || is_show_pp }}"> | 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 | <!-- 分类项目内容 22 --> | 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 | <view class="project_type-frame" style="margin-bottom:120rpx;"> | 131 | <view class="project_type-frame" style="margin-bottom:120rpx;"> |
| 129 | <view wx:if="{{is_show_gb}}" class="{{status_show == 1?'':''}}"> | 132 | <view wx:if="{{is_show_gb}}" class="{{status_show == 1?'':''}}"> |
| 130 | <!-- <view style="{{status_show == 1?'position: absolute;height: 52rpx;width: 6rpx;background-color: red;left: 0; margin-top: 24rpx;':''}}"></view> --> | 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 | </view> | 139 | </view> |
| 136 | </view> | 140 | </view> |
| 137 | <view wx:if="{{is_show_pp}}" class="{{status_show == 2?'':''}}"> | 141 | <view wx:if="{{is_show_pp}}" class="{{status_show == 2?'':''}}"> |
| 138 | <!-- <view style="{{status_show == 2?'position: absolute;height: 52rpx;width: 6rpx;background-color: red;left: 0; margin-top: 24rpx;':''}}"></view> --> | 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 | </view> | 147 | </view> |
| 143 | </view> | 148 | </view> |
| 144 | <view wx:if="{{is_show_pl}}"> | 149 | <view wx:if="{{is_show_pl}}"> |
| @@ -210,11 +215,11 @@ | @@ -210,11 +215,11 @@ | ||
| 210 | <block wx:if="{{is_show_pl}}"> | 215 | <block wx:if="{{is_show_pl}}"> |
| 211 | <block wx:if="{{select_classify_on!=220&&select_classify_on!=223&&is_level_three!=1}}"> | 216 | <block wx:if="{{select_classify_on!=220&&select_classify_on!=223&&is_level_three!=1}}"> |
| 212 | <view class="my-container"> | 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 | <view class="classify_title ellipsis-1">{{classify_name}}</view> | 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 | <view class="red-co fs24" >更多</view> | 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 | </view> | 223 | </view> |
| 219 | </view> | 224 | </view> |
| 220 | <!-- 显示2级列表 --> | 225 | <!-- 显示2级列表 --> |
| @@ -223,7 +228,7 @@ | @@ -223,7 +228,7 @@ | ||
| 223 | <block wx:for="{{goodslist}}" wx:for-item="goods" wx:for-index="indx"> | 228 | <block wx:for="{{goodslist}}" wx:for-item="goods" wx:for-index="indx"> |
| 224 | <view class="type_img_frame t-c ib" data-cid="{{goods.items.id}}" data-pid="{{goods.items.parent_id}}" bindtap="go_cate"> | 229 | <view class="type_img_frame t-c ib" data-cid="{{goods.items.id}}" data-pid="{{goods.items.parent_id}}" bindtap="go_cate"> |
| 225 | <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> | 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 | </view> | 232 | </view> |
| 228 | </block> | 233 | </block> |
| 229 | </block> | 234 | </block> |
| @@ -240,12 +245,12 @@ | @@ -240,12 +245,12 @@ | ||
| 240 | <block wx:for="{{goodslist}}"wx:for-item="goods"wx:for-index="inds"> | 245 | <block wx:for="{{goodslist}}"wx:for-item="goods"wx:for-index="inds"> |
| 241 | <view> | 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 | <view class="classify_title ellipsis-1">{{goods.items.name}}</view> | 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 | <view class="red-co fs24" >更多</view> | 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 | </view> | 254 | </view> |
| 250 | </view> | 255 | </view> |
| 251 | 256 | ||
| @@ -253,10 +258,10 @@ | @@ -253,10 +258,10 @@ | ||
| 253 | <view class="classify_content-frame flex-wrap"> | 258 | <view class="classify_content-frame flex-wrap"> |
| 254 | <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"> | 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 | <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> | 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 | </view> | 262 | </view> |
| 258 | </view> | 263 | </view> |
| 259 | - <view class="divider_line"></view> | 264 | + <!-- <view class="divider_line"></view> --> |
| 260 | </block> | 265 | </block> |
| 261 | 266 | ||
| 262 | </view> | 267 | </view> |
| @@ -270,7 +275,7 @@ | @@ -270,7 +275,7 @@ | ||
| 270 | <view class="no-data" > | 275 | <view class="no-data" > |
| 271 | <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> | 276 | <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> |
| 272 | <view class="no-data-title">商家暂未设置分类</view> | 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 | </view> | 279 | </view> |
| 275 | </block> | 280 | </block> |
| 276 | 281 | ||
| @@ -280,7 +285,7 @@ | @@ -280,7 +285,7 @@ | ||
| 280 | <block wx:if="{{is_show_pl || is_show_gb || is_show_pp }}"> | 285 | <block wx:if="{{is_show_pl || is_show_gb || is_show_pp }}"> |
| 281 | <!-- 头部 --> | 286 | <!-- 头部 --> |
| 282 | <view class="xc-search-box flex-center white_b" id="navbar" style="position:fixed;top:0;z-index:99"> | 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 | <image class="scanning_black-img"src="{{iurl}}/miniapp/images/goodscategory/scanning_black.png"></image> | 289 | <image class="scanning_black-img"src="{{iurl}}/miniapp/images/goodscategory/scanning_black.png"></image> |
| 285 | <view class="fs24"> | 290 | <view class="fs24"> |
| 286 | 扫一扫 | 291 | 扫一扫 |
| @@ -291,23 +296,32 @@ | @@ -291,23 +296,32 @@ | ||
| 291 | <image class="wh100" src="{{iurl}}/miniapp/images/search.png"></image> | 296 | <image class="wh100" src="{{iurl}}/miniapp/images/search.png"></image> |
| 292 | </view> | 297 | </view> |
| 293 | <input bindfocus="goseach" class="search-cont" placeholder="请输入您所搜索的商品" type="text"></input> | 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 | </view> | 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 | <view class="project_type-frame" style="margin-bottom:120rpx;"> | 315 | <view class="project_type-frame" style="margin-bottom:120rpx;"> |
| 302 | <view wx:if="{{is_show_gb}}"> | 316 | <view wx:if="{{is_show_gb}}"> |
| 303 | <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}}"> | 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 | </view> | 319 | </view> |
| 306 | </view> | 320 | </view> |
| 307 | <view wx:if="{{is_show_pp}}"> | 321 | <view wx:if="{{is_show_pp}}"> |
| 308 | 322 | ||
| 309 | <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="品牌"> | 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 | </view> | 325 | </view> |
| 312 | </view> | 326 | </view> |
| 313 | <view wx:if="{{is_show_pl}}"> | 327 | <view wx:if="{{is_show_pl}}"> |
| @@ -345,7 +359,7 @@ | @@ -345,7 +359,7 @@ | ||
| 345 | </view> | 359 | </view> |
| 346 | </view> | 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 | <block wx:if="{{select_classify_on==223&&is_show_gb}}"> | 364 | <block wx:if="{{select_classify_on==223&&is_show_gb}}"> |
| 351 | <view class="classify_name fs28 flex-space-between"> | 365 | <view class="classify_name fs28 flex-space-between"> |
| @@ -394,19 +408,19 @@ | @@ -394,19 +408,19 @@ | ||
| 394 | <!-- 品类--> | 408 | <!-- 品类--> |
| 395 | <block wx:if="{{is_show_pl}}"> | 409 | <block wx:if="{{is_show_pl}}"> |
| 396 | <block wx:if="{{select_classify_on!=220&&select_classify_on!=223}}"> | 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 | <view class="classify_title ellipsis-1">{{classify_name}}</view> | 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 | <view class="red-co fs24" >更多</view> | 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 | </view> | 417 | </view> |
| 404 | </view> | 418 | </view> |
| 405 | <!-- 显示商品列表开始 --> | 419 | <!-- 显示商品列表开始 --> |
| 406 | <!-- <view class="classify_content-frame flex-wrap" style="width:100%;overflow:hidden;heigth:100%;"> --> | 420 | <!-- <view class="classify_content-frame flex-wrap" style="width:100%;overflow:hidden;heigth:100%;"> --> |
| 407 | 421 | ||
| 408 | <!-- <view class="null" style="width:100%;margin-top:70rpx;"></view> --> | 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 | <view class="null" style="width:100%;height:1px;"></view> | 424 | <view class="null" style="width:100%;height:1px;"></view> |
| 411 | <!-- goodslist --> | 425 | <!-- goodslist --> |
| 412 | <view class="choice_list" style="height:{{msgStatus != true?'100%':''}}"> | 426 | <view class="choice_list" style="height:{{msgStatus != true?'100%':''}}"> |
| @@ -560,7 +574,7 @@ | @@ -560,7 +574,7 @@ | ||
| 560 | <view class="no-data" > | 574 | <view class="no-data" > |
| 561 | <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> | 575 | <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> |
| 562 | <view class="no-data-title">商家暂未设置分类</view> | 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 | </view> | 578 | </view> |
| 565 | </block> | 579 | </block> |
| 566 | </block> | 580 | </block> |
pages/goods/categoryList/categoryList.wxss
| @@ -47,6 +47,14 @@ swiper{ | @@ -47,6 +47,14 @@ swiper{ | ||
| 47 | border-radius: 50%; | 47 | border-radius: 50%; |
| 48 | overflow: hidden; | 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 | .search-inner { | 59 | .search-inner { |
| 52 | display: flex; | 60 | display: flex; |
| @@ -176,25 +184,27 @@ line-height: 50rpx; | @@ -176,25 +184,27 @@ line-height: 50rpx; | ||
| 176 | /* 商品分类新的版本 */ | 184 | /* 商品分类新的版本 */ |
| 177 | /* 分享样式*/ | 185 | /* 分享样式*/ |
| 178 | .xc-search-box { | 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 | .share-height{ | 197 | .share-height{ |
| 189 | - line-height: 20rpx; | 198 | + /* line-height: 20rpx; |
| 190 | margin-right: 15rpx; | 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 | width:50rpx; | 205 | width:50rpx; |
| 196 | - height: 45rpx; | ||
| 197 | - margin-bottom: 5rpx; | 206 | + height: 50rpx; |
| 207 | + /* margin-bottom: 5rpx; */ | ||
| 198 | 208 | ||
| 199 | } | 209 | } |
| 200 | .search-img.left{ | 210 | .search-img.left{ |
| @@ -219,7 +229,7 @@ margin-top: 8rpx; | @@ -219,7 +229,7 @@ margin-top: 8rpx; | ||
| 219 | width: 26%; | 229 | width: 26%; |
| 220 | height: 100%; | 230 | height: 100%; |
| 221 | padding-bottom: 100rpx; | 231 | padding-bottom: 100rpx; |
| 222 | - border-right: 1rpx solid #eee; | 232 | + /* border-right: 1rpx solid #eee; */ |
| 223 | white-space: nowrap; | 233 | white-space: nowrap; |
| 224 | overflow: hidden; | 234 | overflow: hidden; |
| 225 | overflow-y: scroll; | 235 | overflow-y: scroll; |
| @@ -298,20 +308,20 @@ width: 60%; | @@ -298,20 +308,20 @@ width: 60%; | ||
| 298 | /* width: 90%; | 308 | /* width: 90%; |
| 299 | margin: auto; */ | 309 | margin: auto; */ |
| 300 | height: 70rpx; | 310 | height: 70rpx; |
| 301 | - border-bottom: 1rpx solid #f5f6f6; | 311 | + /* border-bottom: 1rpx solid #f5f6f6; */ |
| 302 | line-height: 70rpx; | 312 | line-height: 70rpx; |
| 303 | font-weight: 600; | 313 | font-weight: 600; |
| 304 | padding-left: 20rpx; | 314 | padding-left: 20rpx; |
| 305 | padding-right: 20rpx; | 315 | padding-right: 20rpx; |
| 306 | } | 316 | } |
| 307 | .classify_content{ | 317 | .classify_content{ |
| 308 | - width: 100% | ||
| 309 | - | 318 | + width: 100%; |
| 319 | + box-sizing: border-box; | ||
| 310 | } | 320 | } |
| 311 | .classify_content-frame{ | 321 | .classify_content-frame{ |
| 312 | box-sizing: border-box; | 322 | box-sizing: border-box; |
| 313 | width: 100%; | 323 | width: 100%; |
| 314 | - padding: 0 20rpx; | 324 | + padding: 0 12rpx; |
| 315 | flex-wrap:wrap; | 325 | flex-wrap:wrap; |
| 316 | overflow-y:scroll; | 326 | overflow-y:scroll; |
| 317 | } | 327 | } |
| @@ -376,6 +386,7 @@ line-height: 65rpx; | @@ -376,6 +386,7 @@ line-height: 65rpx; | ||
| 376 | 386 | ||
| 377 | } | 387 | } |
| 378 | .type_img_frame { | 388 | .type_img_frame { |
| 389 | + box-sizing: border-box; | ||
| 379 | width: calc(100% / 3); | 390 | width: calc(100% / 3); |
| 380 | height: 140rpx; | 391 | height: 140rpx; |
| 381 | margin-top: 20rpx; | 392 | margin-top: 20rpx; |
| @@ -386,8 +397,8 @@ line-height: 65rpx; | @@ -386,8 +397,8 @@ line-height: 65rpx; | ||
| 386 | 397 | ||
| 387 | 398 | ||
| 388 | .type_img{ | 399 | .type_img{ |
| 389 | - width:80rpx; | ||
| 390 | - height:80rpx; | 400 | + width: 110rpx; |
| 401 | + height: 110rpx; | ||
| 391 | margin-bottom: 10rpx; | 402 | margin-bottom: 10rpx; |
| 392 | margin-top: 10rpx; | 403 | margin-top: 10rpx; |
| 393 | 404 | ||
| @@ -408,9 +419,9 @@ width: 62%; | @@ -408,9 +419,9 @@ width: 62%; | ||
| 408 | margin-top:12rpx; | 419 | margin-top:12rpx; |
| 409 | } | 420 | } |
| 410 | .select_more{ | 421 | .select_more{ |
| 411 | -line-height: 37rpx; | 422 | +/* line-height: 37rpx; */ |
| 412 | height: 35rpx; | 423 | height: 35rpx; |
| 413 | -margin-top: 24rpx; | 424 | +/* margin-top: 24rpx; */ |
| 414 | } | 425 | } |
| 415 | .divider_line{ | 426 | .divider_line{ |
| 416 | width: 100%; | 427 | width: 100%; |
| @@ -431,7 +442,10 @@ margin: auto; | @@ -431,7 +442,10 @@ margin: auto; | ||
| 431 | /* width: 80%; */ | 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 | .tab-view { | 451 | .tab-view { |
| @@ -449,16 +463,16 @@ margin: auto; | @@ -449,16 +463,16 @@ margin: auto; | ||
| 449 | box-sizing: border-box; | 463 | box-sizing: border-box; |
| 450 | display: flex; | 464 | display: flex; |
| 451 | align-items: center; | 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 | #thress_type3 .active { | 473 | #thress_type3 .active { |
| 460 | position: relative; | 474 | position: relative; |
| 461 | - color: #000; | 475 | + color: #e83028; |
| 462 | font-size: 30rpx; | 476 | font-size: 30rpx; |
| 463 | font-weight: 600; | 477 | font-weight: 600; |
| 464 | background: #fff; | 478 | background: #fff; |
| @@ -467,9 +481,12 @@ margin: auto; | @@ -467,9 +481,12 @@ margin: auto; | ||
| 467 | #thress_type3 .active::before { | 481 | #thress_type3 .active::before { |
| 468 | content: ""; | 482 | content: ""; |
| 469 | position: absolute; | 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 | left: 0; | 487 | left: 0; |
| 488 | + top: 50%; | ||
| 489 | + transform: translateY(-50%); | ||
| 473 | } | 490 | } |
| 474 | 491 | ||
| 475 | 492 | ||
| @@ -483,11 +500,11 @@ margin: auto; | @@ -483,11 +500,11 @@ margin: auto; | ||
| 483 | box-sizing: border-box; | 500 | box-sizing: border-box; |
| 484 | display: flex; | 501 | display: flex; |
| 485 | align-items: center; | 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 | #two_type .select_classify { | 509 | #two_type .select_classify { |
| 493 | position: relative; | 510 | position: relative; |
| @@ -500,13 +517,18 @@ margin: auto; | @@ -500,13 +517,18 @@ margin: auto; | ||
| 500 | #two_type .select_classify::before { | 517 | #two_type .select_classify::before { |
| 501 | content: ""; | 518 | content: ""; |
| 502 | position: absolute; | 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 | left: 0; | 523 | left: 0; |
| 506 | top:50%; | 524 | top:50%; |
| 507 | transform: translateY(-50%); | 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 | #two_type .is_show_class{ | 534 | #two_type .is_show_class{ |
| @@ -518,7 +540,7 @@ margin: auto; | @@ -518,7 +540,7 @@ margin: auto; | ||
| 518 | 540 | ||
| 519 | } | 541 | } |
| 520 | 542 | ||
| 521 | - | 543 | + .classify_content > view:last-of-type, |
| 522 | .classify_content > view:last-of-type .classify_content-frame { | 544 | .classify_content > view:last-of-type .classify_content-frame { |
| 523 | padding-bottom: 100rpx; | 545 | padding-bottom: 100rpx; |
| 524 | } | 546 | } |
pages/goods/goodsList/goodsList.wxml
| @@ -293,8 +293,8 @@ | @@ -293,8 +293,8 @@ | ||
| 293 | 293 | ||
| 294 | <view class="no-data" wx:if="{{(!requestData||requestData.length==0) && is_go}}"> | 294 | <view class="no-data" wx:if="{{(!requestData||requestData.length==0) && is_go}}"> |
| 295 | <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> | 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 | </view> | 298 | </view> |
| 299 | </view> | 299 | </view> |
| 300 | <view hidden="{{!openFilterModal}}"> | 300 | <view hidden="{{!openFilterModal}}"> |
pages/goods/goodsList/goodsList.wxss
| @@ -59,11 +59,11 @@ page { | @@ -59,11 +59,11 @@ page { | ||
| 59 | 59 | ||
| 60 | .search-box { | 60 | .search-box { |
| 61 | color: #BEBEBE; | 61 | color: #BEBEBE; |
| 62 | - font-size: 24rpx; | 62 | + font-size: 26rpx; |
| 63 | /* border: 2rpx solid #f23030; */ | 63 | /* border: 2rpx solid #f23030; */ |
| 64 | border-radius: 40rpx; | 64 | border-radius: 40rpx; |
| 65 | padding: 16rpx; | 65 | padding: 16rpx; |
| 66 | - background-color: #e0e0e0; | 66 | + background-color: #e8e8e8; |
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | .icon-sousuo { | 69 | .icon-sousuo { |
| @@ -266,7 +266,7 @@ page { | @@ -266,7 +266,7 @@ page { | ||
| 266 | .choice_list.on { | 266 | .choice_list.on { |
| 267 | display: flex; | 267 | display: flex; |
| 268 | flex-wrap: wrap; | 268 | flex-wrap: wrap; |
| 269 | - padding-bottom: 12rpx; | 269 | + padding-bottom: 16rpx; |
| 270 | padding-left: 16rpx; | 270 | padding-left: 16rpx; |
| 271 | padding-right: 16rpx; | 271 | padding-right: 16rpx; |
| 272 | background-color: #f0f0f0; | 272 | background-color: #f0f0f0; |
| @@ -293,7 +293,7 @@ page { | @@ -293,7 +293,7 @@ page { | ||
| 293 | } | 293 | } |
| 294 | 294 | ||
| 295 | .choice_list.on .item-cont { | 295 | .choice_list.on .item-cont { |
| 296 | - padding: 10rpx; | 296 | + padding: 10rpx 14rpx; |
| 297 | display: flex; | 297 | display: flex; |
| 298 | flex-direction: column; | 298 | flex-direction: column; |
| 299 | justify-content: space-between; | 299 | justify-content: space-between; |
| @@ -303,3 +303,23 @@ page { | @@ -303,3 +303,23 @@ page { | ||
| 303 | .choice_list.on .item-cont .flex.on { | 303 | .choice_list.on .item-cont .flex.on { |
| 304 | display: block; | 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 | +} |