Commit d0cca6a0 by chenwq

新增重新发拍功能,优化发拍单保存逻辑

1 parent 74490a4b
...@@ -11,6 +11,10 @@ module.exports = { ...@@ -11,6 +11,10 @@ module.exports = {
saveAuction(data) { saveAuction(data) {
return api.fetch("/rest/audit/save", data); return api.fetch("/rest/audit/save", data);
}, },
/**保存-重新发拍 */
rePublishAuction(data) {
return api.fetch("/rest/audit/rePublish", data);
},
/**下架发拍单 */ /**下架发拍单 */
offShelfAuction(data) { offShelfAuction(data) {
return api.get({ return api.get({
......
...@@ -255,8 +255,9 @@ Page({ ...@@ -255,8 +255,9 @@ Page({
mask: true, mask: true,
}); });
homeApi const apiMethod = (optType === "republish" && isSubmit) ? homeApi.rePublishAuction(params) : homeApi.saveAuction(params);
.saveAuction(params)
apiMethod
.then((res) => { .then((res) => {
this.setData({ isRequesting: false }); this.setData({ isRequesting: false });
wx.hideLoading(); wx.hideLoading();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!