Commit 7b2c29cfd827ae9ff5148d9a3f225d098e7383ee
1 parent
31389cb9
当接口提交异常的时候,要弹出提示
Showing
1 changed file
with
8 additions
and
0 deletions
pages/cart/cart2/cart2.js
| ... | ... | @@ -3842,6 +3842,13 @@ Page({ |
| 3842 | 3842 | th.setData({ |
| 3843 | 3843 | submit: 0, |
| 3844 | 3844 | }) |
| 3845 | + | |
| 3846 | + wx.showToast({ | |
| 3847 | + title: "网络繁忙("+res.statusCode+"),请重试", | |
| 3848 | + icon: 'none', | |
| 3849 | + duration: 2000 | |
| 3850 | + }) | |
| 3851 | + | |
| 3845 | 3852 | } |
| 3846 | 3853 | }, |
| 3847 | 3854 | fail: function () { |
| ... | ... | @@ -3851,6 +3858,7 @@ Page({ |
| 3851 | 3858 | th.setData({ |
| 3852 | 3859 | submit: 0, |
| 3853 | 3860 | }) |
| 3861 | + wx.showToast({ title: '系统错误' }) | |
| 3854 | 3862 | } |
| 3855 | 3863 | }) |
| 3856 | 3864 | ... | ... |