问题修复

This commit is contained in:
2025-12-01 10:50:08 +08:00
parent 0c5ba4b092
commit d2ba7af340
14 changed files with 346 additions and 201 deletions

View File

@@ -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>

View File

@@ -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");