<block wx:if="{{!loading}}"><view class="container data-v-368aef34"><block wx:if="{{$root.g0}}"><view class="main data-v-368aef34"><view class="nav data-v-368aef34"><view class="header data-v-368aef34"><block wx:if="{{orderType=='takein'}}"><view class="left data-v-368aef34"><view class="store-name data-v-368aef34"><text class="data-v-368aef34">{{store.name}}</text><view class="iconfont iconarrow-right data-v-368aef34"></view></view><view class="store-location data-v-368aef34"><image class="mr-10 data-v-368aef34" style="width:30rpx;height:30rpx;" src="/static/images/order/location.png"></image><text class="data-v-368aef34">{{"距离您 "+store.distance_text}}</text></view></view></block><block wx:else><view class="left overflow-hidden data-v-368aef34"><view class="d-flex align-items-center overflow-hidden data-v-368aef34"><image class="mr-10 data-v-368aef34" style="width:30rpx;height:30rpx;" src="/static/images/order/location.png"></image><view class="font-size-extra-lg text-color-base font-weight-bold text-truncate data-v-368aef34">{{''+address.street+''}}</view></view><view class="font-size-sm text-color-assist overflow-hidden text-truncate data-v-368aef34">由<text class="text-color-base data-v-368aef34" style="margin:0 10rpx;">{{store.name}}</text>配送</view></view></block><view class="right data-v-368aef34"><view data-event-opts="{{[['tap',[['SET_ORDER_TYPE',['takein']]]]]}}" class="{{['dinein','data-v-368aef34',(orderType=='takein')?'active':'']}}" bindtap="__e"><text class="data-v-368aef34">自取</text></view><view data-event-opts="{{[['tap',[['takout',['$event']]]]]}}" class="{{['takeout','data-v-368aef34',(orderType=='takeout')?'active':'']}}" bindtap="__e"><text class="data-v-368aef34">外卖</text></view></view></view><view class="coupon data-v-368aef34"><text class="title data-v-368aef34">"霸气mini卡"超级购券活动,赶紧去购买</text><view class="iconfont iconarrow-right data-v-368aef34"></view></view></view><view class="content data-v-368aef34"><scroll-view class="menus data-v-368aef34" scroll-into-view="{{menuScrollIntoView}}" scroll-with-animation="{{true}}" scroll-y="{{true}}"><view class="wrapper data-v-368aef34"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['menu','data-v-368aef34',(item.$orig.id===currentCateId)?'current':'']}}" id="{{'menu-'+item.$orig.id}}" data-event-opts="{{[['tap',[['handleMenuTap',['$0'],[[['goods','',index,'id']]]]]]]}}" bindtap="__e"><text class="data-v-368aef34">{{item.$orig.name}}</text><view hidden="{{!(item.m0)}}" class="dot data-v-368aef34">{{item.m1}}</view></view></block></view></scroll-view><scroll-view class="goods data-v-368aef34" scroll-with-animation="{{true}}" scroll-y="{{true}}" scroll-top="{{cateScrollTop}}" data-event-opts="{{[['scroll',[['handleGoodsScroll',['$event']]]]]}}" bindscroll="__e"><view class="wrapper data-v-368aef34"><swiper class="ads data-v-368aef34" id="ads" autoplay="{{true}}" interval="{{3000}}" indicator-dots="{{true}}"><block wx:for="{{ads}}" wx:for-item="item" wx:for-index="index" wx:key="index"><swiper-item class="data-v-368aef34"><image src="{{item.image}}" class="data-v-368aef34"></image></swiper-item></block></swiper><view class="list data-v-368aef34"><block wx:for="{{$root.l2}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="category data-v-368aef34" id="{{'cate-'+item.$orig.id}}"><view class="title data-v-368aef34"><text class="data-v-368aef34">{{item.$orig.name}}</text><image class="icon data-v-368aef34" src="{{item.$orig.icon}}"></image></view><view class="items data-v-368aef34"><block wx:for="{{item.l1}}" wx:for-item="good" wx:for-index="key" wx:key="key"><view class="good data-v-368aef34"><image class="image data-v-368aef34" src="{{good.$orig.images}}" data-event-opts="{{[['tap',[['showGoodDetailModal',['$0','$1'],[[['goods','',index]],[['goods','',index],['goods_list','',key]]]]]]]}}" bindtap="__e"></image><view class="right data-v-368aef34"><text class="name data-v-368aef34">{{good.$orig.name}}</text><text class="tips data-v-368aef34">{{good.$orig.content}}</text><view class="price_and_action data-v-368aef34"><text class="price data-v-368aef34">{{"¥"+good.$orig.price}}</text><block wx:if="{{good.$orig.use_property}}"><view class="btn-group data-v-368aef34"><button class="btn property_btn data-v-368aef34" type="primary" hover-class="none" size="mini" data-event-opts="{{[['tap',[['showGoodDetailModal',['$0','$1'],[[['goods','',index]],[['goods','',index],['goods_list','',key]]]]]]]}}" bindtap="__e">选规格</button><view hidden="{{!(good.m2)}}" class="dot data-v-368aef34">{{good.m3}}</view></view></block><block wx:else><view class="btn-group data-v-368aef34"><button hidden="{{!(good.m4)}}" class="btn reduce_btn data-v-368aef34" type="default" plain="{{true}}" size="mini" hover-class="none" data-event-opts="{{[['tap',[['handleReduceFromCart',['$0','$1'],[[['goods','',index]],[['goods','',index],['goods_list','',key]]]]]]]}}" bindtap="__e"><view class="iconfont iconsami-select data-v-368aef34"></view></button><view hidden="{{!(good.m5)}}" class="number data-v-368aef34">{{good.m6}}</view><button class="btn add_btn data-v-368aef34" type="primary" size="min" hover-class="none" data-event-opts="{{[['tap',[['handleAddToCart',['$0','$1',1],[[['goods','',index]],[['goods','',index],['goods_list','',key]]]]]]]}}" bindtap="__e"><view class="iconfont iconadd-select data-v-368aef34"></view></button></view></block></view></view></view></block></view></view></block></view></view></scroll-view></view><block wx:if="{{$root.g1>0}}"><view class="cart-box data-v-368aef34"><view class="mark data-v-368aef34"><image class="cart-img data-v-368aef34" src="/static/images/menu/cart.png" data-event-opts="{{[['tap',[['openCartPopup',['$event']]]]]}}" bindtap="__e"></image><view class="tag data-v-368aef34">{{getCartGoodsNumber}}</view></view><view class="price data-v-368aef34">{{"¥"+getCartGoodsPrice}}</view><button class="pay-btn data-v-368aef34" type="primary" disabled="{{disabledPay}}" data-event-opts="{{[['tap',[['toPay',['$event']]]]]}}" bindtap="__e">{{''+(disabledPay?'差'+spread+'元起送':'去结算')+''}}</button></view></block></view></block><modal class="good-detail-modal data-v-368aef34" vue-id="9ad1f540-1" show="{{goodDetailModalVisible}}" color="#5A5B5C" width="90%" custom="{{true}}" padding="0rpx" radius="12rpx" bind:__l="__l" vue-slots="{{['default']}}"><view class="cover data-v-368aef34"><block wx:if="{{good.images}}"><image class="image data-v-368aef34" src="{{good.images}}"></image></block><view class="btn-group data-v-368aef34"><image src="/static/images/menu/share-good.png" class="data-v-368aef34"></image><image src="/static/images/menu/close.png" data-event-opts="{{[['tap',[['closeGoodDetailModal',['$event']]]]]}}" bindtap="__e" class="data-v-368aef34"></image></view></view><scroll-view class="detail data-v-368aef34" scroll-y="{{true}}"><view class="wrapper data-v-368aef34"><view class="basic data-v-368aef34"><view class="name data-v-368aef34">{{good.name}}</view><view class="tips data-v-368aef34">{{good.content}}</view></view><block wx:if="{{good.use_property}}"><view class="properties data-v-368aef34"><block wx:for="{{good.property}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="property data-v-368aef34"><view class="title data-v-368aef34"><text class="name data-v-368aef34">{{item.name}}</text><block wx:if="{{item.desc}}"><view class="desc data-v-368aef34">{{"("+item.desc+")"}}</view></block></view><view class="values data-v-368aef34"><block wx:for="{{item.values}}" wx:for-item="value" wx:for-index="key" wx:key="key"><view data-event-opts="{{[['tap',[['changePropertyDefault',[index,key]]]]]}}" class="{{['value','data-v-368aef34',(value.is_default)?'default':'']}}" bindtap="__e">{{''+value.value+''}}</view></block></view></view></block></view></block></view></scroll-view><view class="action data-v-368aef34"><view class="left data-v-368aef34"><view class="price data-v-368aef34">{{"¥"+good.price}}</view><block wx:if="{{$root.m7}}"><view class="props data-v-368aef34">{{''+$root.m8+''}}</view></block></view><view class="btn-group data-v-368aef34"><button class="btn data-v-368aef34" type="default" plain="{{true}}" size="mini" hover-class="none" data-event-opts="{{[['tap',[['handlePropertyReduce',['$event']]]]]}}" bindtap="__e"><view class="iconfont iconsami-select data-v-368aef34"></view></button><view class="number data-v-368aef34">{{good.number}}</view><button class="btn data-v-368aef34" type="primary" size="min" hover-class="none" data-event-opts="{{[['tap',[['handlePropertyAdd',['$event']]]]]}}" bindtap="__e"><view class="iconfont iconadd-select data-v-368aef34"></view></button></view></view><view data-event-opts="{{[['tap',[['handleAddToCartInModal',['$event']]]]]}}" class="add-to-cart-btn data-v-368aef34" bindtap="__e"><view class="data-v-368aef34">加入购物车</view></view></modal><popup-layer class="cart-popup data-v-368aef34" vue-id="9ad1f540-2" direction="top" show-pop="{{cartPopupVisible}}" bind:__l="__l" vue-slots="{{['content']}}"><view slot="content" class="data-v-368aef34"><view class="top data-v-368aef34"><text data-event-opts="{{[['tap',[['handleCartClear',['$event']]]]]}}" bindtap="__e" class="data-v-368aef34">清空</text></view><scroll-view class="cart-list data-v-368aef34" scroll-y="{{true}}"><view class="wrapper data-v-368aef34"><block wx:for="{{cart}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item data-v-368aef34"><view class="left data-v-368aef34"><view class="name data-v-368aef34">{{item.name}}</view><view class="props data-v-368aef34">{{item.props_text}}</view></view><view class="center data-v-368aef34"><text class="data-v-368aef34">{{"¥"+item.price}}</text></view><view class="right data-v-368aef34"><button class="btn data-v-368aef34" type="default" plain="{{true}}" size="mini" hover-class="none" data-event-opts="{{[['tap',[['handleCartItemReduce',[index]]]]]}}" bindtap="__e"><view class="iconfont iconsami-select data-v-368aef34"></view></button><view class="number data-v-368aef34">{{item.number}}</view><button class="btn data-v-368aef34" type="primary" size="min" hover-class="none" data-event-opts="{{[['tap',[['handleCartItemAdd',[index]]]]]}}" bindtap="__e"><view class="iconfont iconadd-select data-v-368aef34"></view></button></view></view></block><block wx:if="{{orderType=='takeout'&&store.packing_fee}}"><view class="item data-v-368aef34"><view class="left data-v-368aef34"><view class="name data-v-368aef34">包装费</view></view><view class="center data-v-368aef34"><text class="data-v-368aef34">{{"¥"+$root.m9}}</text></view><view class="right invisible data-v-368aef34"><button class="btn data-v-368aef34" type="default" plain="{{true}}" size="mini" hover-class="none"><view class="iconfont iconsami-select data-v-368aef34"></view></button><view class="number data-v-368aef34">1</view><button class="btn data-v-368aef34" type="primary" size="min" hover-class="none"><view class="iconfont iconadd-select data-v-368aef34"></view></button></view></view></block></view></scroll-view></view></popup-layer></view></block><block wx:else><view class="loading data-v-368aef34"><image src="/static/images/loading.gif" class="data-v-368aef34"></image></view></block>
|