@@ -91,17 +91,13 @@ Page({ | |||
wx.navigateTo({ | |||
url: '/package_A/pages/exchange-success/index?data=' + encodeURIComponent(JSON.stringify(this.data.storeDetail)) | |||
}) | |||
} else { | |||
wx.showToast({ | |||
icon: 'none', | |||
title: res.msg | |||
}) | |||
} | |||
}).catch((e)=> { | |||
wx.hideLoading() | |||
wx.showToast({ | |||
icon: 'none', | |||
title: e.msg | |||
icon: 'error', | |||
title: e.msg, | |||
duration: 2000 | |||
}) | |||
}) | |||
} |
@@ -44,6 +44,7 @@ export const request = function(params) { | |||
wx.showToast({ | |||
icon: "error", | |||
title: e || '系统错误', | |||
duration: 2000 | |||
}) | |||
}) | |||
} |