Files
2025-05-13 10:12:15 +08:00

1 line
5.9 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" url="{{'/pages/shop/shop?id='+item.id}}" hover-class="none"><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 class="column-end"><view data-event-opts="{{[['tap',[['addCartFun',['$0'],[[['goodsList','',index]]]]]]]}}" catchtap="__e"><u-icon vue-id="{{'0565d282-4-'+index}}" name="plus-circle-fill" color="#254062" size="48" bind:__l="__l"></u-icon></view></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 data-event-opts="{{[['tap',[['showCartPopup',['$event']]]]]}}" class="row" bindtap="__e"><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="{{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 wx: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="0565d282-7" price="{{totalPrice}}" subscriptSize="{{26}}" firstSize="{{34}}" secondSize="{{26}}" bind:__l="__l"></price-format></view></view></block><block wx:else><view class="text-fff">未选购商品</view></block></view></view><view data-event-opts="{{[['tap',[['goSettle',['$event']]]]]}}" class="text-999" bindtap="__e">去结算</view></view><u-popup bind:input="__e" vue-id="0565d282-8" 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><block wx:if="{{$root.g0>0}}"><view><scroll-view style="height:700rpx;" scroll-y="true" scroll-with-animation="true"><block wx:for="{{cartLists}}" 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-9-'+index)+','+('0565d282-8')}}" src="{{item.img}}" width="136" height="136" border-radius="16" bind:__l="__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="{{('0565d282-10-'+index)+','+('0565d282-8')}}" price="{{item.price}}" subscriptSize="{{22}}" firstSize="{{34}}" secondSize="{{26}}" bind:__l="__l"></price-format></view></view></view><view><view data-event-opts="{{[['tap',[['deleteGoods',['$0'],[[['cartLists','',index,'cart_id']]]]]]]}}" class="u-text-right" bindtap="__e"><u-icon class="u-p-t-10" vue-id="{{('0565d282-11-'+index)+','+('0565d282-8')}}" name="trash" size="32" bind:__l="__l"></u-icon></view><view class="u-p-t-30"><u-number-box vue-id="{{('0565d282-12-'+index)+','+('0565d282-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]]]]]]]}}" bind:blur="__e" bind:minus="__e" bind:plus="__e" bind:__l="__l"></u-number-box></view></view></view></block></scroll-view></view></block><block wx:else><view class="u-text-center" style="height:700rpx;line-height:700rpx;">~ 暂无商品 ~</view></block></view></u-popup><shop-spec vue-id="0565d282-13" name="{{goodsName}}" spec="{{goods_spec}}" value="{{showSpec}}" data-event-opts="{{[['^close',[['e0']]],['^confirm',[['confirmSpec']]],['^input',[['__set_model',['','showSpec','$event',[]]]]]]}}" bind:close="__e" bind:confirm="__e" bind:input="__e" bind:__l="__l"></shop-spec></view>