Browse Source

搜索框换样式

master
ZhaoTongYao 4 years ago
parent
commit
82e1955ad6
  1. 12
      pages/heartNew/heartNew.wxml
  2. 23
      pages/heartNew/heartNew.wxss

12
pages/heartNew/heartNew.wxml

@ -86,15 +86,15 @@
<!-- 订单多多列表 --> <!-- 订单多多列表 -->
<view class="details-top" hidden="{{dingdan}}"> <view class="details-top" hidden="{{dingdan}}">
<view class="top-box"> <view class="top-box">
<view class="">活动主办方:</view> <view class="search-title">志愿团队(单位)</view>
<view class="search-long"> <view class="search-long">
<view class="search"> <view class="search">
<view class="item-all"> <view class="item-all">
<view class="item-left"> <view class="item-left item-left-long">
<image src="../../images/search.png"></image> <image src="../../images/search.png"></image>
<input placeholder-class="placeholder-style" placeholder="输入关键字" bindinput="bindInputValueActive" value="{{searchActive}}"></input> <input placeholder-class="placeholder-style" placeholder="输入关键字" bindinput="bindInputValueActive" value="{{searchActive}}"></input>
</view> </view>
<button class="item-right" bindtap="searchActive" hover-class="none">搜索</button> <button class="item-right-long" bindtap="searchActive" hover-class="none">分类搜索</button>
</view> </view>
</view> </view>
</view> </view>
@ -132,15 +132,15 @@
<!-- 精彩说说 --> <!-- 精彩说说 -->
<view class="details-top" hidden="{{jingcai}}"> <view class="details-top" hidden="{{jingcai}}">
<view class="top-box"> <view class="top-box">
<view class="">活动主办方:</view> <view class="search-title">志愿团队(单位)</view>
<view class="search-long"> <view class="search-long">
<view class="search"> <view class="search">
<view class="item-all"> <view class="item-all">
<view class="item-left"> <view class="item-left item-left-long">
<image src="../../images/search.png"></image> <image src="../../images/search.png"></image>
<input placeholder-class="placeholder-style" placeholder="输入关键字" bindinput="bindInputValueActive" value="{{searchJingcai}}"></input> <input placeholder-class="placeholder-style" placeholder="输入关键字" bindinput="bindInputValueActive" value="{{searchJingcai}}"></input>
</view> </view>
<button class="item-right" bindtap="searchActive" hover-class="none">搜索</button> <button class="item-right-long" bindtap="searchActive" hover-class="none">分类搜索</button>
</view> </view>
</view> </view>
</view> </view>

23
pages/heartNew/heartNew.wxss

@ -501,11 +501,30 @@ button:last-child {
margin-top: 26rpx; margin-top: 26rpx;
} }
.search-long { .search-long {
width: 500rpx; width: 460rpx;
padding: 20rpx 0rpx; padding: 20rpx 0rpx;
box-sizing: border-box; box-sizing: border-box;
background-color: #fff; background-color: #fff;
} }
.search-title {
margin-right: 10rpx;
}
.item-left-long {
/* background: red; */
width: calc(100% - 120rpx) !important;
height: 30rpx;
border-right: 1rpx solid #BFBFBF;
display: flex;
align-items: center;
justify-content: space-between;
}
.item-right-long {
width: 120rpx !important;
height: 58rpx;
padding: 0;
border-radius: 0;
line-height: 58rpx;
}
/* 搜索志愿者 start */ /* 搜索志愿者 start */
.search { .search {
/* margin-top: 17rpx; */ /* margin-top: 17rpx; */
@ -555,7 +574,7 @@ button:last-child {
color: rgba(168, 168, 168, 1); color: rgba(168, 168, 168, 1);
} }
.search .item-all .item-right { .search .item-all .item-right, .item-right-long {
font-size: 28rpx; font-size: 28rpx;
font-weight: 500; font-weight: 500;
color: rgba(51, 51, 51, 1); color: rgba(51, 51, 51, 1);

Loading…
Cancel
Save