Browse Source

4962

yufei
余菲 10 months ago
parent
commit
4c9555d519
2 changed files with 4 additions and 7 deletions
  1. +3
    -7
      package_A/pages/goods-detail/index.js
  2. +1
    -0
      request/index.js

+ 3
- 7
package_A/pages/goods-detail/index.js View File

@@ -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
})
})
}

+ 1
- 0
request/index.js View File

@@ -44,6 +44,7 @@ export const request = function(params) {
wx.showToast({
icon: "error",
title: e || '系统错误',
duration: 2000
})
})
}

Loading…
Cancel
Save