|
|
@@ -124,6 +124,25 @@ Page({ |
|
|
|
setTags: true |
|
|
|
}) |
|
|
|
}, |
|
|
|
notReleaseDemands(){ |
|
|
|
let { selectedTag, detailValue } = this.data; |
|
|
|
if(!detailValue){ |
|
|
|
wx.showToast({ |
|
|
|
title: '需求详情不得为空~', |
|
|
|
icon: 'none', |
|
|
|
duration: 2000 |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
if(selectedTag.length < 1){ |
|
|
|
wx.showToast({ |
|
|
|
title: '请至少选择需求一个类型~', |
|
|
|
icon: 'none', |
|
|
|
duration: 2000 |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
}, |
|
|
|
// 发布需求 |
|
|
|
releaseDemands() { |
|
|
|
this.setData({ |
|
|
@@ -136,6 +155,7 @@ Page({ |
|
|
|
type: selectedTag.join(','), |
|
|
|
businessCommunicationDemandId, |
|
|
|
}; |
|
|
|
|
|
|
|
$request.post('/businessCommunicationDemand/saveDemand.action', param).then(res => { |
|
|
|
this.setData({ |
|
|
|
saveLoading: false |