lisen 3 years ago
parent
commit
3e72332464

+ 4
- 0
src/pages/MineUserAll/RefundMoney/CheckRefund/index.jsx View File

80
 
80
 
81
 
81
 
82
   const onRefund = () => {
82
   const onRefund = () => {
83
+    Taro.showLoading({
84
+      title: '退款中',
85
+    })
83
     refund(id, {
86
     refund(id, {
84
       refundDecription: checkeds?.map(x => options.filter(y => y.key == x)[0]?.title).join(';'),
87
       refundDecription: checkeds?.map(x => options.filter(y => y.key == x)[0]?.title).join(';'),
85
       refundReason: explain,
88
       refundReason: explain,
86
     }).then((res) => {
89
     }).then((res) => {
90
+      Taro.hideLoading();
87
       Taro.navigateBack({ delta: 1 })
91
       Taro.navigateBack({ delta: 1 })
88
       Taro.showToast({
92
       Taro.showToast({
89
         title: "退款成功",
93
         title: "退款成功",

+ 1
- 1
src/pages/details/foodDetails/foodDetails.jsx View File

40
   }, [id, subOrderId]);
40
   }, [id, subOrderId]);
41
 
41
 
42
   useEffect(() => {
42
   useEffect(() => {
43
-    if (id && scene) {
43
+    if (id && scene&&!subOrderId) {
44
       getVerifyTargetList({
44
       getVerifyTargetList({
45
         shopId: id,
45
         shopId: id,
46
         isMine: true,
46
         isMine: true,