作者 王晓刚
1 个管道 的构建 通过 耗费 1 秒

修改问题文档

... ... @@ -188,6 +188,8 @@ class Viporder extends Backend
if(empty($data)){
$data = Db::name('minestore')->where(['user_id'=>$row['user_id']])->find();
}
$user = Db::name('user')->where(['id'=>$data['user_id']])->find();
$this->assign('user',$user);
$this->view->assign("data",$data);
$this->view->assign("row", $row);
return $this->view->fetch();
... ...
... ... @@ -58,13 +58,13 @@
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('后台账号')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-username" class="form-control" name="row[username]" type="text" data-rule="required;username">
<input id="c-username" class="form-control" name="row[username]" type="text" data-rule="required;username" value="{$user.username}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('后台密码')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-password" class="form-control" name="row[password]" type="text" data-rule="required">
<input id="c-password" class="form-control" name="row[password]" type="password" data-rule="required" value="{$user.pwd}">
</div>
</div>
<div class="form-group">
... ...