@@ -309,14 +309,22 @@ export default {
const { status, msg, data } = await apiAddOrder(postData)
this.booLock = false
if (status) {
- this.AFPayBridge({
- ...data,
- callback: () => {
- this.selectFoods = []
- this.placeNum = ''
- this.$router.replace({ name: 'OrderList' })
- }
- })
+ // 是否需要唤起支付:0不需要直接下单成功 1需要唤起支付
+ const payStatus = data.pay_status
+ if (payStatus === 0) {
+ this.selectFoods = []
+ this.placeNum = ''
+ this.$router.replace({ name: 'OrderList' })
+ } else {
+ this.AFPayBridge({
+ ...data,
+ callback: () => {
+ }
+ })
} else {
Toast(msg)
}