|
|
@ -38,9 +38,9 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="font12 width90 fcor666 mart10 marb10 fotlt">订单已准备完毕,喜欢您再来</view> |
|
|
|
<view class="font12 width90 fcor666 mart10 marb10 fotlt" v-if="recinfo.list">订单已准备完毕,喜欢您再来</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="width90 height70 backcorfff border-r alijusstart paddbotm10"> |
|
|
|
<view class="width90 height70 backcorfff border-r alijusstart paddbotm10" v-if="recinfo.list"> |
|
|
|
<view class="width70 fotlt"> |
|
|
|
<view class="width70 fotlt"> |
|
|
|
<view class="width94 fcor333 font14">请至柜台凭取餐码取餐</view> |
|
|
|
<view class="width94 fcor333 font14">请至柜台凭取餐码取餐</view> |
|
|
|
<view class="width94 fcor666 font12 mart5">如有询问手机尾号请点击右侧按钮查看</view> |
|
|
|
<view class="width94 fcor666 font12 mart5">如有询问手机尾号请点击右侧按钮查看</view> |
|
|
@ -64,7 +64,8 @@ |
|
|
|
v-for="(item,index) in recinfo.object.orderItems" :key='index'>{{item.code}}</view> |
|
|
|
v-for="(item,index) in recinfo.object.orderItems" :key='index'>{{item.code}}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="fotct font20 width100 mart10 colorc3" v-if="typeid == 4 && !recinfo.list"> |
|
|
|
<view class="fotct font20 width100 mart10 colorc3" v-if="typeid == 4 && !recinfo.list"> |
|
|
|
{{recinfo.statusDesc}} |
|
|
|
<!-- {{recinfo.statusDesc}} --> |
|
|
|
|
|
|
|
{{typeText[orderList.orderStatus]}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="fotct font20 width100 mart10 color2f6f43" |
|
|
|
<view class="fotct font20 width100 mart10 color2f6f43" |
|
|
|
v-if="typeid == 9 && !recinfo.object.orderItems[0].code">{{recinfo.statusDesc}}</view> |
|
|
|
v-if="typeid == 9 && !recinfo.object.orderItems[0].code">{{recinfo.statusDesc}}</view> |
|
|
@ -76,7 +77,8 @@ |
|
|
|
充值明细 |
|
|
|
充值明细 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width94 paddtop15 font16 fontwig6 alijusstart" v-else> |
|
|
|
<view class="width94 paddtop15 font16 fontwig6 alijusstart" v-else> |
|
|
|
<image src="../static/imgs/desloca.png" mode="widthFix" class="icon20 marglerig"></image> {{orderList.highChildOrderList[0].storeName}} |
|
|
|
<image src="../static/imgs/desloca.png" mode="widthFix" class="icon20 marglerig"></image> |
|
|
|
|
|
|
|
{{orderList.highChildOrderList[0].storeName}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width100 mart5"> |
|
|
|
<view class="width100 mart5"> |
|
|
|
<view class="width90 alijusstart mart15" v-for="(item,index) in orderList.highChildOrderList" |
|
|
|
<view class="width90 alijusstart mart15" v-for="(item,index) in orderList.highChildOrderList" |
|
|
@ -118,9 +120,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
<view class="width92 fotrt mart5 font14 fcor999"> |
|
|
|
<view class="width92 fotrt mart5 font14 fcor999"> |
|
|
|
优惠券优惠 <text class="margle fcoreb5 font16 fontwig6">¥ {{orderList.deductionCouponPrice}}</text> |
|
|
|
优惠券优惠 <text class="margle fcoreb5 font16 fontwig6">¥ {{orderList.deductionCouponPrice}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width92 fotrt mart5 font14 fcor999"> |
|
|
|
<view class="width92 fotrt mart5 font14 fcor999"> |
|
|
|
商品优惠 <text class="margle fcoreb5 font16 fontwig6">¥ {{orderList.deductionProductPrice}}</text> |
|
|
|
商品优惠 <text class="margle fcoreb5 font16 fontwig6">¥ {{orderList.deductionProductPrice}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width92 fotrt mart5 font14 fcor999"> |
|
|
|
<view class="width92 fotrt mart5 font14 fcor999"> |
|
|
|
积分抵扣 <text class="margle fcoreb5 font16 fontwig6">¥ {{(orderList.payGold / 100).toFixed(2)}}</text> |
|
|
|
积分抵扣 <text class="margle fcoreb5 font16 fontwig6">¥ {{(orderList.payGold / 100).toFixed(2)}}</text> |
|
|
@ -149,11 +151,11 @@ |
|
|
|
<view class="width94 alijusstart mart20 font14 fcor666"> |
|
|
|
<view class="width94 alijusstart mart20 font14 fcor666"> |
|
|
|
<view class="width30">下单时间</view> |
|
|
|
<view class="width30">下单时间</view> |
|
|
|
<view class="width70 fcor333 fotrt">{{orderList.createTime | timeFormat('yyyy-mm-dd hh:mm:ss')}}</view> |
|
|
|
<view class="width70 fcor333 fotrt">{{orderList.createTime | timeFormat('yyyy-mm-dd hh:mm:ss')}}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width94 alijusstart mart20 font14 fcor666"> |
|
|
|
<view class="width94 alijusstart mart20 font14 fcor666"> |
|
|
|
<view class="width30">支付时间</view> |
|
|
|
<view class="width30">支付时间</view> |
|
|
|
<view class="width70 fcor333 fotrt">{{orderList.payTime | timeFormat('yyyy-mm-dd hh:mm:ss')}}</view> |
|
|
|
<view class="width70 fcor333 fotrt">{{orderList.payTime | timeFormat('yyyy-mm-dd hh:mm:ss')}}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width94 alijusstart mart20 font14 fcor666" v-if="typeid == 4"> |
|
|
|
<view class="width94 alijusstart mart20 font14 fcor666" v-if="typeid == 4"> |
|
|
|
<view class="width30">就餐方式</view> |
|
|
|
<view class="width30">就餐方式</view> |
|
|
|
<view class="width70 fotrt" v-if="recinfo.eatType == 1">店内就餐</view> |
|
|
|
<view class="width70 fotrt" v-if="recinfo.eatType == 1">店内就餐</view> |
|
|
@ -161,9 +163,9 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width94 alijusstart mart20 font14 fcor666" v-if="orderList.payType"> |
|
|
|
<view class="width94 alijusstart mart20 font14 fcor666" v-if="orderList.payType"> |
|
|
|
<view class="width30">支付方式</view> |
|
|
|
<view class="width30">支付方式</view> |
|
|
|
<view class="width70 fcor333 fotrt" v-if="orderList.payType == 2">微信</view> |
|
|
|
<view class="width70 fcor333 fotrt" v-if="orderList.payType == 2">微信支付</view> |
|
|
|
<view class="width70 fcor333 fotrt" v-if="orderList.payType == 3">积分</view> |
|
|
|
<view class="width70 fcor333 fotrt" v-if="orderList.payType == 3">积分兑换</view> |
|
|
|
<view class="width70 fcor333 fotrt" v-if="orderList.payType == 4">工会卡</view> |
|
|
|
<view class="width70 fcor333 fotrt" v-if="orderList.payType == 4">汇联通工会卡</view> |
|
|
|
<view class="width70 fcor333 fotrt" v-if="orderList.payType == 5">银联支付</view> |
|
|
|
<view class="width70 fcor333 fotrt" v-if="orderList.payType == 5">银联支付</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width94 alijusstart mart20 font14 fcor666" v-if="typeid == 10"> |
|
|
|
<view class="width94 alijusstart mart20 font14 fcor666" v-if="typeid == 10"> |
|
|
@ -182,7 +184,7 @@ |
|
|
|
<view class="height50 width100"></view> |
|
|
|
<view class="height50 width100"></view> |
|
|
|
<view class="bottomstu backcorfff width100 height50 alijusend" v-if="orderList.orderStatus == 3"> |
|
|
|
<view class="bottomstu backcorfff width100 height50 alijusend" v-if="orderList.orderStatus == 3"> |
|
|
|
<button open-type="contact" class="cusservice font12 fcor666">联系客服</button> |
|
|
|
<button open-type="contact" class="cusservice font12 fcor666">联系客服</button> |
|
|
|
<view class="buybtn font12 fcorfff">再来一单</view> |
|
|
|
<!-- <view class="buybtn font12 fcorfff">再来一单</view> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -191,7 +193,7 @@ |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import { |
|
|
|
import { |
|
|
|
getThirdOrderByOrderNo, |
|
|
|
getThirdOrderByOrderNo, |
|
|
|
cancel, |
|
|
|
cancel, |
|
|
|
getDetailByOrderNo |
|
|
|
getDetailByOrderNo |
|
|
|
} from '../../Utils/Api.js'; |
|
|
|
} from '../../Utils/Api.js'; |
|
|
|
export default { |
|
|
|
export default { |
|
|
@ -217,7 +219,7 @@ |
|
|
|
6: '退款中', |
|
|
|
6: '退款中', |
|
|
|
7: '退款失败' |
|
|
|
7: '退款失败' |
|
|
|
}, |
|
|
|
}, |
|
|
|
phonestu: 1 ,// 手机号查看状态 |
|
|
|
phonestu: 1, // 手机号查看状态 |
|
|
|
recinfo: [], // 订单详情 |
|
|
|
recinfo: [], // 订单详情 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
@ -241,43 +243,43 @@ |
|
|
|
this.orderList.highChildOrderList.forEach((food) => { |
|
|
|
this.orderList.highChildOrderList.forEach((food) => { |
|
|
|
this.coutnums += food.saleCount |
|
|
|
this.coutnums += food.saleCount |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
//查询订单详情 |
|
|
|
//查询订单详情 |
|
|
|
getDetailByOrderNo() { |
|
|
|
getDetailByOrderNo() { |
|
|
|
uni.showLoading({ |
|
|
|
uni.showLoading({ |
|
|
|
title: '加载中...' |
|
|
|
title: '加载中...' |
|
|
|
}) |
|
|
|
}) |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
orderNo: this.orderId, |
|
|
|
orderNo: this.orderId, |
|
|
|
} |
|
|
|
} |
|
|
|
getDetailByOrderNo(params).then(res => { |
|
|
|
getDetailByOrderNo(params).then(res => { |
|
|
|
uni.hideLoading(); |
|
|
|
uni.hideLoading(); |
|
|
|
// if (res.return_code == '000000') { |
|
|
|
// if (res.return_code == '000000') { |
|
|
|
// this.recinfo = res.return_data; |
|
|
|
// this.recinfo = res.return_data; |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
if (res.return_code == '000000') { |
|
|
|
this.typeid = res.return_data.highChildOrderList[0].goodsType; |
|
|
|
this.typeid = res.return_data.highChildOrderList[0].goodsType; |
|
|
|
this.orderList = res.return_data; |
|
|
|
this.orderList = res.return_data; |
|
|
|
if (this.orderList.orderStatus == 1) { |
|
|
|
if (this.orderList.orderStatus == 1) { |
|
|
|
this.timer = setInterval(() => { |
|
|
|
this.timer = setInterval(() => { |
|
|
|
this.showtime() |
|
|
|
this.showtime() |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.orderList.orderStatus == 2) { |
|
|
|
if (this.orderList.orderStatus == 2) { |
|
|
|
this.setTimer(); |
|
|
|
this.setTimer(); |
|
|
|
} |
|
|
|
} |
|
|
|
this.coutnums = 0; |
|
|
|
this.coutnums = 0; |
|
|
|
this.getAllCount(); |
|
|
|
this.getAllCount(); |
|
|
|
this.getThirdOrderByOrderNo(); |
|
|
|
this.getThirdOrderByOrderNo(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
|
title: res.return_msg, |
|
|
|
title: res.return_msg, |
|
|
|
icon: 'none', |
|
|
|
icon: 'none', |
|
|
|
duration: 2000 |
|
|
|
duration: 2000 |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
//查询商品详情 |
|
|
|
//查询商品详情 |
|
|
|
getThirdOrderByOrderNo() { |
|
|
|
getThirdOrderByOrderNo() { |
|
|
@ -342,7 +344,7 @@ |
|
|
|
//跳转支付 |
|
|
|
//跳转支付 |
|
|
|
jumppay() { |
|
|
|
jumppay() { |
|
|
|
uni.redirectTo({ |
|
|
|
uni.redirectTo({ |
|
|
|
url: '/qianzhu-KFC/payment-method/payment-method?orderId=' + this.orderList.id + '&amount=' + |
|
|
|
url: '/qianzhu-KFC/payment-method/payment-method?orderId=' + this.orderList. orderNo+ '&amount=' + |
|
|
|
this.orderList.payPrice + '&productType=' + this.orderList.productType |
|
|
|
this.orderList.payPrice + '&productType=' + this.orderList.productType |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|