问题修复
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
<view style="height: 200rpx;"></view>
|
||||
<view class="u-fixed bottom bg-fff ">
|
||||
<view class="u-flex u-abso">
|
||||
<template v-if="orderDetail.info.dineMode=='take-out'||!orderDetail.info.tableCode||pageData.shopInfo.registerType=='before'">
|
||||
<template v-if="orderDetail.info.dineMode=='take-out'||!orderDetail.info.tableCode|| (pageData.shopInfo&&pageData.shopInfo.registerType=='before')">
|
||||
<view class="u-flex-1" v-if="orderDetail.info.status=='unpaid'">
|
||||
<my-button @tap="toPay" borderRadius="100rpx" shape="circle"
|
||||
type="primary">结账</my-button>
|
||||
|
||||
@@ -347,6 +347,9 @@ import {
|
||||
} from "../quan_util.js";
|
||||
import { mathFloorPrice } from "@/commons/utils/goodsUtil.js";
|
||||
import { getDiscountByUserId } from "@/http/yskApi/market/consumeDiscount.js";
|
||||
import { useCartStore } from "@/stores/cart.js";
|
||||
|
||||
const cartStore = useCartStore();
|
||||
|
||||
// import { getCouponList } from '@/http/api/coupon.js'
|
||||
import { getHistoryOrder } from "@/http/api/order.js";
|
||||
@@ -1251,6 +1254,7 @@ async function pay(par) {
|
||||
function paySuccess() {
|
||||
infoBox.showToast("支付成功");
|
||||
payStatus = "success";
|
||||
cartStore.personCount=0;
|
||||
setTimeout(() => {
|
||||
// uni.$emit('orderDetail:update')
|
||||
uni.$emit("get:table");
|
||||
|
||||
Reference in New Issue
Block a user