作者 刘朕

会员编辑

... ... @@ -105,6 +105,9 @@ class MemberController extends AdminBaseController
$this->error('参数错误');
}
$info = $this->singleData($this->table,['id'=>$id,'delete_time'=>0]);
if(!empty($info['channel_id'])) {
$info['channel_name'] = Db::name('Channel')->where(['id'=>$info['channel_id']])->value('name');
}
$this->assign($info);
return $this->fetch();
}
... ...
... ... @@ -58,8 +58,7 @@
<div class="form-group">
<label for="input-user_login" class="col-sm-2 control-label"><span class="form-required">*</span>注册渠道</label>
<div class="col-md-6 col-sm-10">
<eq name="channel" value="1">站内</eq><eq name="channel" value="2">淘宝</eq><eq name="channel" value="3">京东</eq>
<!--<input type="text" class="form-control" id="input-user_login" value="{$user_login}" name="user_login">-->
<empty name="channel_name">站内<else/>{$channel_name}</empty>
</div>
</div>
<div class="form-group">
... ...