From 6592089b19aeb5345d9fe63bb43d77a9bde91cf7 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Tue, 17 Oct 2023 17:09:05 +0800 Subject: [PATCH] 专享礼包退款的优化 --- pages/giftpack/mygiftpack/mygiftpack.js | 11 ++++++++++- pages/giftpack/mygiftpack/mygiftpack.wxml | 5 +++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/pages/giftpack/mygiftpack/mygiftpack.js b/pages/giftpack/mygiftpack/mygiftpack.js index 3ff1ea1..d61eab4 100644 --- a/pages/giftpack/mygiftpack/mygiftpack.js +++ b/pages/giftpack/mygiftpack/mygiftpack.js @@ -144,7 +144,16 @@ Page({ navigateTo: function (e) { var th = this; var url = e.currentTarget.dataset.url; - getApp().goto(url); + let is_back = e.currentTarget.dataset.is_back + if (is_back==1) { + wx.showToast({ + title: '该礼包已退款', + icon: 'none', + duration: 2000 + }) + }else { + getApp().goto(url); + } }, //下拉事件 onReachBottom: function () { diff --git a/pages/giftpack/mygiftpack/mygiftpack.wxml b/pages/giftpack/mygiftpack/mygiftpack.wxml index 97f0626..cf605e9 100644 --- a/pages/giftpack/mygiftpack/mygiftpack.wxml +++ b/pages/giftpack/mygiftpack/mygiftpack.wxml @@ -23,7 +23,7 @@ - + @@ -93,9 +93,10 @@ - + + 已退款 -- libgit2 0.21.4