diff --git a/pageMarket/points/components/productPage.vue b/pageMarket/points/components/productPage.vue index d38498e..1e92208 100644 --- a/pageMarket/points/components/productPage.vue +++ b/pageMarket/points/components/productPage.vue @@ -88,7 +88,7 @@ function reachBottom() { } // 积分:商品:列表 -async function pointsGoodsPageAjax(page = listData.page) { +async function pointsGoodsPageAjax(page = listData.page, isPull = false) { try { const res = await pointsGoodsPage({ page: page, @@ -107,6 +107,15 @@ async function pointsGoodsPageAjax(page = listData.page) { } catch (error) { console.log(error); } + if (isPull) { + setTimeout(() => { + uni.showToast({ + title: '刷新成功', + icon: 'none' + }); + uni.stopPullDownRefresh(); + }, 300); + } } // 状态修改 diff --git a/pageMarket/points/components/record.vue b/pageMarket/points/components/record.vue index 9c35a0c..d566c0c 100644 --- a/pageMarket/points/components/record.vue +++ b/pageMarket/points/components/record.vue @@ -109,7 +109,7 @@ const tabs = ref([ label: '已完成' }, { - value: '退款中', + value: '已退款', label: '售后' } ]); diff --git a/pageMarket/points/components/userRecord.vue b/pageMarket/points/components/userRecord.vue index b72e3fe..a840261 100644 --- a/pageMarket/points/components/userRecord.vue +++ b/pageMarket/points/components/userRecord.vue @@ -48,7 +48,7 @@ function reachBottom() { } // 获取用户所有门店下积分列表 -async function pointUserPageAjax(page = listData.page) { +async function pointUserPageAjax(page = listData.page, isPull = false) { try { const res = await pointUserPage({ page: page, @@ -67,6 +67,15 @@ async function pointUserPageAjax(page = listData.page) { } catch (error) { console.log(error); } + if (isPull) { + setTimeout(() => { + uni.showToast({ + title: '刷新成功', + icon: 'none' + }); + uni.stopPullDownRefresh(); + }, 300); + } } // 去积分详情 diff --git a/pageMarket/points/index.vue b/pageMarket/points/index.vue index 0aaf758..2d984bd 100644 --- a/pageMarket/points/index.vue +++ b/pageMarket/points/index.vue @@ -91,13 +91,13 @@ onPullDownRefresh(() => { case 0: break; case 1: - // productPageRef.value.reachBottom(); + productPageRef.value.pointsGoodsPageAjax(1, true); break; case 2: recordRef.value.goodsRecordPageAjax(1, true); break; case 3: - // userRecordRef.value.reachBottom(); + userRecordRef.value.pointUserPageAjax(1, true); break; default: break;