人人商城

third-bind.html 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. {if empty($bind_mobile)}
  38. <div class="form-group">
  39. <input type="password" ng-model='password' class="form-control" placeholder="输入密码">
  40. </div>
  41. <div class="form-group">
  42. <input type="password" ng-model='repassword' class="form-control" placeholder="再次输入密码">
  43. </div>
  44. {/if}
  45. <div class="form-group text-right">
  46. <button type="button" class="btn btn-primary" ng-click="mobileBind(bindmobile.third_nickname, 3)">确定</button>
  47. <button type="button" class="btn smscodebtn-default" data-dismiss="modal">取消</button>
  48. </div>
  49. {/if}
  50. {if $_W['setting']['copyright']['bind'] == 'qq'}
  51. <div class="bind-qq">
  52. <div class="icon">
  53. <i class="wi wi-qq"></i>
  54. </div>
  55. <div>请绑定QQ</div>
  56. <div class="color-gray">
  57. <small>绑定后,可以直接用QQ登录微擎</small>
  58. </div>
  59. <div>
  60. <a href="{$support_bind_urls['qq']}" class="btn btn-primary">去绑定</a>
  61. </div>
  62. </div>
  63. {/if}
  64. {if $_W['setting']['copyright']['bind'] == 'wechat'}
  65. <div class="bind-wechat">
  66. <div class="icon">
  67. <i class="wi wi-wechat"></i>
  68. </div>
  69. <div>请绑定微信</div>
  70. <div class="color-gray">
  71. <small>绑定后,可以直接用微信登录微擎</small>
  72. </div>
  73. <div>
  74. <a href="{$support_bind_urls['wechat']}" class="btn btn-primary">去绑定</a>
  75. </div>
  76. </div>
  77. {/if}
  78. </form>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. <script>
  84. angular.module('userProfile').value('config',{
  85. 'bind_sign': "{php echo !empty($bind_sign) ? $bind_sign : 'null'}",
  86. 'image' : "{php echo url('utility/code')}",
  87. 'links':{
  88. 'img_verify_link': "{php echo url('utility/code')}",
  89. 'send_code_link': "{php echo url('utility/verifycode')}",
  90. 'valid_mobile_link' : "{php echo url('user/third-bind/validate_mobile')}",
  91. 'bind_mobile_link' : "{php echo url('user/third-bind/bind_mobile')}",
  92. },
  93. });
  94. angular.bootstrap($('.bind-account'), ['userProfile']);
  95. </script>
  96. {template 'common/footer'}