Commit d0cca6a0 by chenwq

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

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