Files
2025-05-07 17:42:12 +08:00

1 line
5.8 KiB
XML

<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 a:for="{{cateList}}" a:for-item="item" a:for-index="index" a:key="index"><view data-event-opts="{{[['tap',[['changeActive',[index]]]]]}}" class="{{('one-item sm '+(index==selectIndex?'active bg-white':''))}}" onTap="__e"><text class="name">{{item.name}}</text><block a:if="{{index==selectIndex}}"><view class="active-line bg-default"></view></block></view></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']]]]]}}" onScrollToLower="__e"><view class="main-wrap"><view class="goods"><view class="u-p-t-32 bold-600">{{cateName}}</view><view class="u-p-t-32"><navigator class="bg-white br16 row u-col-top u-m-b-24" url="{{'/pages/shop/shop?id='+item.id}}" hover-class="none" a:for="{{goodsList}}" a:for-item="item" a:for-index="index" a:key="index"><view><u-image vue-id="{{'055bd258-1-'+index}}" src="{{item.image}}" width="136" height="136" border-radius="16" onVueInit="__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="{{'055bd258-2-'+index}}" price="{{item.price}}" subscriptSize="{{22}}" firstSize="{{34}}" secondSize="{{26}}" onVueInit="__l"></price-format></view><view class="u-m-l-8"><price-format vue-id="{{'055bd258-3-'+index}}" 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',[['addCart',['$0'],[[['goodsList','',index]]]]]]]}}" class="column-end" catchTap="__e"><u-icon vue-id="{{'055bd258-4-'+index}}" name="plus-circle-fill" color="#254062" size="48" onVueInit="__l"></u-icon></view></view></navigator><loading-footer vue-id="055bd258-5" status="{{status}}" slot-empty="{{true}}" onVueInit="__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 data-event-opts="{{[['tap',[['showCartPopup',['$event']]]]]}}" class="row" onTap="__e"><view class="u-relative"><u-image vue-id="055bd258-6" src="{{cloudPath+'img/icon_cart.png'}}" width="80" height="80" onVueInit="__l"></u-image><block a:if="{{cartNum}}"><view class="u-absolute top-0 right-0 text-fff number u-text-center xxs">{{''+cartNum+''}}</view></block></view><view class="u-m-l-32"><block a:if="{{totalPrice}}"><view class="row-center"><text class="text-fff">共计</text><view class="primary u-m-t-10 u-m-l-20"><price-format vue-id="055bd258-7" price="{{totalPrice}}" subscriptSize="{{26}}" firstSize="{{34}}" secondSize="{{26}}" onVueInit="__l"></price-format></view></view></block><block a:else><view class="text-fff">未选购商品</view></block></view></view><view data-event-opts="{{[['tap',[['goSettle',['$event']]]]]}}" class="text-999" onTap="__e">去结算</view></view><u-popup onInput="__e" vue-id="055bd258-8" 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><block a:if="{{cartLists.length>0}}"><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="{{cartLists}}" a:for-item="item" a:for-index="index" a:key="index"><view class="row-start"><view><u-image vue-id="{{('055bd258-9-'+index)+','+('055bd258-8')}}" src="{{item.img}}" width="136" height="136" border-radius="16" onVueInit="__l"></u-image></view><view class="ml20"><view class="u-line-2 sm">{{item.name}}</view><view class="xxs text-999 u-m-t-8 attr u-p-6-8 u-p-b-8"><text>味浓芳香</text><text class="u-m-l-8 u-m-r-8">|</text><text>味浓芳香</text><text class="u-m-l-8 u-m-r-8">|</text><text>味浓芳香</text></view><view class="primary"><price-format vue-id="{{('055bd258-10-'+index)+','+('055bd258-8')}}" price="{{item.price}}" subscriptSize="{{22}}" firstSize="{{34}}" secondSize="{{26}}" onVueInit="__l"></price-format></view></view></view><view><view data-event-opts="{{[['tap',[['deleteGoods',['$0'],[[['cartLists','',index,'cart_id']]]]]]]}}" class="u-text-right" onTap="__e"><u-icon class="u-p-t-10" vue-id="{{('055bd258-11-'+index)+','+('055bd258-8')}}" name="trash" size="32" onVueInit="__l"></u-icon></view><view class="u-p-t-30"><u-number-box vue-id="{{('055bd258-12-'+index)+','+('055bd258-8')}}" disabled="{{item.cart_status!=0}}" min="{{1}}" max="{{item.item_stock}}" value="{{item.goods_num}}" data-event-opts="{{[['^blur',[['countChange',['$event','$0','$1'],[[['cartLists','',index,'cart_id']],[['cartLists','',index]]]]]],['^minus',[['countChange',['$event','$0','$1'],[[['cartLists','',index,'cart_id']],[['cartLists','',index]]]]]],['^plus',[['countChange',['$event','$0','$1'],[[['cartLists','',index,'cart_id']],[['cartLists','',index]]]]]]]}}" onBlur="__e" onMinus="__e" onPlus="__e" onVueInit="__l"></u-number-box></view></view></view></scroll-view></view></block><block a:else><view class="u-text-center" style="height:700rpx;line-height:700rpx;">~ 暂无商品 ~</view></block></view></u-popup><shop-spec onClose="__e" onInput="__e" vue-id="055bd258-13" value="{{showSpec}}" data-event-opts="{{[['^close',[['e0']]],['^input',[['__set_model',['','showSpec','$event',[]]]]]]}}" onVueInit="__l"></shop-spec></view>