1 line
5.3 KiB
XML
1 line
5.3 KiB
XML
<view class="goods-search u-relative"><view class="header-wrap"><u-sticky vue-id="e5204538-1" offset-top="0" h5-nav-height="0" onVueInit="__l" vue-slots="{{['default']}}"><view class="search"><u-search vue-id="{{('e5204538-2')+','+('e5204538-1')}}" focus="{{showHistory}}" bg-color="#F4F4F4" value="{{keyword}}" data-event-opts="{{[['^focus',[['e0']]],['^search',[['onSearch']]],['^input',[['__set_model',['','keyword','$event',[]]]]]]}}" onFocus="__e" onSearch="__e" onInput="__e" onVueInit="__l"></u-search></view></u-sticky></view><view hidden="{{!(showHistory)}}" class="content bg-white"><block a:if="{{hotList.length}}"><view class="search-words"><view class="title">热门搜索</view><view class="words row wrap"><view data-event-opts="{{[['tap',[['onChangeKeyword',['$0'],[[['hotList','',index]]]]]]]}}" class="item br60 mr20 mb20 lighter sm line1" onTap="__e" a:for="{{hotList}}" a:for-item="item" a:for-index="index" a:key="index">{{item}}</view></view></view></block><block a:if="{{historyList.length}}"><view class="search-words"><view class="title row-between"><view>历史搜索</view><view data-event-opts="{{[['tap',[['clearSearchFun',['$event']]]]]}}" class="xs muted mr20" style="padding:10rpx 20rpx;" onTap="__e">清空</view></view><view class="words row wrap"><view data-event-opts="{{[['tap',[['onChangeKeyword',['$0'],[[['historyList','',index]]]]]]]}}" class="item br60 mr20 mb20 lighter sm line1" onTap="__e" a:for="{{historyList}}" a:for-item="item" a:for-index="index" a:key="index">{{item}}</view></view></view></block></view><view hidden="{{!(!showHistory)}}" class="content"><mescroll-body vue-id="e5204538-3" up="{{upOption}}" down="{{downOption}}" ref="__r" data-ref="mescroll" data-event-opts="{{[['^init',[['mescrollInit']]],['^down',[['downCallback']]],['^up',[['upCallback']]]]}}" onInit="__e" onDown="__e" onUp="__e" onVueInit="__l" vue-slots="{{['default']}}"><view a:for="{{goodsList}}" a:for-item="item" a:for-index="index" a:key="index"><view class="bg-white row u-m-b-20 u-p-20"><view><u-image vue-id="{{('e5204538-4-'+index)+','+('e5204538-3')}}" src="{{item.image}}" width="136" height="136" border-radius="16" onVueInit="__l"></u-image></view><view class="u-m-l-16 w-full row-start u-row-between"><view><view class="u-line-2 u-p-t-10">{{item.name}}</view><view class="u-p-t-20 row-between"><view class="row"><view class="primary"><price-format vue-id="{{('e5204538-5-'+index)+','+('e5204538-3')}}" price="{{item.price}}" subscriptSize="{{22}}" firstSize="{{34}}" secondSize="{{26}}" onVueInit="__l"></price-format></view><view class="u-m-l-8"><price-format vue-id="{{('e5204538-6-'+index)+','+('e5204538-3')}}" price="{{item.market_price}}" lineThrough="{{true}}" color="#C0C0C0" subscriptSize="{{22}}" firstSize="{{22}}" secondSize="{{22}}" onVueInit="__l"></price-format></view></view></view></view><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="column-end" catchTap="__e"><u-icon vue-id="{{('e5204538-7-'+index)+','+('e5204538-3')}}" name="plus-circle-fill" color="#254062" size="48" onVueInit="__l"></u-icon></view></view></view></view></mescroll-body><view class="buy mx40 px40 br60 row-between"><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="row" onTap="__e"><view class="u-relative"><u-image vue-id="e5204538-8" src="{{cloudPath+'img/icon_cart.png'}}" width="80" height="80" onVueInit="__l"></u-image><block a:if="{{buyNumber}}"><view class="u-absolute top-0 right-0 text-fff number u-text-center xxs">{{''+buyNumber+''}}</view></block></view><view class="text-fff u-m-l-32">未选购商品</view></view><view class="text-999">去结算</view></view></view><u-popup onInput="__e" vue-id="e5204538-9" mode="bottom" border-radius="{{16}}" value="{{showCart}}" data-event-opts="{{[['^input',[['__set_model',['','showCart','$event',[]]]]]]}}" onVueInit="__l" vue-slots="{{['default']}}"><view style="max-height:800rpx;"><view class="px20 text-999 mt20">温馨提示:请适量点餐</view><view><scroll-view style="height:700rpx;" scroll-y="true" scroll-with-animation="true"><view class="row-start u-row-between u-p-t-20 u-padding-bottom-20 px20" a:for="{{20}}" a:for-item="item" a:for-index="index" a:key="index"><view class="row-start"><view><u-image vue-id="{{('e5204538-10-'+index)+','+('e5204538-9')}}" src="{{cloudPath+'img/banner.png'}}" width="136" height="136" border-radius="16" onVueInit="__l"></u-image></view><view class="ml20"><view class="u-line-2 u-p-t-10">葱烩海鲜卷边披萨</view><view class="primary u-p-t-40"><price-format vue-id="{{('e5204538-11-'+index)+','+('e5204538-9')}}" price="{{12.9}}" subscriptSize="{{22}}" firstSize="{{34}}" secondSize="{{26}}" onVueInit="__l"></price-format></view></view></view><view><view class="u-text-right"><u-icon class="u-p-t-10" vue-id="{{('e5204538-12-'+index)+','+('e5204538-9')}}" name="trash" size="32" onVueInit="__l"></u-icon></view><view class="u-p-t-30"><u-number-box vue-id="{{('e5204538-13-'+index)+','+('e5204538-9')}}" min="1" value="{{numberVal}}" data-event-opts="{{[['^change',[['changeNumber']]],['^input',[['__set_model',['','numberVal','$event',[]]]]]]}}" onChange="__e" onInput="__e" onVueInit="__l"></u-number-box></view></view></view></scroll-view></view></view></u-popup><shop-spec onClose="__e" onInput="__e" vue-id="e5204538-14" value="{{showSpec}}" data-event-opts="{{[['^close',[['e3']]],['^input',[['__set_model',['','showSpec','$event',[]]]]]]}}" onVueInit="__l"></shop-spec></view> |