正在显示
2 个修改的文件
包含
4 行增加
和
2 行删除
@@ -188,6 +188,8 @@ class Viporder extends Backend | @@ -188,6 +188,8 @@ class Viporder extends Backend | ||
188 | if(empty($data)){ | 188 | if(empty($data)){ |
189 | $data = Db::name('minestore')->where(['user_id'=>$row['user_id']])->find(); | 189 | $data = Db::name('minestore')->where(['user_id'=>$row['user_id']])->find(); |
190 | } | 190 | } |
191 | + $user = Db::name('user')->where(['id'=>$data['user_id']])->find(); | ||
192 | + $this->assign('user',$user); | ||
191 | $this->view->assign("data",$data); | 193 | $this->view->assign("data",$data); |
192 | $this->view->assign("row", $row); | 194 | $this->view->assign("row", $row); |
193 | return $this->view->fetch(); | 195 | return $this->view->fetch(); |
@@ -58,13 +58,13 @@ | @@ -58,13 +58,13 @@ | ||
58 | <div class="form-group"> | 58 | <div class="form-group"> |
59 | <label class="control-label col-xs-12 col-sm-2">{:__('后台账号')}:</label> | 59 | <label class="control-label col-xs-12 col-sm-2">{:__('后台账号')}:</label> |
60 | <div class="col-xs-12 col-sm-8"> | 60 | <div class="col-xs-12 col-sm-8"> |
61 | - <input id="c-username" class="form-control" name="row[username]" type="text" data-rule="required;username"> | 61 | + <input id="c-username" class="form-control" name="row[username]" type="text" data-rule="required;username" value="{$user.username}"> |
62 | </div> | 62 | </div> |
63 | </div> | 63 | </div> |
64 | <div class="form-group"> | 64 | <div class="form-group"> |
65 | <label class="control-label col-xs-12 col-sm-2">{:__('后台密码')}:</label> | 65 | <label class="control-label col-xs-12 col-sm-2">{:__('后台密码')}:</label> |
66 | <div class="col-xs-12 col-sm-8"> | 66 | <div class="col-xs-12 col-sm-8"> |
67 | - <input id="c-password" class="form-control" name="row[password]" type="text" data-rule="required"> | 67 | + <input id="c-password" class="form-control" name="row[password]" type="password" data-rule="required" value="{$user.pwd}"> |
68 | </div> | 68 | </div> |
69 | </div> | 69 | </div> |
70 | <div class="form-group"> | 70 | <div class="form-group"> |
-
请 注册 或 登录 后发表评论