Commit bc6f8fe7fb1a65bf20f34f51dc5269e6f74b1f7a
1 parent
ecd85869
样式修复
Showing
2 changed files
with
29 additions
and
14 deletions
packageA/pages/jfbuy/jfbuy.wxml
... | ... | @@ -79,14 +79,12 @@ |
79 | 79 | <view wx:if="{{search_ing}}"> |
80 | 80 | <view class="cover-layer"></view> |
81 | 81 | <view class="s_box"> |
82 | - <view class="s_p_box"> | |
82 | + <view class="pdh20 pdv10 flex ai_c jc_sb"> | |
83 | 83 | <view class="input-box"> |
84 | - <text class="before iconfont icon-search_fd" catchtap="submitSearch"></text> | |
85 | - <input class="input-search" name="word" placeholder="请输入商品关键字" focus="focus" | |
86 | - bindconfirm="submitSearch" bindinput="getInput" bindfocus="inputFocus" value="{{keyword}}" /> | |
84 | + <input class="input-search" name="word" placeholder="请输入商品关键字" bindconfirm="submitSearch" bindinput="getInput" bindfocus="inputFocus" value="{{keyword}}"/> | |
87 | 85 | <text class="iconfont icon-guan" hidden="{{hiddenClear}}" catchtap="clearInput"></text> |
88 | 86 | </view> |
89 | - <button catchtap="close_layer" style="margin-left:26rpx">取消</button> | |
87 | + <button catchtap="close_layer" class="btn" hover-class="none">搜索</button> | |
90 | 88 | </view> |
91 | 89 | </view> |
92 | 90 | </view> |
93 | 91 | \ No newline at end of file | ... | ... |
packageA/pages/jfbuy/jfbuy.wxss
... | ... | @@ -435,26 +435,42 @@ radio .wx-radio-input.wx-radio-input-checked::before{ |
435 | 435 | |
436 | 436 | /*-- 搜索相关 --*/ |
437 | 437 | .s_box{ position: fixed;top:0;left: 0;background-color: #fff; width: 100%; z-index: 111111} |
438 | -.s_p_box{ | |
439 | - padding:30rpx 40rpx;display: flex; align-items: center; | |
440 | -} | |
441 | 438 | .input-box { |
442 | 439 | position: relative; |
443 | 440 | flex: 1; |
444 | - padding-left: 30rpx; | |
441 | + padding-left: 50rpx; | |
445 | 442 | padding-right: 70rpx; |
446 | - background-color: #f0f0f0; | |
447 | - display: flex; | |
448 | - align-items: center; | |
443 | + background-color: #f0f0f0; | |
444 | + border-radius: 60rpx; | |
445 | +} | |
446 | + | |
447 | +.input-box::before { | |
448 | + font-family: iconfont; | |
449 | + position: absolute; | |
450 | + left: 20rpx; | |
451 | + top: 50%; | |
452 | + transform: translateY(-50%); | |
453 | + content: '\e618'; | |
449 | 454 | } |
450 | 455 | |
451 | 456 | .input-search { |
452 | 457 | position: relative; |
453 | 458 | padding: 10rpx; |
454 | - ont-size: 28rpx; | |
455 | - width: 100%; | |
459 | + font-size: 28rpx; | |
460 | +} | |
461 | + | |
462 | + | |
463 | +.btn { | |
464 | + margin-left: 0; | |
465 | + margin-right: 0; | |
466 | + line-height: 1; | |
467 | + padding: 20rpx; | |
468 | + font-size: 30rpx; | |
456 | 469 | } |
457 | 470 | |
471 | +.btn::after { | |
472 | + border: none; | |
473 | +} | |
458 | 474 | .icon-guan { |
459 | 475 | font-size: 20rpx; |
460 | 476 | padding: 10rpx; |
... | ... | @@ -464,3 +480,4 @@ radio .wx-radio-input.wx-radio-input-checked::before{ |
464 | 480 | transform: translateY(-50%); |
465 | 481 | } |
466 | 482 | |
483 | + | ... | ... |