| 1 |
- <view class="content"><view class="search-box"><view class="margin-lr"><u-search style="width:100%;" vue-id="5930b925-1" placeholder="请输入商家或者商品名称" focus="{{true}}" show-action="{{true}}" animation="{{true}}" shape="square" action-text="取消" value="{{keyword}}" data-event-opts="{{[['^custom',[['goBack']]],['^search',[['doSearch',[false]]]],['^input',[['__set_model',['','keyword','$event',[]]]]]]}}" bind:custom="__e" bind:search="__e" bind:input="__e" bind:__l="__l"></u-search></view><view hidden="{{!(isShowKeywordList)}}" style="width:100%;z-index:999;"><view class="flex justify-between align-center bg-white padding-tb padding-lr-sm"><view data-event-opts="{{[['tap',[['confirm',[1]]]]]}}" class="{{['flex-sub','text-center',current==1?'select':'']}}" bindtap="__e">综合排序</view><view data-event-opts="{{[['tap',[['confirm',[3]]]]]}}" class="{{['flex-sub','text-center',current==3?'select':'']}}" bindtap="__e">距离优先</view><view data-event-opts="{{[['tap',[['confirm',[4]]]]]}}" class="{{['flex-sub','text-center',current==4?'select':'']}}" bindtap="__e">销量优先</view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="flex-sub text-center flex" bindtap="__e"><view class="flex align-center" style="margin:0 auto;"><view class="{{[isShow?'select':'']}}">筛选</view><block wx:if="{{!isShow}}"><u-icon vue-id="5930b925-2" name="arrow-down" size="28" bind:__l="__l"></u-icon></block><block wx:if="{{isShow}}"><u-icon vue-id="5930b925-3" name="arrow-up" color="#FCD202" size="28" bind:__l="__l"></u-icon></block></view></view></view><block wx:if="{{isShow}}"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" style="position:absolute;top:150rpx;width:100%;z-index:1000;background:rgba(0,0,0,.5);height:100vh;" bindtap="__e"><view class="padding-lr bg-white"><block wx:for="{{options4}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['getSelect',['$0'],[[['options4','',index]]]]]]]}}" class="flex justify-between align-center padding-tb-sm u-border-bottom" catchtap="__e"><view class="{{['text-df',item.select?'select':'']}}">{{item.shopTypeName}}</view><block wx:if="{{item.select}}"><u-icon vue-id="{{'5930b925-4-'+index}}" name="checkmark" color="#FCD202" size="28" bind:__l="__l"></u-icon></block></view></block></view></view></block></view><block wx:if="{{$root.g0}}"><view class="hd flex justify-center"><view class="hd-box"><scroll-view class="scroll-view_H" scroll-x="true"><block wx:for="{{hdlist}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['searchhd',[index,'$0'],[[['hdlist','',index,'activityId']]]]]]]}}" class="hd-box-item" style="{{(currenthd==index?'background-color:#fcd202;font-weight:bold':'')}}" bindtap="__e">{{item.activityTitle}}</view></block></scroll-view></view></view></block></view><view class="search-keyword"><view hidden="{{!(isShowKeywordList)}}" class="keyword-list-box" scroll-y="{{true}}"><view class="padding-lr"><block wx:for="{{keywordList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view><view data-event-opts="{{[['tap',[['goNav',['$0','$1','$2'],[[['keywordList','',index,'shopId']],[['keywordList','',index]],[['keywordList','',index,'shopActivityList']]]]]]]}}" class="flex justify-between bg-white padding" style="margin-bottom:20rpx;" bindtap="__e"><image class="radius" style="width:160rpx;height:160rpx;" src="{{item.shopCover}}"></image><view class="margin-left-sm" style="width:450rpx;"><view class="flex flex-direction justify-between"><view class="text-lg text-bold text-black">{{item.shopName}}</view><view class="flex align-center margin-top-xs" style="width:100%;"><u-icon vue-id="{{'5930b925-5-'+index}}" name="star-fill" color="#FD6416" size="28" bind:__l="__l"></u-icon><text class="text-lg">{{''+(item.shopScore?item.shopScore:0)}}</text><text class="text-gray flex-sub margin-left-xs">{{"销量"+(item.shopSales?item.shopSales:0)}}</text><text class="text-gray margin-left-xs">{{item.errandTime+"分钟"}}</text><text class="text-gray margin-left-xs">{{item.distance}}</text></view><view class="text-gray margin-top-xs flex justify-between"><view>{{"起送 ¥"+item.minimumDelivery+" 配送 ¥"+(item.errandMoney?item.errandMoney:0)}}</view><view style="color:#FCD202;">{{item.autoSendOrder==1?'商家配送':'平台配送'}}</view></view><block wx:if="{{item.businessHours&&item.lockHours}}"><view class="text-gray margin-top-xs">{{'营业时间:'+item.businessHours+"-"+item.lockHours}}</view></block><view class="flex margin-top-xs justify-between align-start" style="width:100%;"><view class="flex flex-wrap align-center" style="width:100%;height:100%;overflow:hidden;"><block wx:if="{{item.enableFullReductionFlag==0&&item.exemptMinMoney}}"><view class="lable flex justify-center align-center">{{'满'+item.exemptMinMoney+"免配送费"}}</view></block><block wx:for="{{item.shopActivityList}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><block wx:if="{{item.shopActivityList&&ite.activityType!='1'}}"><view><view class="lable flex justify-center align-center" style="border-radius:4rpx;background-color:#ffffff;color:red;box-sizing:border-box;"><block wx:if="{{ite.activityType=='2'}}"><text>时段</text></block><block wx:if="{{ite.activityType=='3'}}"><text>满额</text></block><block wx:if="{{ite.activityType=='4'}}"><text>全场</text></block><text style="margin-left:3px;">|</text><text style="margin-left:3px;">{{ite.activityName}}</text></view></view></block></block><block wx:for="{{item.shopLable}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><block wx:if="{{item.shopLable}}"><view class="lable flex justify-center align-center">{{''+ite+''}}</view></block></block><block wx:for="{{item.couponList}}" wx:for-item="it" wx:for-index="ide" wx:key="ide"><block wx:if="{{item.couponList}}"><view class="lable flex justify-center align-center" style="border-radius:4rpx;border:1rpx solid red;background-color:#ffffff;color:red;box-sizing:border-box;"><text>优惠券</text><text style="margin-left:3px;">|</text><text style="margin-left:3px;">{{"满"+it.minMoney+"减"+it.money}}</text></view></block></block></view></view></view><view class="flex margin-top-xs"><block wx:for="{{item.goodsList}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><view data-event-opts="{{[['tap',[['goDet',['$0','$1'],[[['keywordList','',index],['goodsList','',ind,'goodsId']],[['keywordList','',index,'shopId']]]]]]]}}" style="width:33%;" catchtap="__e"><image class="radius" style="width:120rpx;height:120rpx;" src="{{ite.goodsCover}}" mode></image><view class="u-line-1 text-df text-bold margin-top-xs">{{ite.goodsName}}</view><view class="text-bold margin-top-xs" style="color:#FD6416;"><text class="text-sm">¥</text>{{''+ite.goodsMoney}}</view></view></block></view></view></view></view></block></view><block wx:if="{{$root.g1==0}}"><empty vue-id="5930b925-6" bind:__l="__l"></empty></block></view><view hidden="{{!(!isShowKeywordList)}}" class="keyword-box" scroll-y="{{true}}"><block wx:if="{{$root.g2>0}}"><view class="keyword-block"><view class="keyword-list-header"><view>热门搜索</view><view><image src="{{'/static/images/index/attention'+forbid+'.png'}}" data-event-opts="{{[['tap',[['hotToggle',['$event']]]]]}}" bindtap="__e"></image></view></view><block wx:if="{{forbid==''}}"><view class="keyword"><block wx:for="{{hotKeywordList}}" wx:for-item="keyword" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['doSearch',['$0'],[[['hotKeywordList','',index]]]]]]]}}" bindtap="__e">{{''+keyword+''}}</view></block></view></block><block wx:else><view class="hide-hot-tis"><view>当前搜热已隐藏</view></view></block></view></block><block wx:if="{{$root.g3>0}}"><view class="keyword-block"><view class="keyword-list-header"><view>历史记录</view><view><image src="/static/images/index/delete.png" data-event-opts="{{[['tap',[['oldDelete',['$event']]]]]}}" bindtap="__e"></image></view></view><view class="keyword"><block wx:for="{{oldKeywordList}}" wx:for-item="keyword" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['doSearch',['$0'],[[['oldKeywordList','',index,'message']]]]]]]}}" bindtap="__e">{{''+keyword.message+''}}</view></block></view></view></block></view></view><block wx:if="{{hintShow}}"><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="hintPopul" catchtap="__e"><view class="content_"><image style="width:200rpx;height:180rpx;" src="../../../static/images/index/shop.png" mode></image><view class="text-xl text-bold">店铺打烊啦</view><view class="hintText margin-top-sm text-gray">现在店铺已经打烊了,营业时间</view><view class="margin-top-xs text-gray margin-bottom">{{shop.businessHours+"-"+shop.lockHours}}</view><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="skuBtn" bindtap="__e">知道了</view></view></view></block></view>
|