Commit 6ec89cbd authored by rlgy's avatar rlgy

币种框置顶 写死不可修改

parent 647cb0a3
......@@ -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';
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment