Commit c0a4bd4f8ac3adb57c21d6178346744d05986134

Authored by wangfan
1 parent 8b46f905

提前点餐调整

@@ -115,6 +115,9 @@ Component({ @@ -115,6 +115,9 @@ Component({
115 current: this.data.item.image, // 当前显示图片的http链接 115 current: this.data.item.image, // 当前显示图片的http链接
116 urls: [this.data.item.image], // 需要预览的图片http链接列表 116 urls: [this.data.item.image], // 需要预览的图片http链接列表
117 }) 117 })
118 - }  
119 - } 118 + },
  119 + foodSpecAdd(e){
  120 + this.selectComponent("#foodSpecAdd-"+util.attr(e,'id')).addCook();
  121 + },
  122 + },
120 }) 123 })
1 -<view class="flex-ll hasListModel" style="width:100%;"> 1 +<view class="flex-ll hasListModel" style="width:100%;" bindtap="{{item.num>0?'':'foodSpecAdd'}}" data-id="{{item.id}}">
2 <view class="avatar"> 2 <view class="avatar">
3 <image mode="aspectFill" lazy-load="true" src="{{item.image}}"/> 3 <image mode="aspectFill" lazy-load="true" src="{{item.image}}"/>
4 </view> 4 </view>
@@ -32,7 +32,7 @@ @@ -32,7 +32,7 @@
32 </foodSpec> 32 </foodSpec>
33 <view class="t-align-c">{{item.num}}</view> 33 <view class="t-align-c">{{item.num}}</view>
34 </block> 34 </block>
35 - <foodSpec item="{{item}}" type="+" 35 + <foodSpec item="{{item}}" type="+" id="foodSpecAdd-{{item.id}}"
36 sellerid="{{sellerid}}" orderid="{{orderid}}" identity="{{identity}}" 36 sellerid="{{sellerid}}" orderid="{{orderid}}" identity="{{identity}}"
37 fromSoucre="{{fromSoucre}}" request_uri="{{request_uri}}" 37 fromSoucre="{{fromSoucre}}" request_uri="{{request_uri}}"
38 bindfoodSpecCallback="foodSpecCallback"> 38 bindfoodSpecCallback="foodSpecCallback">