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: {