优化下单

This commit is contained in:
gyq
2025-04-21 17:45:05 +08:00
parent 694cb154a6
commit b5773cf78c
12 changed files with 275 additions and 16268 deletions

View File

@@ -79,7 +79,7 @@
<script setup>
import _ from 'lodash'
import { ref } from "vue";
import { ref, nextTick } from "vue";
import { useUser } from "@/store/user.js";
import payCard from "@/components/payCard/payCard.vue";
import SettleItem from './settleItem.vue'
@@ -245,13 +245,14 @@ const payCardRef = ref(null)
function show(t) {
dialogVisible.value = true;
cartInfo.value = { ...goodsStore.cartInfo }
console.log(cartInfo.value);
orderList.value = [...goodsStore.cartList, ...goodsStore.orderList.map(item => item.goods).flat()]
console.log('orderListInfo===================', { ...goodsStore.orderListInfo });
// 每次初始化paycard
setTimeout(() => {
payCardRef.value.reset()
}, 100)
nextTick(() => {
payCardRef.value.payCardInit()
})
}
defineExpose({