Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
token
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wallet
token
Commits
010b4916
Commit
010b4916
authored
Sep 21, 2018
by
rlgy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
f3ab64e3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
5 deletions
+21
-5
CoinReleaseMemberController.php
backend/controllers/CoinReleaseMemberController.php
+4
-0
list.php
backend/views/coin-publish-rule/list.php
+1
-1
list.js
backend/web/js/coin-release-member/list.js
+16
-4
No files found.
backend/controllers/CoinReleaseMemberController.php
View file @
010b4916
...
@@ -70,6 +70,9 @@ class CoinReleaseMemberController extends BaseController
...
@@ -70,6 +70,9 @@ class CoinReleaseMemberController extends BaseController
$model
->
scenario
=
CoinReleaseMember
::
SCENARIOS_ADD
;
$model
->
scenario
=
CoinReleaseMember
::
SCENARIOS_ADD
;
}
}
if
(
$model
->
load
(
$post
)
&&
$model
->
validate
())
{
if
(
$model
->
load
(
$post
)
&&
$model
->
validate
())
{
$model
->
amount
=
$model
->
amount
*
1e8
;
$model
->
release
=
$model
->
release
*
1e8
;
$model
->
freeze
=
$model
->
freeze
*
1e8
;
if
(
$model
->
save
())
{
if
(
$model
->
save
())
{
return
[
'code'
=>
0
,
'msg'
=>
'添加成功'
];
return
[
'code'
=>
0
,
'msg'
=>
'添加成功'
];
}
}
...
@@ -127,6 +130,7 @@ class CoinReleaseMemberController extends BaseController
...
@@ -127,6 +130,7 @@ class CoinReleaseMemberController extends BaseController
/**
/**
* 获取rule_id
* 获取rule_id
*
* @return int
* @return int
*/
*/
private
function
getRuleId
()
private
function
getRuleId
()
...
...
backend/views/coin-publish-rule/list.php
View file @
010b4916
...
@@ -23,7 +23,7 @@ ListAsset::register($this);
...
@@ -23,7 +23,7 @@ ListAsset::register($this);
<tr>
<tr>
<td>
<?=
$coin_name
?>
</td>
<td>
<?=
$coin_name
?>
</td>
<td>
<?=
$amount
/
1e8
?>
</td>
<td>
<?=
$amount
/
1e8
?>
</td>
<td>
<?=
$release_amount
?>
</td>
<td>
<?=
$release_amount
/
1e8
?>
</td>
<td>
<?=
$address
?>
</td>
<td>
<?=
$address
?>
</td>
</tr>
</tr>
</tbody>
</tbody>
...
...
backend/web/js/coin-release-member/list.js
View file @
010b4916
...
@@ -9,9 +9,21 @@ table.render({
...
@@ -9,9 +9,21 @@ table.render({
cols
:
[[
cols
:
[[
{
field
:
'mobile'
,
title
:
'手机号'
},
{
field
:
'mobile'
,
title
:
'手机号'
},
{
field
:
'coin'
,
title
:
'币种'
},
{
field
:
'coin'
,
title
:
'币种'
},
{
field
:
'amount'
,
title
:
'总量'
},
{
{
field
:
'release'
,
title
:
'已解冻'
},
field
:
'amount'
,
title
:
'总量'
,
templet
:
function
(
d
)
{
{
field
:
'freeze'
,
title
:
'已冻结'
},
return
d
.
amount
/
1
e8
;
}
},
{
field
:
'release'
,
title
:
'已解冻'
,
templet
:
function
(
d
)
{
return
d
.
release
/
1
e8
;
}
},
{
field
:
'freeze'
,
title
:
'已冻结'
,
templet
:
function
(
d
)
{
return
d
.
freeze
/
1
e8
;
}
},
]]
]]
});
});
...
@@ -29,7 +41,7 @@ upload.render({
...
@@ -29,7 +41,7 @@ upload.render({
}
}
});
});
},
},
before
:
function
(
obj
)
{
//obj参数包含的信息,跟 choose回调完全一致,可参见上文。
before
:
function
(
obj
)
{
//obj参数包含的信息,跟 choose回调完全一致,可参见上文。
layer
.
load
();
//上传loading
layer
.
load
();
//上传loading
}
}
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment