third-bind.html 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {template 'common/header-base'}
  2. <div class="head">
  3. <nav class="navbar navbar-default" role="navigation">
  4. <div class="container">
  5. <div class="navbar-header">
  6. <a class="navbar-brand" href="{$_W['siteroot']}">
  7. <img src="{if !empty($_W['setting']['copyright']['blogo'])}{php echo tomedia($_W['setting']['copyright']['blogo'])}{else}./resource/images/logo/logo.png{/if}" class="pull-left" width="110px" height="35px">
  8. </a>
  9. </div>
  10. </div>
  11. </nav>
  12. </div>
  13. <div class="main bind-account third-bind" ng-controller="userBindCtrl" ng-cloak>
  14. <div class="register" style="">
  15. <div class="panel panel-default">
  16. <div class="panel-body">
  17. <form action="javascript:;" class="we7-form">
  18. {if $_W['setting']['copyright']['bind'] == 'mobile'}
  19. <div class="name">
  20. <span class="icon"><i class="wi wi-iphone"></i></span>
  21. 请绑定手机号
  22. <small class="color-gray">(绑定后,可以用手机号登录系统)</small>
  23. </div>
  24. <div class="form-group input-group">
  25. <input type="text" class="form-control" placeholder="输入手机号" ng-model="mobile">
  26. <span class="input-group-btn">
  27. <button class="btn btn-primary send-code" ng-disabled="isDisable" ng-click="sendMessage(bindmobile.third_nickname)">{{text}}</button>
  28. </span>
  29. </div>
  30. <div class="form-group input-group">
  31. <input type="text" ng-model='imagecode' class="form-control" placeholder="输入图形验证码">
  32. <a href="javascript:;" class="input-group-btn imgverify" style="" ng-click="changeVerify()"><img ng-src="{{image}}" style="width: 127px; height: 32px;"/></a>
  33. </div>
  34. <div class="form-group">
  35. <input type="text" ng-model='smscode' class="form-control" placeholder="输入手机验证码">
  36. </div>
  37. <div class="form-group text-right">
  38. <button type="button" class="btn btn-primary" ng-click="mobileBind(bindmobile.third_nickname, 3)">确定</button>
  39. <button type="button" class="btn smscodebtn-default" data-dismiss="modal">取消</button>
  40. </div>
  41. {/if}
  42. {if $_W['setting']['copyright']['bind'] == 'qq'}
  43. <div class="bind-qq">
  44. <div class="icon">
  45. <i class="wi wi-qq"></i>
  46. </div>
  47. <div>请绑定QQ</div>
  48. <div class="color-gray">
  49. <small>绑定后,可以直接用QQ登录</small>
  50. </div>
  51. <div>
  52. <a href="{$support_bind_urls['qq']}" class="btn btn-primary">去绑定</a>
  53. </div>
  54. </div>
  55. {/if}
  56. {if $_W['setting']['copyright']['bind'] == 'wechat'}
  57. <div class="bind-wechat">
  58. <div class="icon">
  59. <i class="wi wi-account"></i>
  60. </div>
  61. <div>请绑定微信</div>
  62. <div class="color-gray">
  63. <small>绑定后,可以直接用微信登录</small>
  64. </div>
  65. <div>
  66. <a href="{$support_bind_urls['wechat']}" class="btn btn-primary">去绑定</a>
  67. </div>
  68. </div>
  69. {/if}
  70. </form>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. <script>
  76. angular.module('userProfile').value('config',{
  77. 'bind_sign': "{php echo !empty($bind_sign) ? $bind_sign : 'null'}",
  78. 'image' : "{php echo url('utility/code')}",
  79. 'links':{
  80. 'img_verify_link': "{php echo url('utility/code')}",
  81. 'send_code_link': "{php echo url('utility/verifycode')}",
  82. 'valid_mobile_link' : "{php echo url('user/third-bind/validate_mobile')}",
  83. 'bind_mobile_link' : "{php echo url('user/third-bind/bind_mobile')}",
  84. },
  85. });
  86. angular.bootstrap($('.bind-account'), ['userProfile']);
  87. </script>
  88. {template 'common/footer'}