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
6ec89cbd
Commit
6ec89cbd
authored
Oct 16, 2018
by
rlgy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
币种框置顶 写死不可修改
parent
647cb0a3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
CoinReleaseMemberController.php
backend/controllers/CoinReleaseMemberController.php
+6
-1
form.php
backend/views/coin-release-member/form.php
+5
-5
No files found.
backend/controllers/CoinReleaseMemberController.php
View file @
6ec89cbd
...
...
@@ -7,6 +7,7 @@
namespace
backend\controllers
;
use
common\models\psources\CoinPublish
;
use
Yii
;
use
yii\web\UploadedFile
;
use
common\models\psources\CoinReleaseMember
;
...
...
@@ -43,7 +44,11 @@ class CoinReleaseMemberController extends BaseController
{
if
(
Yii
::
$app
->
request
->
isGet
)
{
$this
->
layout
=
false
;
return
$this
->
render
(
'form'
);
//获取token信息
$rid
=
$this
->
getRuleId
();
$model
=
CoinPublishRule
::
findOne
(
$rid
);
$rule
=
CoinPublish
::
findOne
(
$model
->
pid
);
return
$this
->
render
(
'form'
,
[
'token'
=>
$rule
->
coin_name_en
]);
}
else
{
if
(
Yii
::
$app
->
request
->
isPost
)
{
Yii
::
$app
->
response
->
format
=
'json'
;
...
...
backend/views/coin-release-member/form.php
View file @
6ec89cbd
...
...
@@ -16,21 +16,21 @@
<form
class=
"layui-table"
id=
"form_data"
lay-filter=
"form_data"
>
<input
type=
"hidden"
name=
"_csrf"
value=
"
<?=
Yii
::
$app
->
request
->
getCsrfToken
()
?>
"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
手机号码
</label>
<label
class=
"layui-form-label"
>
币种
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
name=
"
mobile"
class=
"layui-input"
/>
<input
type=
"text"
name=
"
coin"
class=
"layui-input"
readonly=
"readonly"
value=
"
<?=
$token
?>
"
/>
</div>
</div>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
币种
</label>
<label
class=
"layui-form-label"
>
手机号码
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
name=
"
coin"
class=
"layui-input"
/>
<input
type=
"text"
name=
"
mobile"
class=
"layui-input"
/>
</div>
</div>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
总量
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
name=
"amount"
class=
"layui-input"
/>
<input
type=
"text"
name=
"amount"
class=
"layui-input"
/>
</div>
</div>
</form>
...
...
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