Files

1 line
4.6 KiB
Plaintext

<view class="cate"><view class="cate-one row"><view class="aside"><scroll-view style="height:100%;" scroll-y="true" scroll-with-animation="true"><view style="padding-bottom:200rpx;"><block wx:for="{{cateList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><view data-event-opts="{{[['tap',[['changeActive',[index]]]]]}}" class="{{['one-item sm '+(index==selectIndex?'active bg-white':'')]}}" bindtap="__e"><text class="name">{{item.name}}</text><block wx:if="{{index==selectIndex}}"><view class="active-line bg-default"></view></block></view></block></block></view></scroll-view></view><view class="main"><scroll-view style="height:100%;" scroll-y="true" scroll-with-animation="true" data-event-opts="{{[['scrolltolower',[['getGoodsSearchFun',['$event']]]]]}}" bindscrolltolower="__e"><view class="main-wrap"><view class="goods"><view class="u-p-t-32 bold-600">{{cateName}}</view><view class="u-p-t-32"><block wx:for="{{goodsList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><navigator class="bg-white br16 row u-col-top u-m-b-24" hover-class="none" data-event-opts="{{[['tap',[['toShop']]]]}}" bindtap="__e"><view><u-image vue-id="{{'0565d282-1-'+index}}" src="{{item.image}}" width="136" height="136" border-radius="16" bind:__l="__l"></u-image></view><view class="info"><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="{{'0565d282-2-'+index}}" 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="{{'0565d282-3-'+index}}" price="{{item.market_price}}" lineThrough="{{true}}" color="#C0C0C0" subscriptSize="{{22}}" firstSize="{{22}}" secondSize="{{22}}" bind:__l="__l"></price-format></view></view></view></view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="column-end" catchtap="__e"><u-icon vue-id="{{'0565d282-4-'+index}}" name="plus-circle-fill" color="#254062" size="48" bind:__l="__l"></u-icon></view></view></navigator></block><loading-footer vue-id="0565d282-5" status="{{status}}" slot-empty="{{true}}" bind:__l="__l" vue-slots="{{['empty']}}"><view class="column-center" style="padding:200rpx 0 0;" slot="empty"><text class="lighter sm">暂无商品</text></view></loading-footer></view></view></view></scroll-view></view></view><view class="buy mx40 px40 br60 row-between"><view class="row"><view class="u-relative"><u-image vue-id="0565d282-6" 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><u-popup bind:input="__e" vue-id="0565d282-7" 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="{{('0565d282-8-'+index)+','+('0565d282-7')}}" 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="{{('0565d282-9-'+index)+','+('0565d282-7')}}" 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="{{('0565d282-10-'+index)+','+('0565d282-7')}}" name="trash" size="32" bind:__l="__l"></u-icon></view><view class="u-p-t-30"><u-number-box vue-id="{{('0565d282-11-'+index)+','+('0565d282-7')}}" 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 bind:close="__e" bind:input="__e" vue-id="0565d282-12" value="{{showSpec}}" data-event-opts="{{[['^close',[['e1']]],['^input',[['__set_model',['','showSpec','$event',[]]]]]]}}" bind:__l="__l"></shop-spec></view>