人人商城

bind-domain.html 3.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {template 'common/header'}
  2. <div class="alert alert-info">
  3. <p><i class="fa fa-exclamation-circle"></i> 绑定域名后,访问app端将使用绑定的域名,且绑定的域名<span class="color-red">只对手机端生效</span>;</p>
  4. <p><i class="fa fa-exclamation-circle"></i> 如访问微站链接为<span class="color-gray">{$_W['siteroot']}app/index.php?i={$_W['uniacid']}&c=home</span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;绑定bang.baidu.com后,访问微站链接就成为<span class="color-gray">http://bang.baidu.com/app/index.php?i={$_W['uniacid']}&c=home</span></p>
  5. <p><i class="fa fa-exclamation-circle"></i> 绑定域名,只支持一级域名和二级域名;</p>
  6. <p><i class="fa fa-exclamation-circle"></i> 绑定域名后,请将公众平台的<span class="color-red">业务域名、js接口安全域名、网页授权域名都改为您绑定的域名,</span><br>&nbsp;&nbsp;&nbsp;&nbsp;如本说明中绑定bang.baidu.com,则改为bang.baidu.com;</p>
  7. <p><i class="fa fa-exclamation-circle"></i> 绑定域名后,服务器配置中的服务器地址(URL)不变,仍为:{$_W['siteroot']}api.php?id={$_W['uniacid']}</p>
  8. <p><i class="fa fa-exclamation-circle"></i> 还有最后很重要的一步:将绑定的域名解析到本服务器IP并绑定到微擎网站目录。</p>
  9. <p><i class="fa fa-exclamation-circle"></i> 此功能不支持授权接入的公众号。</p>
  10. </div>
  11. <div id="js-bind-domain" ng-controller="bindDomainCtrl" ng-cloak>
  12. <table class="table we7-table table-hover table-form wechat-menu">
  13. <col width="140px " />
  14. <col />
  15. <col width="150px" />
  16. <tr><th class="text-left" colspan="3">域名绑定设置</th></tr>
  17. <tr>
  18. <td class="table-label">域名</td>
  19. <td ng-bind="account.setting.bind_domain.domain"></td>
  20. <td><div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#domain">修改</a><a href="{url 'profile/bind-domain/delete'}" ng-if="account.setting.bind_domain.domain">删除</a></div></td>
  21. </tr>
  22. </table>
  23. <div class="modal fade" id="domain" tabindex="-1" role="dialog" aria-hidden="true">
  24. <div class="we7-modal-dialog modal-dialog we7-form">
  25. <div class="modal-content">
  26. <div class="modal-header">
  27. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  28. <div class="modal-title">修改绑定域名</div>
  29. </div>
  30. <div class="modal-body">
  31. <div class="form-group">
  32. <input type="text" ng-model="middleAccount.bind_domain" class="form-control" placeholder="请输入要绑定的域名,以http://或https://开头" />
  33. <span class="help-block"></span>
  34. </div>
  35. </div>
  36. <div class="modal-footer">
  37. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange()">确定</button>
  38. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. <script>
  45. angular.module('profileApp').value('config', {
  46. account: {php echo !empty($_W['account']) ? json_encode($_W['account']) : 'null'},
  47. token: {php echo !empty($_W['token']) ? json_encode($_W['token']) : 'null'},
  48. links: {
  49. 'post': "{php echo url('profile/bind-domain')}",
  50. },
  51. });
  52. angular.bootstrap($('#js-bind-domain'), ['profileApp']);
  53. </script>
  54. {template 'common/footer'}