优化支付后查看订单体验
This commit is contained in:
parent
702d1cdc36
commit
534d628b24
|
|
@ -335,10 +335,6 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
uni.showLoading({
|
|
||||||
title: '续费中...',
|
|
||||||
})
|
|
||||||
|
|
||||||
const renewData = {
|
const renewData = {
|
||||||
suitId: this.selectedPackage.id,
|
suitId: this.selectedPackage.id,
|
||||||
appId: '1', // 应用ID,根据实际情况调整
|
appId: '1', // 应用ID,根据实际情况调整
|
||||||
|
|
@ -371,11 +367,13 @@ export default {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '支付成功',
|
title: '支付成功',
|
||||||
icon: 'success',
|
icon: 'success',
|
||||||
duration: 2000,
|
duration: 3000,
|
||||||
})
|
|
||||||
uni.navigateTo({
|
|
||||||
url: `/pages/myOrder/orderDetail?id=${data.pay.bstId}`,
|
|
||||||
})
|
})
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/myOrder/orderDetail?id=${data.pay.bstId}`,
|
||||||
|
})
|
||||||
|
}, 3000)
|
||||||
},
|
},
|
||||||
fail: function (res) {
|
fail: function (res) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
|
||||||
|
|
@ -403,11 +403,13 @@ export default {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '支付成功',
|
title: '支付成功',
|
||||||
icon: 'success',
|
icon: 'success',
|
||||||
duration: 2000,
|
duration: 3000,
|
||||||
})
|
|
||||||
uni.navigateTo({
|
|
||||||
url: `/pages/myOrder/orderDetail?id=${data.pay.bstId}`,
|
|
||||||
})
|
})
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/myOrder/orderDetail?id=${data.pay.bstId}`,
|
||||||
|
})
|
||||||
|
}, 3000)
|
||||||
},
|
},
|
||||||
fail: function (res) {
|
fail: function (res) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,7 @@ import { usePagination } from '@/composables/usePagination.js'
|
||||||
import Pagination from '@/components/pagination/pagination.vue'
|
import Pagination from '@/components/pagination/pagination.vue'
|
||||||
|
|
||||||
// 使用分页组合式函数
|
// 使用分页组合式函数
|
||||||
|
|
||||||
const { list, loading, noMore, pagination, getList, loadMore } = usePagination({
|
const { list, loading, noMore, pagination, getList, loadMore } = usePagination({
|
||||||
fetchData: getMyOrder,
|
fetchData: getMyOrder,
|
||||||
defaultParams: {
|
defaultParams: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user