header-account.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <div class="text-center"><img src="{php echo tomedia('headimg_'.$_W['account']['acid'].'.jpg')}?time={php echo time()}" class="head-logo"></div>
  2. <div class="text-center account-name">{$_W['account']['name']}</div>
  3. {if $_W['account']->typeSign == 'account'}
  4. <div class="text-center">
  5. {if $_W['account']['level'] == 1 || $_W['account']['level'] == 3}
  6. <span class="label label-primary">订阅号</span>
  7. {if $_W['account']['level'] == 3}
  8. <span class="label label-primary">已认证</span>
  9. {/if}
  10. {/if}
  11. {if $_W['account']['level'] == 2 || $_W['account']['level'] == 4}
  12. <span class="label label-primary">服务号</span>
  13. {if $_W['account']['level'] == 4}
  14. <span class="label label-primary">已认证</span>
  15. {/if}
  16. {/if}
  17. {if $_W['uniaccount']['isconnect'] == 0}
  18. <span class="label label-danger" data-toggle="popover">未接入</span>
  19. <script>
  20. $(function(){
  21. var url = "{url 'account/post' array('uniacid' => $_W['account']['uniacid'], 'acid' => $_W['acid'])}";
  22. $('[data-toggle="popover"]').popover({
  23. trigger: 'manual',
  24. html: true,
  25. placement: 'bottom',
  26. content: '<i class="wi wi-warning-sign"></i>未接入微信公众号' +
  27. '<a href="' +
  28. url +
  29. '">立即接入</a>'
  30. }).on("mouseenter", function() {
  31. var _this = this;
  32. $(this).popover("show");
  33. $(this).siblings(".popover").on("mouseleave", function() {
  34. $(_this).popover('hide');
  35. });
  36. }).on("mouseleave", function() {
  37. var _this = this;
  38. setTimeout(function() {
  39. if(!$(".popover:hover").length) {
  40. $(_this).popover("hide")
  41. }
  42. }, 100);
  43. });
  44. });
  45. </script>
  46. {/if}
  47. </div>
  48. {elseif $_W['account']->typeSign == 'xzapp'}
  49. <div class="text-center">
  50. {if $_W['account']['level'] == 1}
  51. <span class="label label-primary">个人</span>
  52. {elseif $_W['account']['level'] == 2}
  53. <span class="label label-primary">媒体</span>
  54. {elseif $_W['account']['level'] == 3}
  55. <span class="label label-primary">企业</span>
  56. {elseif $_W['account']['level'] == 4}
  57. <span class="label label-primary">政府</span>
  58. {elseif $_W['account']['level'] == 5}
  59. <span class="label label-primary">其他组织</span>
  60. {/if}
  61. {if $_W['uniaccount']['isconnect'] == 0}
  62. <span class="label label-danger" data-toggle="popover">未接入</span>
  63. <script>
  64. $(function(){
  65. var url = "{url 'account/post' array('uniacid' => $_W['account']['uniacid'], 'acid' => $_W['acid'], 'account_type' => ACCOUNT_TYPE_XZAPP_NORMAL)}";
  66. $('[data-toggle="popover"]').popover({
  67. trigger: 'manual',
  68. html: true,
  69. placement: 'bottom',
  70. content: '<i class="wi wi-warning-sign"></i>未接入熊掌号' +
  71. '<a href="' +
  72. url +
  73. '">立即接入</a>'
  74. }).on("mouseenter", function() {
  75. var _this = this;
  76. $(this).popover("show");
  77. $(this).siblings(".popover").on("mouseleave", function() {
  78. $(_this).popover('hide');
  79. });
  80. }).on("mouseleave", function() {
  81. var _this = this;
  82. setTimeout(function() {
  83. if(!$(".popover:hover").length) {
  84. $(_this).popover("hide")
  85. }
  86. }, 100);
  87. });
  88. });
  89. </script>
  90. {/if}
  91. </div>
  92. {/if}
  93. <div class="text-center operate">
  94. {if $_W['account']->typeSign == 'account'}
  95. <a href="{php echo url('utility/emulator');}" target="_blank"><i class="wi wi-iphone" data-toggle="tooltip" data-placement="bottom" title="模拟测试"></i></a>
  96. {else}
  97. <span>&nbsp;</span>
  98. {/if}
  99. {if $_W['role'] != ACCOUNT_MANAGE_NAME_OPERATOR}
  100. <a href="{php echo url('account/post', array('uniacid' => $_W['account']['uniacid'], 'acid' => $_W['account']['acid'], 'account_type' => $_W['account']['type']))}" data-toggle="tooltip" data-placement="bottom" title="{php echo $_W['account']->typeName}设置"><i class="wi wi-appsetting"></i></a>
  101. {/if}
  102. <a href="{php echo url('account/display', array('type' => 'all'))}" data-toggle="tooltip" data-placement="bottom" title="切换平台">
  103. <i class="wi wi-cut-account"></i>
  104. </a>
  105. </div>