From fcaaef137a2ee45ec027db4c50b1bf1d5f0c1e68 Mon Sep 17 00:00:00 2001 From: zhangxunhui Date: Sat, 4 Feb 2023 11:08:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BA=86=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E5=AF=B9=E4=BD=BF=E7=94=A8=E5=92=8C=E6=9C=AA=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E7=A1=AE=E6=9D=83=E9=A1=B9=E7=9B=AE=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Merge/MessageCount.js | 7 --- src/forge/New/Index.js | 80 +++++++++++++++++---------------- src/forge/Order/Detail.js | 9 ++-- src/forge/Order/order_form.js | 27 ++++++----- 4 files changed, 62 insertions(+), 61 deletions(-) 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: []})(