购物车历史订单增加,代码优化

This commit is contained in:
GaoHao
2025-04-02 09:20:26 +08:00
parent 5a655ba09e
commit 5e6646b574
31 changed files with 418 additions and 357 deletions

View File

@@ -103,7 +103,7 @@
</template>
<script setup>
import { onMounted, getCurrentInstance, ref, reactive } from 'vue';
import { onMounted, ref, reactive } from 'vue';
import dayjs from 'dayjs';
import go from '@/commons/utils/go.js'
import datePickerview from './components/my-date-pickerview.vue'
@@ -139,7 +139,7 @@
PopUp: false,
form: {}
})
const currentInstance = getCurrentInstance()
const datePicker = ref()
const props = defineProps({
id: {
type: Number
@@ -256,7 +256,7 @@
function changeTime(e) {
selected.value = e
if (e == 'custom') {
currentInstance.ctx.$refs.datePicker.toggle()
datePicker.value.toggle()
} else {
getlist()
}