123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- {template 'common/header'}
- <ul class="nav nav-tabs">
- {if $do == 'passport'}<li class="active"><a href="{php echo url('mc/passport/passport')}"><i class="icon-edit"></i> 会员中心参数</a></li>{/if}
- {if $do == 'oauth'}<li class="active"><a href="{php echo url('mc/passport/oauth')}"><i class="icon-user"></i> 公众平台oAuth选项</a></li>{/if}
- {if $do == 'sync'}<li class="active"><a href="{php echo url('mc/passport/sync')}"><i class="icon-user"></i> 更新粉丝信息</a></li>{/if}
- </ul>
- {if $do == 'passport'}
- <div class="main">
- <form id="payform" action="{php echo url('mc/passport')}" method="post" class="form-horizontal form">
- <div class="panel panel-default">
- <div class="panel-heading">
- 会员中心身份资料设置
- </div>
- <div class="panel-body">
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">会员注册设置</label>
- <div class="col-sm-9 col-xs-12">
- <label class="radio-inline">
- <input type="radio" name="passport[focusreg]" value="1" {if !empty($passport['focusreg'])} checked="checked"{/if}/> 会员手动注册
- </label>
- <label class="radio-inline">
- <input type="radio" name="passport[focusreg]" value="0" {if empty($passport['focusreg'])} checked="checked"{/if}/> 系统自动注册
- </label>
- <span class="help-block">当设置为"系统自动注册",用户从微信进入系统时,当模块使用"checkauth"验证用户身份时,可以在非登录状态下直接使用模块功能。</span>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">身份验证项</label>
- <div class="col-sm-9 col-xs-12">
- <label class="radio-inline">
- <input type="radio" name="passport[item]" value="mobile" {if $passport['item'] == 'mobile'} checked="checked"{/if}/> 手机注册
- </label>
- <label class="radio-inline">
- <input type="radio" name="passport[item]" value="email" {if $passport['item'] == 'email'} checked="checked"{/if}/> 邮箱注册
- </label>
- <label class="radio-inline">
- <input type="radio" name="passport[item]" value="random" {if $passport['item'] == 'random' || empty($passport['item'])} checked="checked"{/if}/> 二者都行
- </label>
- <span class="help-block">该项设置用户注册时用户名的格式,如果设置为:"邮箱注册",系统会判断用户的注册名是否是邮箱格式</span>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">强制验证手机号/邮箱</label>
- <div class="col-sm-9 col-xs-12">
- <label class="radio-inline">
- <input type="radio" name="passport[audit]" value="1" {if $passport['audit'] == 1} checked="checked"{/if}/> 是
- </label>
- <label class="radio-inline">
- <input type="radio" name="passport[audit]" value="0" {if empty($passport['audit'])} checked="checked"{/if}/> 否
- </label>
- <span class="help-block">设置强制验证手机号/邮箱,用户在注册的时候,系统会给用户的手机或邮箱发送验证码,以验证手机或邮箱的有效性</span>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">身份验证方式</label>
- <div class="col-sm-9 col-xs-12">
- <label class="radio-inline">
- <input type="radio" name="passport[type]" value="code" {if $passport['type'] == 'code'} checked="checked"{/if}/> 随机密码
- </label>
- <label class="radio-inline">
- <input type="radio" name="passport[type]" value="password" {if $passport['type'] == 'password' || empty($passport['type'])} checked="checked"{/if}/> 固定密码
- </label>
- <label class="radio-inline">
- <input type="radio" name="passport[type]" value="hybird" {if $passport['type'] == 'hybird'} checked="checked"{/if}/> 混合密码
- </label>
- <span class="help-block">使用邮箱或者手机号+密码来登录系统</span>
- <span class="help-block">随机密码方式: 采用发送验证码的方式, 用户不需要记录密码. 在微信以外的渠道登录系统时, 需要输入手机或邮箱+验证码来进入系统</span>
- <span class="help-block">固定密码方式: 采用设置密码的方式, 用户在首次使用时设置固定的访问密码. 在微信以外的渠道登录系统时, 需要输入手机或邮箱+密码来进入系统</span>
- <span class="help-block">混合密码方式: 混合使用两种验证方式, 用户可以自己选择是否设置访问密码. 如果设置了访问密码, 那么登录是可以使用手机或邮箱+随机密码或固定密码来进入系统</span>
- <span class="help-block"><strong>注意: 使用随机密码或者混合密码时, 必须先 <a href="{php echo url('profile/notify');}" target="_blank">设置邮件</a> 或 <a href="{php echo url('account/post', array('uniacid' => $_W['uniacid']));}" target="_blank">短信</a> 选项</strong></span>
- </div>
- </div>
- </div>
- </div>
- <div class="form-group col-sm-12">
- <input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1" />
- <input type="hidden" name="token" value="{$_W['token']}" />
- </div>
- </form>
- </div>
- {elseif $do == 'oauth'}
- <div class="main">
- <form id="form1" action="{php echo url('mc/passport',array('do' => 'oauth'))}" method="post" class="form-horizontal form">
- <div class="panel panel-default">
- <div class="panel-heading">
- 公众平台oAuth设置
- </div>
- <div class="panel-body">
- <div class="form-group" id="account">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">选择公众号</label>
- <div class="col-sm-9 col-xs-12">
- <select name="oauth" class="form-control">
- <option value="0">不借用任何权限</option>
- {loop $accounts $acid $name}
- <option value="{$acid}" {if $oauth['account'] == $acid}selected{/if}>{$name}</option>
- {/loop}
- </select>
- <span class="help-block">在微信公众号请求用户网页授权之前,开发者需要先到公众平台网站的【开发者中心】<b>网页服务</b>中配置授权回调域名。{if $_W['isfounder']}<a href="http://www.we7.cc/manual/dev:v0.6:qa:mobile_redirect_url_error" target="_black">查看详情</a>{/if}</span>
- </div>
- </div>
- </div>
- <div class="panel-body">
- <div class="form-group" id="account">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">oAuth独立域名</label>
- <div class="col-sm-9 col-xs-12">
- <input type="text" name="host" value="{$oauth['host']}" class="form-control" />
- <span class="help-block">适用于您的微站或是活动有多个域名的情况下,由此域名做统一的oauth授权用。例如:http://www.baidu.com 注意:结尾没有 / </span>
- </div>
- </div>
- </div>
- </div>
- <div class="form-group col-sm-12">
- <input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1" />
- <input type="hidden" name="token" value="{$_W['token']}" />
- </div>
- </form>
- </div>
- {/if}
-
- {if $do == 'sync'}
- <div class="main">
- <form id="form1" action="{php echo url('mc/passport',array('do' => 'sync'))}" method="post" class="form-horizontal form">
- <div class="panel panel-default">
- <div class="panel-heading">
- 设置自动更新粉丝信息
- </div>
- <div class="panel-body">
- <div class="alert alert-warning">开启此功能后,系统会自动从微信公众号平台拉取<a href="{php echo url('mc/fans');}"> 粉丝信息 </a>(性别,昵称,头像,所在地等)来更新粉丝信息。更多信息参考 <a href="http://mp.weixin.qq.com/wiki/index.php?title=%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E5%9F%BA%E6%9C%AC%E4%BF%A1%E6%81%AF%28UnionID%E6%9C%BA%E5%88%B6%29" target="_blank">《获取用户基本信息》</a></div>
- <div class="form-group">
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">是否开启</label>
- <div class="col-sm-8 col-xs-12">
- <label class="radio-inline">
- <input type="radio" name="sync" {if $sync == 1}checked{/if} value="1"/>
- 开启
- </label>
- <label class="radio-inline">
- <input type="radio" name="sync" {if $sync == 0}checked{/if} value="0"/>
- 关闭
- </label>
- </div>
- </div>
- </div>
- </div>
- <div class="form-group col-sm-12">
- <input name="submit" type="submit" value="提交" class="btn btn-primary col-lg-1" />
- <input type="hidden" name="token" value="{$_W['token']}" />
- </div>
- </form>
- </div>
- {/if}
- {template 'common/footer'}
|