|
@@ -5,14 +5,14 @@
|
|
<tm-tabs align="split" class="qiehuan1" v-model="activeIndex" :list="list2" range-key="title" @change="changeTab"></tm-tabs>
|
|
<tm-tabs align="split" class="qiehuan1" v-model="activeIndex" :list="list2" range-key="title" @change="changeTab"></tm-tabs>
|
|
<div class="zhuti shangpin">
|
|
<div class="zhuti shangpin">
|
|
<tm-sheet class="jiaoxi" style="" v-for="item in test">
|
|
<tm-sheet class="jiaoxi" style="" v-for="item in test">
|
|
- <tm-cartCellListFood class="shuliang" :typeclick="typeclick" :mdata="item" v-on:sure="goSure(item.id)" v-on:Eval="goEval(item.id)" :cart-num.sync="item.buy"></tm-cartCellListFood>
|
|
|
|
|
|
+ <tm-cartCellListFood class="shuliang" :typeclick="typeclick" :mdata="item" v-on:sure="goSure(item.id)" v-on:Eval="goEval(item.id)" @shanchu="goShanChu(item.id)" :cart-num.sync="item.buy"></tm-cartCellListFood>
|
|
</tm-sheet>
|
|
</tm-sheet>
|
|
</div>
|
|
</div>
|
|
<view class="empty" v-if="isEmpty">
|
|
<view class="empty" v-if="isEmpty">
|
|
暂无内容~
|
|
暂无内容~
|
|
</view>
|
|
</view>
|
|
<view class="bottom" v-if="isBottom">
|
|
<view class="bottom" v-if="isBottom">
|
|
- 没有更多~
|
|
|
|
|
|
+ 没有更多了~
|
|
</view>
|
|
</view>
|
|
<!-- 弹出层消息 -->
|
|
<!-- 弹出层消息 -->
|
|
<tm-message ref="toast"></tm-message>
|
|
<tm-message ref="toast"></tm-message>
|
|
@@ -120,7 +120,30 @@ export default {
|
|
console.log(res.data.data.data,'订单列表');
|
|
console.log(res.data.data.data,'订单列表');
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- goSure(ids){
|
|
|
|
|
|
+ goShanChu(ids){
|
|
|
|
+ let that=this;
|
|
|
|
+ myRequest({
|
|
|
|
+ url:'/api/order/deleteOrder',
|
|
|
|
+ method:'post',
|
|
|
|
+ data:{
|
|
|
|
+ id:ids
|
|
|
|
+ }
|
|
|
|
+ }).then(res=>{
|
|
|
|
+ if(res.data.code==200){
|
|
|
|
+ that.$refs.toast.show({
|
|
|
|
+ model: 'success',
|
|
|
|
+ label: res.data.msg
|
|
|
|
+ })
|
|
|
|
+ that.getOrderList()
|
|
|
|
+ }else{
|
|
|
|
+ that.$refs.toast.show({
|
|
|
|
+ model: 'error',
|
|
|
|
+ label: res.data.msg
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ goSure(ids){
|
|
let that=this;
|
|
let that=this;
|
|
myRequest({
|
|
myRequest({
|
|
url:'/api/Order/receipt',
|
|
url:'/api/Order/receipt',
|