需求按钮状态优化
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
// demandInfo 首屏为 null,所有判断需先做空值保护
|
||||
var canSubmitBidding = function (demandInfo) {
|
||||
if (!demandInfo) return false;
|
||||
// 发布者不能给自己的需求报名
|
||||
if (demandInfo.isMy) return false;
|
||||
return demandInfo.status == 1 && !demandInfo.myBidding;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user