Merge pull request '对区块链相关功能的修改' (#505) from Nigel/forgeplus-react:master_zxh into dev_nanda

This commit is contained in:
xxq250 2023-02-02 21:51:08 +08:00
commit 266036cd2a
5 changed files with 4291 additions and 5373 deletions

9648
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -174,8 +174,8 @@
"eslintConfig": {
"extends": "react-app"
},
"proxy": "http://localhost:3000",
"port": "3007",
"proxy": "http://8.130.51.51:3021",
"port": "3022",
"devDependencies": {
"@babel/runtime": "7.0.0-beta.51",
"babel-cli": "^6.26.0",

View File

@ -605,10 +605,10 @@ class Index extends Component {
{getFieldDecorator('blockchain_init_token', {
rules: [{
required: false, message: '请填写项目创始人获取token总数(单位:枚)'
required: false, message: '请填写项目创始人获取token的百分比(%)'
}],
})(
<Input type={'number'} min={0} max={100} step={1} placeholder="请填写项目创始人获去总token的百分比(%)" />
<Input type={'number'} min={0} max={100} step={1} placeholder="请填写项目创始人获token的百分比(%)" />
)}
</div>
</Form.Item>

View File

@ -43,12 +43,12 @@ class order_form extends Component {
};
}
getTokenProject = (user_id, owner_login, project_name) => {
getTokenProject = (user_id, owner_login, project_identifier) => {
const url = `/users/blockchain/balance_project`;
axios.post(url,{
user_id: user_id,
owner_login: owner_login,
project_name: project_name
project_identifier: project_identifier
}).then(result=>{
if(result && result.data){
this.state.issue_token_num = result.data.balance;

View File

@ -401,14 +401,14 @@ class Infos extends Component {
<i className="iconfont icon-shezhi4 font-15"></i>
修改资料
</Button>*/}
<Button
{/* <Button
block
className="text-button-grey ml-5"
href={`/sponsor/${user && user.login}`}
type="primary"
>
修改赞助信息
</Button>
</Button> */}
</div>