index.wxml 2.5 KB

1
  1. <view><view class="{{['product-window','on',module?'ons':'']}}"><view class="store-box"><view class="{{['store-title',$root.g0>1?'on':'']}}">配送</view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="iconfont icon-guanbi5" bindtap="__e"></view><block wx:if="{{$root.g1>1}}"><view class="cart acea-row row-middle"><block wx:if="{{$root.g2}}"><view data-event-opts="{{[['tap',[['storeNewInfofN',[1]]]]]}}" class="{{['mode','acea-row','row-center-wrapper',flag==1?'select':'']}}" bindtap="__e">商城配送</view></block><block wx:if="{{$root.g3}}"><view data-event-opts="{{[['tap',[['storeNewInfofN',[2]]]]]}}" class="{{['mode','acea-row','row-center-wrapper',flag==2?'select':'']}}" bindtap="__e">门店自提</view></block><block wx:if="{{$root.g4}}"><view data-event-opts="{{[['tap',[['storeNewInfofN',[3]]]]]}}" class="{{['mode','acea-row','row-center-wrapper',flag==3?'select':'']}}" bindtap="__e">门店配送</view></block></view></block><block wx:if="{{flag!=1}}"><view class="list-box"><block wx:for="{{storeList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['activeFn',[index,'$0'],[[['storeList','',index]]]]]]]}}" class="{{['list','acea-row','row-between-wrapper',(sortIndex===index)?'active':'']}}" bindtap="__e"><block wx:if="{{sortIndex===index}}"><text class="iconfont icon-xuanzhong6"></text></block><view class="left"><view class="name line1">{{item.name}}</view><view class="adress acea-row"><text class="iconfont icon-dingwei2"></text><view class="detail">{{item.detailed_address}}</view></view><view class="adress"><text class="iconfont icon-yingyeshijian2"></text>{{'营业时间:'+item.day_time+''}}</view></view><view class="right"><view data-event-opts="{{[['tap',[['goStore',['$0'],[[['storeList','',index]]]]]]]}}" class="font-num" catchtap="__e">进店选购</view><view class="km">{{"距离"+item.range+"km"}}</view><view class="icon acea-row row-center"><view data-event-opts="{{[['tap',[['call',['$0'],[[['storeList','',index,'phone']]]]]]]}}" class="iconfont icon-dianhua" catchtap="__e"></view><view data-event-opts="{{[['tap',[['showMaoLocation',['$0'],[[['storeList','',index]]]]]]]}}" class="iconfont icon-dingwei2" catchtap="__e"></view></view></view></view></block></view></block><view data-event-opts="{{[['tap',[['define',['$event']]]]]}}" class="btn" bindtap="__e">确认</view></view></view><block wx:if="{{module}}"><view data-event-opts="{{[['touchmove',[['',['$event']]]],['tap',[['e1',['$event']]]]]}}" class="mask" bindtouchmove="__e" bindtap="__e"></view></block></view>