From c52fa2e79fa2c2672d1a096cfb04f75a7fb459b9 Mon Sep 17 00:00:00 2001 From: nigel007 <609441862@qq.com> Date: Wed, 12 May 2021 15:45:02 +0800 Subject: [PATCH] change appearance in blockchain functions --- .idea/workspace.xml | 439 ++++++++++++------------ src/forge/New/Index.js | 19 +- src/forge/New/new.css | 5 + src/forge/users/BlockchainExCre.jsx | 20 +- src/forge/users/BlockchainExHistory.jsx | 23 +- src/forge/users/BlockchainExList.jsx | 20 +- src/forge/users/BlockchainExVerify.jsx | 25 +- src/forge/users/BlockchainTransfer.jsx | 17 +- src/forge/users/Index.scss | 42 +++ 9 files changed, 344 insertions(+), 266 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index e5de4991..3324518b 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,53 +2,14 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - - - - - - - + + - - + + - + - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -105,37 +99,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -144,28 +112,37 @@ - + - - + + + + + - + - - + + + + + - + - - + + + + + @@ -181,36 +158,36 @@ - changeStatus - adjustTokenNum - id - console.log - onInput - issue_token_num - setAttribute - 创建 - 完成度: - data - blockchain - setList(result.data.results); - componentDidMount - getBlockchainTokenNum - start_date - 项目简介 - blockchain_token_num - 该合并请求可以进行自动合并操作 - 变基并合并 - 合并请求 - menu - fix_issue_id - initOnlineOfflineListener - 10.13.102.14 - transfer_login - 合并描述 - localhost:3001 proxy 3007 HEAD + changeDesc + 请填写项目token总数 + type + type= + getElementB + setS + setState + getElementsBy + getElement + state + hidden + show_div + this.state + handleBlockchainChange + <Table + 请输入转给 + 历史交易 + 交易 + ? + 售卖token数量 + 输入售卖金额 + selectProjectChange + auth + 确认收货 + token_num + 请输入转账token + token数量 任务 @@ -232,8 +209,6 @@ @@ -465,12 +442,12 @@ - + - @@ -485,7 +462,7 @@ - + @@ -675,24 +652,6 @@ - - - - - - - - - - - - - - - - - - @@ -753,13 +712,6 @@ - - - - - - - @@ -902,23 +854,6 @@ - - - - - - - - - - - - - - - - - @@ -929,33 +864,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -966,16 +874,6 @@ - - - - - - - - - - @@ -993,16 +891,6 @@ - - - - - - - - - - @@ -1024,16 +912,6 @@ - - - - - - - - - - @@ -1044,15 +922,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/forge/New/Index.js b/src/forge/New/Index.js index 53f62d80..3f013f59 100644 --- a/src/forge/New/Index.js +++ b/src/forge/New/Index.js @@ -46,7 +46,8 @@ class Index extends Component { project_category_name: undefined, license_name: undefined, ignore_name: undefined, - descNum:0 + descNum:0, + show_div:"hidden", } } componentDidMount = () => { @@ -259,7 +260,15 @@ class Index extends Component { // add by zxh: handleBlockchainChange handleBlockchainChange = (event) => { - console.log("here need the change of display") + if (this.state.show_div == 'hidden') { + this.setState({ + show_div: "visible" + }); + } else { + this.setState({ + show_div: "hidden" + }); + } } changeDesc=(e)=>{ @@ -516,12 +525,13 @@ class Index extends Component { className="privatePart" ref={(blockchain_item => {this.blockchain_item = blockchain_item})} > +
{getFieldDecorator('blockchain_token_all', { rules: [{ required: false, message: '请填写项目token总数(单位:枚)' }], })( - + )} {getFieldDecorator('blockchain_init_token', { @@ -529,8 +539,9 @@ class Index extends Component { required: false, message: '请填写项目创始人获取token总数(单位:枚)' }], })( - + )} +
{ diff --git a/src/forge/New/new.css b/src/forge/New/new.css index fcb6fa8c..8442a70b 100644 --- a/src/forge/New/new.css +++ b/src/forge/New/new.css @@ -54,4 +54,9 @@ .newContent_inline > .ant-form-item:nth-child(2){ margin-left:0px } +} + +.div_flex_row { + display: flex; + flex-direction: row; } \ No newline at end of file diff --git a/src/forge/users/BlockchainExCre.jsx b/src/forge/users/BlockchainExCre.jsx index 20e0e0a9..231e2248 100644 --- a/src/forge/users/BlockchainExCre.jsx +++ b/src/forge/users/BlockchainExCre.jsx @@ -100,7 +100,7 @@ function BlockchainExCreate(props){ return(
- + - + - {/**/} - {/**/} - - + - + - +
) diff --git a/src/forge/users/BlockchainExHistory.jsx b/src/forge/users/BlockchainExHistory.jsx index 1b41387e..be8a30d0 100644 --- a/src/forge/users/BlockchainExHistory.jsx +++ b/src/forge/users/BlockchainExHistory.jsx @@ -36,17 +36,28 @@ function BlockchainExHistory(props){ { list && list.length > 0 ?