需求按钮状态优化

This commit is contained in:
Dev
2026-10-28 17:36:00 +08:00
parent d47beb3f56
commit 7fa0d3ff04
3 changed files with 16 additions and 11 deletions
@@ -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;
}