diff --git a/src/forge/Merge/MessageCount.js b/src/forge/Merge/MessageCount.js index 9d5d5ce6..08cd5afb 100644 --- a/src/forge/Merge/MessageCount.js +++ b/src/forge/Merge/MessageCount.js @@ -644,13 +644,6 @@ class MessageCount extends Component { value={this.state.body} onChange={this.changbodypr} /> - {/**/} - )} - - {getFieldDecorator('blockchain_init_token', { - rules: [{ - required: false, message: '请填写项目创始人获取token的百分比(%)' - }], - })( - - )} - - - + { projectsType && projectsType === "mirror" && } + + {/*增加区块链选项,不要求必选,默认是选择的*/} + + {getFieldDecorator('blockchain')( + 项目加入确权机制(贡献确权上链并使用权益证明代表贡献) + )} + + + {this.blockchain_item = blockchain_item})} + > +
+ {getFieldDecorator('blockchain_token_all', { + rules: [{ + required: false, message: '请填写项目token总数(单位:枚)' + }], + })( + + )} + + {getFieldDecorator('blockchain_init_token', { + rules: [{ + required: false, message: '请填写项目创始人获取token的百分比(%)' + }], + })( + + )} +
+
+
注: 为必填项,否则为选填
diff --git a/src/forge/Order/Detail.js b/src/forge/Order/Detail.js index 15a8e470..23c34c84 100644 --- a/src/forge/Order/Detail.js +++ b/src/forge/Order/Detail.js @@ -42,8 +42,8 @@ class Detail extends Component { } componentDidMount = () => { - this.getDetail(); this.getBlockchainTokenNum(); + this.getDetail(); }; componentDidUpdate=()=>{ @@ -362,10 +362,13 @@ class Detail extends Component { )}

-

+ { + this.state.blockchain_token_num != -1 ?

悬赏金额: {this.state.blockchain_token_num} -

+

: "" + } +

里程碑: diff --git a/src/forge/Order/order_form.js b/src/forge/Order/order_form.js index 2121c735..324a1187 100644 --- a/src/forge/Order/order_form.js +++ b/src/forge/Order/order_form.js @@ -490,18 +490,21 @@ class order_form extends Component {

- - {getFieldDecorator("issue_token_num", {rules: []})( - this.input_token=input} - type={"number"} - min={0} - max={this.state.issue_token_num} - onChange={this.adjustTokenNum.bind(this)} - placeholder="定义悬赏token数量" - /> - )} - + {issue_chosen && issue_chosen.use_blockchain ? + + {getFieldDecorator("issue_token_num", { rules: [] })( + this.input_token = input} + type={"number"} + min={0} + max={this.state.issue_token_num} + onChange={this.adjustTokenNum.bind(this)} + placeholder="定义悬赏token数量" + /> + )} + + : ""} + {getFieldDecorator("assigned_to_id", {rules: []})(