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

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

@@ -62,7 +62,7 @@
</template>
<script setup>
import { onLoad, onShow, onReachBottom } from '@dcloudio/uni-app';
import { reactive, ref, computed, getCurrentInstance } from 'vue';
import { reactive, ref, computed } from 'vue';
import go from '@/commons/utils/go.js';
import myRepayment from './components/my-repayment';
import datePickerview from './components/my-date-pickerview.vue'
@@ -107,9 +107,8 @@
let statusHeight = computed(() => {
return 30 * pageData.statusList.length + 40 + 'px'
})
const currentInstance = getCurrentInstance()
let repayment = ref(null)
const datePicker = ref()
onLoad((options) => {
if ( options.id ) {
pageData.query.creditBuyerId = options.id;
@@ -187,7 +186,7 @@
function changeTime(e) {
pageData.selected = e
if (e == 'custom') {
currentInstance.ctx.$refs.datePicker.toggle()
datePicker.value.toggle()
} else {
pageData.query.page = 1;
pageData.list = [];