人人商城

header-account.html 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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']['type'] == ACCOUNT_TYPE_OFFCIAL_NORMAL || $_W['account']['type'] == ACCOUNT_TYPE_OFFCIAL_AUTH}
  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. <div class="text-center operate">
  49. <a href="{php echo url('utility/emulator');}" target="_blank">
  50. <i class="wi wi-iphone" data-toggle="tooltip" data-placement="bottom" title="模拟测试"></i>
  51. </a>
  52. {if uni_permission($_W['uid'], $_W['uniacid']) != ACCOUNT_MANAGE_NAME_OPERATOR}
  53. <a href="{php echo url('account/post', array('uniacid' => $_W['account']['uniacid'], 'acid' => $_W['acid'], 'account_type' => $_W['account']['type']))}" data-toggle="tooltip" data-placement="bottom" title="公众号设置">
  54. <i class="wi wi-appsetting"></i>
  55. </a>
  56. {/if}
  57. <a href="{php echo url('account/display', array('type' => 'all'))}" data-toggle="tooltip" data-placement="bottom" title="切换平台">
  58. <i class="wi wi-changing-over"></i>
  59. </a>
  60. </div>
  61. {elseif $_W['account']['type'] == ACCOUNT_TYPE_XZAPP_NORMAL || $_W['account']['type'] == ACCOUNT_TYPE_XZAPP_AUTH}
  62. <div class="text-center">
  63. {if $_W['account']['level'] == 1}
  64. <span class="label label-primary">个人</span>
  65. {elseif $_W['account']['level'] == 2}
  66. <span class="label label-primary">媒体</span>
  67. {elseif $_W['account']['level'] == 3}
  68. <span class="label label-primary">企业</span>
  69. {elseif $_W['account']['level'] == 4}
  70. <span class="label label-primary">政府</span>
  71. {elseif $_W['account']['level'] == 5}
  72. <span class="label label-primary">其他组织</span>
  73. {/if}
  74. {if $_W['uniaccount']['isconnect'] == 0}
  75. <span class="label label-danger" data-toggle="popover">未接入</span>
  76. <script>
  77. $(function(){
  78. var url = "{url 'account/post' array('uniacid' => $_W['account']['uniacid'], 'acid' => $_W['acid'], 'account_type' => ACCOUNT_TYPE_XZAPP_NORMAL)}";
  79. $('[data-toggle="popover"]').popover({
  80. trigger: 'manual',
  81. html: true,
  82. placement: 'bottom',
  83. content: '<i class="wi wi-warning-sign"></i>未接入熊掌号' +
  84. '<a href="' +
  85. url +
  86. '">立即接入</a>'
  87. }).on("mouseenter", function() {
  88. var _this = this;
  89. $(this).popover("show");
  90. $(this).siblings(".popover").on("mouseleave", function() {
  91. $(_this).popover('hide');
  92. });
  93. }).on("mouseleave", function() {
  94. var _this = this;
  95. setTimeout(function() {
  96. if(!$(".popover:hover").length) {
  97. $(_this).popover("hide")
  98. }
  99. }, 100);
  100. });
  101. });
  102. </script>
  103. {/if}
  104. </div>
  105. <div class="text-center operate">
  106. {if uni_permission($_W['uid'], $_W['uniacid']) != ACCOUNT_MANAGE_NAME_OPERATOR}
  107. <a href="{php echo url('account/post', array('uniacid' => $_W['account']['uniacid'], 'acid' => $_W['acid'], 'account_type' => ACCOUNT_TYPE_XZAPP_NORMAL))}" title="熊掌号设置">
  108. <i class="wi wi-appsetting"></i>
  109. </a>
  110. {/if}
  111. <a href="{php echo url('account/display', array('type' => 'all'))}" data-toggle="tooltip" data-placement="bottom" title="切换平台">
  112. <i class="wi wi-changing-over"></i>
  113. </a>
  114. </div>
  115. {/if}