Browse Source

申诉成功返回到首页

XWookey 10 months ago
parent
commit
119bdfae7e
1 changed files with 17 additions and 1 deletions
  1. 17 1
      pages/charging/charging.js

+ 17 - 1
pages/charging/charging.js

@@ -522,14 +522,30 @@ Page({
                         title: '提示',
                         content: '申诉成功,异常订单已删除',
                         confirmColor:'#00AADD',
+                        showCancel: false,
+                        success: function (res1) {
+                            if (res1.confirm) {
+                                wx.switchTab({
+                                    url: '/pages/index/index'
+                                })
+                            }
+                        }
                     })
+
                 }else{
                     console.info(res.data.msg)
                     wx.showModal({
                         title: '提示',
-                        content: '申诉失败,未发现订单异常。如有疑问请拨打客服电话4009608068',
+                        content: '申诉失败, ' + res.data.msg + '。如有疑问请拨打客服电话4009608068',
                         confirmColor:'#00AADD',
                         showCancel: false,
+                        // success: function (res1) {
+                        //     if (res1.confirm) {
+                        //         wx.switchTab({
+                        //             url: '/pages/index/index'
+                        //         })
+                        //     }
+                        // }
                     })
                 }
             },