人人商城

passport.html 8.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. {template 'common/header'}
  2. <ul class="nav nav-tabs">
  3. {if $do == 'passport'}<li class="active"><a href="{php echo url('mc/passport/passport')}"><i class="icon-edit"></i> 会员中心参数</a></li>{/if}
  4. {if $do == 'oauth'}<li class="active"><a href="{php echo url('mc/passport/oauth')}"><i class="icon-user"></i> 公众平台oAuth选项</a></li>{/if}
  5. {if $do == 'sync'}<li class="active"><a href="{php echo url('mc/passport/sync')}"><i class="icon-user"></i> 更新粉丝信息</a></li>{/if}
  6. </ul>
  7. {if $do == 'passport'}
  8. <div class="main">
  9. <form id="payform" action="{php echo url('mc/passport')}" method="post" class="form-horizontal form">
  10. <div class="panel panel-default">
  11. <div class="panel-heading">
  12. 会员中心身份资料设置
  13. </div>
  14. <div class="panel-body">
  15. <div class="form-group">
  16. <label class="col-xs-12 col-sm-3 col-md-2 control-label">会员注册设置</label>
  17. <div class="col-sm-9 col-xs-12">
  18. <label class="radio-inline">
  19. <input type="radio" name="passport[focusreg]" value="1" {if !empty($passport['focusreg'])} checked="checked"{/if}/> 会员手动注册
  20. </label>
  21. <label class="radio-inline">
  22. <input type="radio" name="passport[focusreg]" value="0" {if empty($passport['focusreg'])} checked="checked"{/if}/> 系统自动注册
  23. </label>
  24. <span class="help-block">当设置为"系统自动注册",用户从微信进入系统时,当模块使用"checkauth"验证用户身份时,可以在非登录状态下直接使用模块功能。</span>
  25. </div>
  26. </div>
  27. <div class="form-group">
  28. <label class="col-xs-12 col-sm-3 col-md-2 control-label">身份验证项</label>
  29. <div class="col-sm-9 col-xs-12">
  30. <label class="radio-inline">
  31. <input type="radio" name="passport[item]" value="mobile" {if $passport['item'] == 'mobile'} checked="checked"{/if}/> 手机注册
  32. </label>
  33. <label class="radio-inline">
  34. <input type="radio" name="passport[item]" value="email" {if $passport['item'] == 'email'} checked="checked"{/if}/> 邮箱注册
  35. </label>
  36. <label class="radio-inline">
  37. <input type="radio" name="passport[item]" value="random" {if $passport['item'] == 'random' || empty($passport['item'])} checked="checked"{/if}/> 二者都行
  38. </label>
  39. <span class="help-block">该项设置用户注册时用户名的格式,如果设置为:"邮箱注册",系统会判断用户的注册名是否是邮箱格式</span>
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="col-xs-12 col-sm-3 col-md-2 control-label">强制验证手机号/邮箱</label>
  44. <div class="col-sm-9 col-xs-12">
  45. <label class="radio-inline">
  46. <input type="radio" name="passport[audit]" value="1" {if $passport['audit'] == 1} checked="checked"{/if}/> 是
  47. </label>
  48. <label class="radio-inline">
  49. <input type="radio" name="passport[audit]" value="0" {if empty($passport['audit'])} checked="checked"{/if}/> 否
  50. </label>
  51. <span class="help-block">设置强制验证手机号/邮箱,用户在注册的时候,系统会给用户的手机或邮箱发送验证码,以验证手机或邮箱的有效性</span>
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="col-xs-12 col-sm-3 col-md-2 control-label">身份验证方式</label>
  56. <div class="col-sm-9 col-xs-12">
  57. <label class="radio-inline">
  58. <input type="radio" name="passport[type]" value="code" {if $passport['type'] == 'code'} checked="checked"{/if}/> 随机密码
  59. </label>
  60. <label class="radio-inline">
  61. <input type="radio" name="passport[type]" value="password" {if $passport['type'] == 'password' || empty($passport['type'])} checked="checked"{/if}/> 固定密码
  62. </label>
  63. <label class="radio-inline">
  64. <input type="radio" name="passport[type]" value="hybird" {if $passport['type'] == 'hybird'} checked="checked"{/if}/> 混合密码
  65. </label>
  66. <span class="help-block">使用邮箱或者手机号+密码来登录系统</span>
  67. <span class="help-block">随机密码方式: 采用发送验证码的方式, 用户不需要记录密码. 在微信以外的渠道登录系统时, 需要输入手机或邮箱+验证码来进入系统</span>
  68. <span class="help-block">固定密码方式: 采用设置密码的方式, 用户在首次使用时设置固定的访问密码. 在微信以外的渠道登录系统时, 需要输入手机或邮箱+密码来进入系统</span>
  69. <span class="help-block">混合密码方式: 混合使用两种验证方式, 用户可以自己选择是否设置访问密码. 如果设置了访问密码, 那么登录是可以使用手机或邮箱+随机密码或固定密码来进入系统</span>
  70. <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>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. <div class="form-group col-sm-12">
  76. <input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1" />
  77. <input type="hidden" name="token" value="{$_W['token']}" />
  78. </div>
  79. </form>
  80. </div>
  81. {elseif $do == 'oauth'}
  82. <div class="main">
  83. <form id="form1" action="{php echo url('mc/passport',array('do' => 'oauth'))}" method="post" class="form-horizontal form">
  84. <div class="panel panel-default">
  85. <div class="panel-heading">
  86. 公众平台oAuth设置
  87. </div>
  88. <div class="panel-body">
  89. <div class="form-group" id="account">
  90. <label class="col-xs-12 col-sm-3 col-md-2 control-label">选择公众号</label>
  91. <div class="col-sm-9 col-xs-12">
  92. <select name="oauth" class="form-control">
  93. <option value="0">不借用任何权限</option>
  94. {loop $accounts $acid $name}
  95. <option value="{$acid}" {if $oauth['account'] == $acid}selected{/if}>{$name}</option>
  96. {/loop}
  97. </select>
  98. <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>
  99. </div>
  100. </div>
  101. </div>
  102. <div class="panel-body">
  103. <div class="form-group" id="account">
  104. <label class="col-xs-12 col-sm-3 col-md-2 control-label">oAuth独立域名</label>
  105. <div class="col-sm-9 col-xs-12">
  106. <input type="text" name="host" value="{$oauth['host']}" class="form-control" />
  107. <span class="help-block">适用于您的微站或是活动有多个域名的情况下,由此域名做统一的oauth授权用。例如:http://www.baidu.com 注意:结尾没有 / </span>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. <div class="form-group col-sm-12">
  113. <input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1" />
  114. <input type="hidden" name="token" value="{$_W['token']}" />
  115. </div>
  116. </form>
  117. </div>
  118. {/if}
  119. {if $do == 'sync'}
  120. <div class="main">
  121. <form id="form1" action="{php echo url('mc/passport',array('do' => 'sync'))}" method="post" class="form-horizontal form">
  122. <div class="panel panel-default">
  123. <div class="panel-heading">
  124. 设置自动更新粉丝信息
  125. </div>
  126. <div class="panel-body">
  127. <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>
  128. <div class="form-group">
  129. <label class="col-xs-12 col-sm-3 col-md-2 control-label">是否开启</label>
  130. <div class="col-sm-8 col-xs-12">
  131. <label class="radio-inline">
  132. <input type="radio" name="sync" {if $sync == 1}checked{/if} value="1"/>
  133. 开启
  134. </label>
  135. <label class="radio-inline">
  136. <input type="radio" name="sync" {if $sync == 0}checked{/if} value="0"/>
  137. 关闭
  138. </label>
  139. </div>
  140. </div>
  141. </div>
  142. </div>
  143. <div class="form-group col-sm-12">
  144. <input name="submit" type="submit" value="提交" class="btn btn-primary col-lg-1" />
  145. <input type="hidden" name="token" value="{$_W['token']}" />
  146. </div>
  147. </form>
  148. </div>
  149. {/if}
  150. {template 'common/footer'}