|
|
@ -51,6 +51,12 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<view style="height: 40px;border-top: 1px solid #eee;display: flex;"> |
|
|
|
|
|
<view style="flex: 1;"></view> |
|
|
|
|
|
<view @tap.stop="mealServing(item)" v-if="currentIndex == 13" class="btn" style="margin: 10px 0 0 10px;"> |
|
|
|
|
|
已出餐 |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
@ -194,6 +200,35 @@ |
|
|
uni.hideLoading(); |
|
|
uni.hideLoading(); |
|
|
}).catch((res) => {}); |
|
|
}).catch((res) => {}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
mealServing(item){ |
|
|
|
|
|
let that = this |
|
|
|
|
|
uni.showModal({ |
|
|
|
|
|
title: '提示', |
|
|
|
|
|
content: '确定要出餐吗?', |
|
|
|
|
|
success: function (res) { |
|
|
|
|
|
if (res.confirm) { |
|
|
|
|
|
let data = {} |
|
|
|
|
|
let url = '' |
|
|
|
|
|
if(item.deliveryType == 2){ //自取单 |
|
|
|
|
|
url = '/mall/order/complete' |
|
|
|
|
|
}else if(item.deliveryType == 1){ //外卖单 |
|
|
|
|
|
url = '/mall/order/shopMakeTime' |
|
|
|
|
|
} |
|
|
|
|
|
that.tui.request(url, "post", { |
|
|
|
|
|
orderId:item.id |
|
|
|
|
|
}, false, true).then((res) => { |
|
|
|
|
|
if (res.code == 200) { |
|
|
|
|
|
that.getList() |
|
|
|
|
|
} else { |
|
|
|
|
|
that.tui.toast(res.message); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
uni.hideLoading(); |
|
|
|
|
|
}).catch((res) => {}); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
goDetail(id){ |
|
|
goDetail(id){ |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
url:'/package2/shop/orderDetail?id=' + id |
|
|
url:'/package2/shop/orderDetail?id=' + id |
|
|
@ -246,6 +281,16 @@ |
|
|
bottom: 0; |
|
|
bottom: 0; |
|
|
left: 0; |
|
|
left: 0; |
|
|
} |
|
|
} |
|
|
|
|
|
.btn{ |
|
|
|
|
|
background: linear-gradient(90deg, rgba(227, 255, 150, 1), rgba(166, 255, 234, 1)); |
|
|
|
|
|
padding:0 5px; |
|
|
|
|
|
height: 30px; |
|
|
|
|
|
border-radius: 7px; |
|
|
|
|
|
line-height: 30px; |
|
|
|
|
|
text-align: center; |
|
|
|
|
|
font-weight: 700; |
|
|
|
|
|
margin-top: 10px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.title-name { |
|
|
.title-name { |
|
|
padding-top: 110rpx; |
|
|
padding-top: 110rpx; |
|
|
|