index.wxml 9.6 KB

1
  1. <view class="data-v-46938e5d"><view class="{{['product-window','data-v-46938e5d',(attr.cartAttr===true?'on':'')+' '+(iSbnt?'join':'')+' '+(iScart?'joinCart':'')]}}"><view class="textpic acea-row row-between-wrapper data-v-46938e5d"><view data-event-opts="{{[['tap',[['showImg']]]]}}" class="pictrue data-v-46938e5d" bindtap="__e"><image src="{{attr.productSelect.image}}" class="data-v-46938e5d"></image><block wx:if="{{cusPreviewImg}}"><view class="icon acea-row row-center-wrapper data-v-46938e5d"><view class="iconfont icon-fangda1 data-v-46938e5d"></view></view></block></view><view class="text data-v-46938e5d"><view class="line1 data-v-46938e5d">{{''+(type=='setMeal'?title:attr.productSelect.store_name)+''}}</view><view class="money font-color data-v-46938e5d"><view class="acea-row row-middle data-v-46938e5d"><block wx:if="{{type=='points'}}"><text class="data-v-46938e5d"><block wx:if="{{$root.m0}}"><text class="data-v-46938e5d"><text class="num data-v-46938e5d">{{attr.productSelect.integral}}</text>积分</text></block><block wx:if="{{$root.m1}}"><text class="data-v-46938e5d">+</text></block><block wx:if="{{$root.m2}}"><text class="data-v-46938e5d">¥<text class="num data-v-46938e5d">{{attr.productSelect.price}}</text></text></block></text></block><block wx:else><text class="data-v-46938e5d">¥<text class="num data-v-46938e5d">{{attr.productSelect.price}}</text></text></block><block wx:if="{{is_vip>0&&attr.productSelect.vip_price&&storeInfo&&storeInfo.price_type=='member'}}"><text class="vip-money data-v-46938e5d">{{"¥"+attr.productSelect.vip_price}}</text></block><block wx:if="{{is_vip>0&&attr.productSelect.vip_price&&storeInfo&&storeInfo.price_type=='member'}}"><view class="vipImg data-v-46938e5d"><image src="../../static/images/vip.png" class="data-v-46938e5d"></image></view></block><block wx:if="{{is_vip>0&&attr.productSelect.vip_price&&storeInfo&&storeInfo.price_type=='level'}}"><view class="icon data-v-46938e5d"><text class="iconfont icon-dengjitubiao data-v-46938e5d"></text>{{storeInfo.level_name}}</view></block></view><block wx:if="{{isShow}}"><text class="stock data-v-46938e5d">{{"库存: "+attr.productSelect.stock}}</text></block><block wx:if="{{limitNum}}"><text class="stock data-v-46938e5d">{{(type=='seckill'?'限量':type=='points'?'剩余':'库存')+": "+attr.productSelect.quota}}</text></block><slot name="bottom"></slot><scoped-slots-bottom attr="{{attr}}" class="scoped-ref" bind:__l="__l"></scoped-slots-bottom></view></view><view data-event-opts="{{[['tap',[['closeAttr',['$event']]]]]}}" class="iconfont icon-guanbi data-v-46938e5d" bindtap="__e"></view></view><view class="rollTop data-v-46938e5d"><view class="productWinList data-v-46938e5d"><block wx:for="{{attr.productAttr}}" wx:for-item="item" wx:for-index="indexw" wx:key="indexw"><view class="item data-v-46938e5d"><view class="title data-v-46938e5d">{{item.attr_name}}</view><view class="listn acea-row row-middle data-v-46938e5d"><block wx:for="{{item.attr_value}}" wx:for-item="itemn" wx:for-index="indexn" wx:key="indexn"><view data-event-opts="{{[['tap',[['tapAttr',[indexw,indexn]]]]]}}" class="{{['itemn','data-v-46938e5d',item.index===itemn.attr?'on':'']}}" bindtap="__e">{{''+itemn.attr+''}}</view></block></view></view></block><block wx:if="{{isDelivery}}"><view class="item data-v-46938e5d"><view class="title data-v-46938e5d">配送方式</view><view class="listn acea-row row-middle data-v-46938e5d"><block wx:if="{{$root.g0}}"><view data-event-opts="{{[['tap',[['getstoreInfo',['1']]]]]}}" class="{{['itemn','data-v-46938e5d',flag==1?'on':isStoreBuy?'on2':'']}}" bindtap="__e">商城配送</view></block><block wx:if="{{$root.g1}}"><view data-event-opts="{{[['tap',[['getstoreInfo',['2']]]]]}}" class="{{['itemn','data-v-46938e5d',flag==2?'on':'']}}" bindtap="__e">门店自提</view></block><block wx:if="{{$root.g2}}"><view data-event-opts="{{[['tap',[['getstoreInfo',['3']]]]]}}" class="{{['itemn','data-v-46938e5d',flag==3?'on':'']}}" bindtap="__e">门店配送</view></block></view></view></block><block wx:if="{{flag==1&&isDelivery}}"><view data-event-opts="{{[['tap',[['openAddress',['$event']]]]]}}" class="address acea-row row-middle data-v-46938e5d" bindtap="__e"><view class="adsInfo data-v-46938e5d">{{addressInfo}}</view><view class="iconfont icon-gengduo3 data-v-46938e5d"></view></view></block><block wx:if="{{flag==3&&isDelivery}}"><view data-event-opts="{{[['tap',[['openStore',['$event']]]]]}}" class="address acea-row row-middle data-v-46938e5d" bindtap="__e"><view class="adsInfo data-v-46938e5d">{{deliveryName+deliveryAddress+distance}}</view><block wx:if="{{attr.isType!=1}}"><view class="iconfont icon-gengduo3 data-v-46938e5d"></view></block></view></block><block wx:if="{{flag==2&&isDelivery}}"><view data-event-opts="{{[['tap',[['openStore',['$event']]]]]}}" class="address data-v-46938e5d" bindtap="__e"><view class="data-v-46938e5d">{{deliveryName}}</view><view class="info acea-row row-between-wrapper data-v-46938e5d"><view class="con data-v-46938e5d">{{deliveryAddress}}</view><view class="data-v-46938e5d">{{distance}}<block wx:if="{{attr.isType!=1}}"><text class="iconfont icon-gengduo3 data-v-46938e5d"></text></block></view></view></view></block></view><block wx:if="{{type!='setMeal'&&type!='points'}}"><view class="cart acea-row row-between-wrapper data-v-46938e5d"><view class="title data-v-46938e5d">数量</view><view class="carnum acea-row row-left data-v-46938e5d"><block wx:if="{{attr.productSelect.cart_num<=1}}"><view class="{{['item','reduce','acea-row','row-center-wrapper','data-v-46938e5d',attr.productSelect.cart_num<=1?'on':'']}}"><text class="iconfont icon-shangpinshuliang-jian data-v-46938e5d"></text></view></block><block wx:else><view data-event-opts="{{[['tap',[['CartNumDes',['$event']]]]]}}" class="{{['item','reduce','acea-row','row-center-wrapper','data-v-46938e5d',attr.productSelect.cart_num<=1?'on':'']}}" bindtap="__e"><text class="iconfont icon-shangpinshuliang-jian data-v-46938e5d"></text></view></block><view class="item num acea-row row-middle data-v-46938e5d"><input type="number" data-name="productSelect.cart_num" always-embed="{{true}}" adjust-position="{{true}}" cursor-spacing="30" data-event-opts="{{[['input',[['__set_model',['$0','cart_num','$event',[]],['attr.productSelect']],['bindCode',['$0'],['attr.productSelect.cart_num']]]]]}}" value="{{attr.productSelect.cart_num}}" bindinput="__e" class="data-v-46938e5d"/></view><block wx:if="{{iSplus}}"><view data-event-opts="{{[['tap',[['CartNumAdd',['$event']]]]]}}" class="{{['item','plus','acea-row','row-center-wrapper','data-v-46938e5d',attr.productSelect.cart_num>=attr.productSelect.stock?'on':'']}}" bindtap="__e"><text class="iconfont icon-shangpinshuliang-jia data-v-46938e5d"></text></view></block><block wx:else><view data-event-opts="{{[['tap',[['CartNumAdd',['$event']]]]]}}" class="{{['item','plus','data-v-46938e5d',attr.productSelect.cart_num>=attr.productSelect.quota||attr.productSelect.cart_num>=attr.productSelect.product_stock||attr.productSelect.cart_num>=attr.productSelect.num||type=='seckill'&&attr.productSelect.cart_num>=attr.productSelect.once_num?'on':'']}}" bindtap="__e">+</view></block></view></view></block></view><block wx:if="{{iSbnt&&attr.productSelect.product_stock>0&&attr.productSelect.quota>0}}"><view data-event-opts="{{[['tap',[['goCat',['$event']]]]]}}" class="joinBnt bg-color data-v-46938e5d" bindtap="__e">我要参团</view></block><block wx:else><block wx:if="{{iSbnt&&attr.productSelect.quota<=0||iSbnt&&attr.productSelect.product_stock<=0}}"><view class="joinBnt on data-v-46938e5d">已售罄</view></block></block><block wx:if="{{iScart&&attr.productSelect.stock}}"><view data-event-opts="{{[['tap',[['goCat',['$event']]]]]}}" class="joinBnt bg-color data-v-46938e5d" bindtap="__e">确定</view></block><block wx:else><block wx:if="{{iScart&&!attr.productSelect.stock}}"><view class="joinBnt on data-v-46938e5d">已售罄</view></block></block></view><view class="{{['product-window','data-v-46938e5d',isStore?'store':'']}}"><view class="storeTitle data-v-46938e5d">选择门店<text data-event-opts="{{[['tap',[['closeStore',['$event']]]]]}}" class="iconfont icon-guanbi5 data-v-46938e5d" bindtap="__e"></text></view><view class="storeList data-v-46938e5d"><block wx:for="{{storeList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['tapStore',[index,'$0'],[[['storeList','',index]]]]]]]}}" class="{{['item','data-v-46938e5d',active==index?'on':'']}}" bindtap="__e"><view class="name line1 data-v-46938e5d">{{item.name}}</view><view class="address acea-row row-between data-v-46938e5d"><view class="iconfont icon-dingwei2 data-v-46938e5d"></view><view class="info data-v-46938e5d">{{item.address}}</view></view><view class="time acea-row row-middle data-v-46938e5d"><view class="iconfont icon-yingyeshijian2 data-v-46938e5d"></view><view class="data-v-46938e5d">{{"营业时间:"+item.day_time}}</view></view><block wx:if="{{active==index}}"><view class="iconfont icon-xuanzhong6 data-v-46938e5d"></view></block></view></block></view></view><address-window vue-id="35468162-1" isFooter="{{isFooter}}" pagesUrl="{{pagesUrl}}" fromType="{{1}}" address="{{address}}" data-ref="addressWindow" data-event-opts="{{[['^changeClose',[['changeClose']]],['^OnChangeAddress',[['OnChangeAddress']]]]}}" bind:changeClose="__e" bind:OnChangeAddress="__e" class="data-v-46938e5d vue-ref" bind:__l="__l"></address-window><view class="mask data-v-46938e5d" hidden="{{attr.cartAttr===false}}" data-event-opts="{{[['touchmove',[['',['$event']]]],['tap',[['closeAttr',['$event']]]]]}}" bindtouchmove="__e" bindtap="__e"></view><view class="mask on data-v-46938e5d" hidden="{{isStore===false}}" data-event-opts="{{[['touchmove',[['',['$event']]]],['tap',[['closeStore',['$event']]]]]}}" bindtouchmove="__e" bindtap="__e"></view></view>