From 534d628b24e58e785d2397fe86606251f6c9d0dd Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Fri, 29 Aug 2025 14:50:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=94=AF=E4=BB=98=E5=90=8E?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E8=AE=A2=E5=8D=95=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 14 ++++++-------- pages/lease/lease.vue | 10 ++++++---- pages/myOrder/myOrder.vue | 1 + 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 722cfa1..b445825 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -335,10 +335,6 @@ export default { } try { - uni.showLoading({ - title: '续费中...', - }) - const renewData = { suitId: this.selectedPackage.id, appId: '1', // 应用ID,根据实际情况调整 @@ -371,11 +367,13 @@ export default { uni.showToast({ title: '支付成功', icon: 'success', - duration: 2000, - }) - uni.navigateTo({ - url: `/pages/myOrder/orderDetail?id=${data.pay.bstId}`, + duration: 3000, }) + setTimeout(() => { + uni.navigateTo({ + url: `/pages/myOrder/orderDetail?id=${data.pay.bstId}`, + }) + }, 3000) }, fail: function (res) { uni.showToast({ diff --git a/pages/lease/lease.vue b/pages/lease/lease.vue index 11a4155..ad66807 100644 --- a/pages/lease/lease.vue +++ b/pages/lease/lease.vue @@ -403,11 +403,13 @@ export default { uni.showToast({ title: '支付成功', icon: 'success', - duration: 2000, - }) - uni.navigateTo({ - url: `/pages/myOrder/orderDetail?id=${data.pay.bstId}`, + duration: 3000, }) + setTimeout(() => { + uni.navigateTo({ + url: `/pages/myOrder/orderDetail?id=${data.pay.bstId}`, + }) + }, 3000) }, fail: function (res) { uni.showToast({ diff --git a/pages/myOrder/myOrder.vue b/pages/myOrder/myOrder.vue index 95b46d6..85c317f 100644 --- a/pages/myOrder/myOrder.vue +++ b/pages/myOrder/myOrder.vue @@ -76,6 +76,7 @@ import { usePagination } from '@/composables/usePagination.js' import Pagination from '@/components/pagination/pagination.vue' // 使用分页组合式函数 + const { list, loading, noMore, pagination, getList, loadMore } = usePagination({ fetchData: getMyOrder, defaultParams: {