Commit 32eb8d8290fdaabf5ed16359992f3fc0d6309516

Authored by taiyuan
1 parent 70b5e9d5

搜索框组件修改

components/diy_searchbox/diy_searchbox.wxml
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 <view class="item">2121</view> 20 <view class="item">2121</view>
21 <view class="item">2121</view> 21 <view class="item">2121</view>
22 <view class="item">2121</view> 22 <view class="item">2121</view>
23 - <view class="clear">清除</view> 23 + <view class="clear">清除搜索历史</view>
24 </view> 24 </view>
25 </view> 25 </view>
26 26
@@ -52,7 +52,7 @@ @@ -52,7 +52,7 @@
52 <view class="item">2121</view> 52 <view class="item">2121</view>
53 <view class="item">2121</view> 53 <view class="item">2121</view>
54 <view class="item">2121</view> 54 <view class="item">2121</view>
55 - <view class="clear">清除</view> 55 + <view class="clear">清除搜索历史</view>
56 </view> 56 </view>
57 <!-- wx:if="{{inputShowed}}" --> 57 <!-- wx:if="{{inputShowed}}" -->
58 58
components/diy_searchbox/diy_searchbox.wxss
@@ -113,12 +113,13 @@ @@ -113,12 +113,13 @@
113 .his_str { 113 .his_str {
114 position: absolute; 114 position: absolute;
115 width: 600rpx; 115 width: 600rpx;
116 - top: 76rpx; 116 + top: 74rpx;
117 z-index: 999; 117 z-index: 999;
118 color: black; 118 color: black;
119 background-color: white; 119 background-color: white;
120 border: 2rpx solid #f0f0f0; 120 border: 2rpx solid #f0f0f0;
121 box-sizing: border-box; 121 box-sizing: border-box;
  122 + border-radius: 0 0 12rpx 12rpx;
122 } 123 }
123 124
124 .his_str.his_str1 { 125 .his_str.his_str1 {
@@ -139,8 +140,8 @@ @@ -139,8 +140,8 @@
139 140
140 .item { 141 .item {
141 padding: 0 20rpx; 142 padding: 0 20rpx;
142 - border-bottom: 2rpx solid #f0f0f0;  
143 - line-height: 60rpx; 143 + /* border-bottom: 2rpx solid #f0f0f0; */
  144 + line-height: 70rpx;
144 } 145 }
145 /* .item ~ .item { 146 /* .item ~ .item {
146 border-top: 2rpx solid #f0f0f0; 147 border-top: 2rpx solid #f0f0f0;
@@ -149,7 +150,9 @@ @@ -149,7 +150,9 @@
149 .clear { 150 .clear {
150 text-align: right; 151 text-align: right;
151 padding: 0 20rpx; 152 padding: 0 20rpx;
152 - line-height: 60rpx; 153 + line-height: 70rpx;
  154 + color: #FF5B5A;
  155 + font-size: 26rpx;
153 } 156 }
154 157
155 /* .w100 { 158 /* .w100 {