Commit c0a4bd4f8ac3adb57c21d6178346744d05986134

Authored by wangfan
1 parent 8b46f905

提前点餐调整

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