@@ -320,10 +320,19 @@ Page({
num: page.data.form.number,
},
success: function (res) {
+ // console.log();
+ if (res.code == 1){
wx.showToast({
- title: res.msg,
+ title: res.msg,
+ image: "/images/icon-warning.png",
duration: 1500
});
+ }else{
+ wx.showToast({
+ duration: 1500
+ });
+ }
page.getGoods();
wx.hideLoading();
page.setData({