1 line
5.6 KiB
Plaintext
1 line
5.6 KiB
Plaintext
<view class="goods-search u-relative"><view class="header-wrap"><u-sticky vue-id="e50c44e4-1" offset-top="0" h5-nav-height="0" bind:__l="__l" vue-slots="{{['default']}}"><view class="search"><u-search vue-id="{{('e50c44e4-2')+','+('e50c44e4-1')}}" focus="{{showHistory}}" bg-color="#F4F4F4" value="{{keyword}}" data-event-opts="{{[['^focus',[['e0']]],['^search',[['onSearch']]],['^input',[['__set_model',['','keyword','$event',[]]]]]]}}" bind:focus="__e" bind:search="__e" bind:input="__e" bind:__l="__l"></u-search></view></u-sticky></view><view hidden="{{!(showHistory)}}" class="content bg-white"><block wx:if="{{$root.g0}}"><view class="search-words"><view class="title">热门搜索</view><view class="words row wrap"><block wx:for="{{hotList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['onChangeKeyword',['$0'],[[['hotList','',index]]]]]]]}}" class="item br60 mr20 mb20 lighter sm line1" bindtap="__e">{{item}}</view></block></view></view></block><block wx:if="{{$root.g1}}"><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;" bindtap="__e">清空</view></view><view class="words row wrap"><block wx:for="{{historyList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['onChangeKeyword',['$0'],[[['historyList','',index]]]]]]]}}" class="item br60 mr20 mb20 lighter sm line1" bindtap="__e">{{item}}</view></block></view></view></block></view><view hidden="{{!(!showHistory)}}" class="content"><mescroll-body class="vue-ref" vue-id="e50c44e4-3" up="{{upOption}}" down="{{downOption}}" data-ref="mescroll" data-event-opts="{{[['^init',[['mescrollInit']]],['^down',[['downCallback']]],['^up',[['upCallback']]]]}}" bind:init="__e" bind:down="__e" bind:up="__e" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{goodsList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view><navigator class="bg-white row u-m-b-20 u-p-20" url="{{'/pages/shop/shop?id='+item.id}}" hover-class="none"><view><u-image vue-id="{{('e50c44e4-4-'+index)+','+('e50c44e4-3')}}" src="{{item.image}}" width="136" height="136" border-radius="16" bind:__l="__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="{{('e50c44e4-5-'+index)+','+('e50c44e4-3')}}" price="{{item.price}}" subscriptSize="{{22}}" firstSize="{{34}}" secondSize="{{26}}" bind:__l="__l"></price-format></view><view class="u-m-l-8"><price-format vue-id="{{('e50c44e4-6-'+index)+','+('e50c44e4-3')}}" price="{{item.market_price}}" lineThrough="{{true}}" color="#C0C0C0" subscriptSize="{{22}}" firstSize="{{22}}" secondSize="{{22}}" bind:__l="__l"></price-format></view></view></view></view><view class="column-end"><view data-event-opts="{{[['tap',[['addCartFun',['$0'],[[['goodsList','',index]]]]]]]}}" catchtap="__e"><u-icon vue-id="{{('e50c44e4-7-'+index)+','+('e50c44e4-3')}}" name="plus-circle-fill" color="#254062" size="48" bind:__l="__l"></u-icon></view></view></view></navigator></view></block></mescroll-body><view class="buy mx40 px40 br60 row-between"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="row" bindtap="__e"><view class="u-relative"><u-image vue-id="e50c44e4-8" src="{{cloudPath+'img/icon_cart.png'}}" width="80" height="80" bind:__l="__l"></u-image><block wx: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 bind:input="__e" vue-id="e50c44e4-9" mode="bottom" border-radius="{{16}}" value="{{showCart}}" data-event-opts="{{[['^input',[['__set_model',['','showCart','$event',[]]]]]]}}" bind:__l="__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"><block wx:for="{{20}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="row-start u-row-between u-p-t-20 u-padding-bottom-20 px20"><view class="row-start"><view><u-image vue-id="{{('e50c44e4-10-'+index)+','+('e50c44e4-9')}}" src="{{cloudPath+'img/banner.png'}}" width="136" height="136" border-radius="16" bind:__l="__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="{{('e50c44e4-11-'+index)+','+('e50c44e4-9')}}" price="{{12.9}}" subscriptSize="{{22}}" firstSize="{{34}}" secondSize="{{26}}" bind:__l="__l"></price-format></view></view></view><view><view class="u-text-right"><u-icon class="u-p-t-10" vue-id="{{('e50c44e4-12-'+index)+','+('e50c44e4-9')}}" name="trash" size="32" bind:__l="__l"></u-icon></view><view class="u-p-t-30"><u-number-box vue-id="{{('e50c44e4-13-'+index)+','+('e50c44e4-9')}}" min="1" value="{{numberVal}}" data-event-opts="{{[['^change',[['changeNumber']]],['^input',[['__set_model',['','numberVal','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></u-number-box></view></view></view></block></scroll-view></view></view></u-popup><shop-spec vue-id="e50c44e4-14" name="{{goodsName}}" spec="{{goodsSpec}}" value="{{showSpec}}" data-event-opts="{{[['^close',[['e2']]],['^confirm',[['confirmSpec']]],['^input',[['__set_model',['','showSpec','$event',[]]]]]]}}" bind:close="__e" bind:confirm="__e" bind:input="__e" bind:__l="__l"></shop-spec></view> |