作者 wumengyu

优化搜索

... ... @@ -194,13 +194,14 @@
</view>
<form bindsubmit="confirmJoin" bindreset="formReset" report-submit="true">
<!-- // (0全部,2待拼成,3人数不足未拼成,4已拼成,5已取消,6已完成,7已评价,8已拼成(活动未结束),9删除-->
<!--is_send = 1 不可参与-->
<button class="confirm-join-btn {{(is_send === 2 && detail.status === 8) || (is_send === 2 && detail.status === 2)?'black':''}}" form-type="submit">
<text wx:if="{{is_send === 1 && detail.status === 2}}">待拼成</text>
<text wx:if="{{is_send === 1 && detail.status === 8}}">待完成</text>
<text wx:if="{{is_send === 2 && detail.status === 8 }}">确认拼活动</text>
<text wx:if="{{is_send === 2 && detail.status === 2 }}">确认拼活动</text>
<text wx:if="{{detail.status === 3}}">未拼成</text>
<text wx:if="{{detail.status === 4}}">已拼成</text>
<text wx:if="{{detail.status === 4}}">待完成</text>
<text wx:if="{{detail.status === 5}}">已取消</text>
<text wx:if="{{detail.status === 6 || detail.status === 7}}">已完成</text>
<!--<text wx:if="{{detail.status === 8}}">已拼成</text>-->
... ...
<!--pages/index/city-list/city-list.wxml-->
<view class="content">
<view class='tab_box'>
<view class="tab_item {{current==0?'active':''}}" data-current='{{0}}' bindtap='chargeTab'>国内</view>
<view class="tab_item {{current==1?'active':''}}" data-current='{{1}}' bindtap='chargeTab'>国际</view>
<view class="tab_item {{current==0?'active':''}}" data-current='{{0}}' bindtap='chargeTab'>大陆境内</view>
<view class="tab_item {{current==1?'active':''}}" data-current='{{1}}' bindtap='chargeTab'>境外/港澳台</view>
</view>
<view class="right" wx:if="{{current===1}}">
<input class="input" type="text" placeholder="搜索国家" bindinput="inputKey" bindfocus="inputFocus" value="{{searchValue}}" bindconfirm="startSearch" />
<image src="../../../images/search@2x.png" class="search-icon" bindtap="startSearch"></image>
<text class="search-btn">搜索</text>
<!--<image src="../../../images/search@2x.png" class="search-icon" bindtap="startSearch"></image>-->
<!--<view class="iconfont icon-arrow-down"></view>-->
</view>
<view class="city-box {{current===1?'margin':''}}">
... ...
... ... @@ -78,8 +78,9 @@ page {
height: 34rpx;
}
.input {
width: 90%;
/* width: 90%; */
height:58rpx;
flex:1;
color: #666666;
padding-left: 20rpx;
font-size: 28rpx;
... ... @@ -129,4 +130,11 @@ page {
}
.margin {
margin-top: 160rpx;
}
.search-btn {
width:80rpx;
margin-left:20rpx;
text-align: center;
font-size: 28rpx;
color: #666666;
}
\ No newline at end of file
... ...
... ... @@ -203,7 +203,7 @@
<text wx:if="{{is_send === 2 && detail.status === 8 }}">确认拼餐</text>
<text wx:if="{{is_send === 2 && detail.status === 2 }}">确认拼餐</text>
<text wx:if="{{detail.status === 3}}">未拼成</text>
<text wx:if="{{detail.status === 4}}">已拼成</text>
<text wx:if="{{detail.status === 4}}">待完成</text>
<text wx:if="{{detail.status === 5 || detail.status === 10}}">已取消</text>
<text wx:if="{{detail.status === 6 || detail.status === 7}}">已完成</text>
<!--<text wx:if="{{detail.status === 8}}">已拼成</text>-->
... ...
{
"navigationBarTitleText": "票"
"navigationBarTitleText": "票"
}
\ No newline at end of file
... ...
... ... @@ -65,7 +65,7 @@
</block>
<block wx:if="{{detail.is_canCheck === 2}}">
<!--2是不可以点,且灰色-->
<text class="confirm-btn gray add-width" wx:if="{{detail.status === 4}}" bindtap="">待完成</text><!--待完成时并且活动时间已开始,发布人可点击完成-->
<text class="confirm-btn gray {{detail.is_canCancel ===1?'':'add-width'}}" wx:if="{{detail.status === 4}}" bindtap="">待完成</text><!--待完成时并且活动时间已开始,发布人可点击完成-->
</block>
<text class="confirm-btn add-width gray" wx:if="{{detail.status === 6}}">已完成</text>
</block>
... ...
... ... @@ -6,7 +6,7 @@
<input placeholder='请输入搜索相关内容' bindfocus="inputFocus" bindinput="inputKey" value="{{searchValue}}" bindconfirm="startSearch" placeholder-class='input_size'/>
<!--<view class="iconfont icon-jia1 jia1" catchtap="clearInput"></view>-->
</view>
<!--<view class="search-text" bindtap="startSearch">搜索</view>-->
<view class="search-text" bindtap="startSearch">搜索</view>
</view>
<view class="history_box" wx:if="{{postList.length<=0}}">
... ... @@ -43,7 +43,7 @@
<!--<image src="../../images/lishi@2x.png" class="thumb"></image>-->
<image src="{{item.pic}}" class="thumb"></image>
<view class="lish-right">
<view class="title">{{item.address}}</view>
<view class="title">{{item.name}}</view>
<view class="time">{{item.time}}</view>
<view class="name-box">
<!--<image src="../../images/avatar@2x.png" class="avatar"></image>-->
... ...
... ... @@ -64,6 +64,7 @@ page {
font-size: 22rpx;
}
.lish-right .name-box .avatar{
border-radius:50%;
width: 40rpx;
height: 40rpx;
margin-right: 16rpx;
... ... @@ -101,7 +102,11 @@ page {
font-size: 30rpx;
}
.search-text {
width:80rpx;
text-align: center;
margin-left: 20rpx;
font-size: 26rpx;
color:#666666;
}
.history_box {
display: flex;
... ...