人人商城

header-account.html 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <div class="menu-title"><i class="wi wi-white-collar"></i>{$_W['account']['type_name']}</div>
  2. {if $_W['account']['type'] == ACCOUNT_TYPE_OFFCIAL_NORMAL || $_W['account']['type'] == ACCOUNT_TYPE_OFFCIAL_AUTH}
  3. <div class="account-info">
  4. <span class="nav-icon" data-container="body" data-toggle="tooltip" data-placement="right" title="{$_W['account']['name']}">
  5. <img src="{php echo tomedia('headimg_'.$_W['account']['acid'].'.jpg')}?time={php echo time()}" class="head-logo">
  6. </span>
  7. <div class="account-name">{$_W['account']['name']}</div>
  8. <div class="account-type">
  9. <span class="account-type">
  10. {if $_W['account']['level'] == 1 || $_W['account']['level'] == 3}
  11. 订阅号
  12. {/if}
  13. {if $_W['account']['level'] == 2 || $_W['account']['level'] == 4}
  14. 服务号
  15. {/if}
  16. </span>
  17. <span class="account-level">
  18. {if $_W['account']['level'] == 1 || $_W['account']['level'] == 3}
  19. {if $_W['account']['level'] == 3}已认证{/if}
  20. {/if}
  21. {if $_W['account']['level'] == 2 || $_W['account']['level'] == 4}
  22. {if $_W['account']['level'] == 4}已认证{/if}
  23. {/if}
  24. </span>
  25. <div class="account-isconnect">
  26. {if $_W['uniaccount']['isconnect'] == 0}
  27. 未接入
  28. <a href="{php echo url('account/post', array('uniacid' => $_W['account']['uniacid'], 'acid' => $_W['acid']))}" class="text-danger"> 立即接入</a>
  29. {else}
  30. 已接入
  31. {/if}
  32. </div>
  33. </div>
  34. </div>
  35. <div class="account-operate">
  36. <a href="{php echo url('utility/emulator');}" target="_blank" class="h"><i class="wi wi-iphone" data-toggle="tooltip" data-placement="bottom" title="模拟测试"></i></a>
  37. {if uni_permission($_W['uid'], $_W['uniacid']) != ACCOUNT_MANAGE_NAME_OPERATOR}
  38. <a href="{php echo url('account/post', array('uniacid' => $_W['account']['uniacid'], 'acid' => $_W['acid'], 'account_type' => $_W['account']['type']))}" class="h"><i class="wi wi-appsetting" data-toggle="tooltip" data-placement="bottom" title="公众号设置"></i></a>
  39. {/if}
  40. <a href="{php echo url('account/display', array('type' => 'all'))}"><i class="wi wi-changing-over" data-toggle="tooltip" data-placement="bottom" title="切换平台"></i></a>
  41. </div>
  42. {elseif $_W['account']['type'] == ACCOUNT_TYPE_XZAPP_NORMAL || $_W['account']['type'] == ACCOUNT_TYPE_XZAPP_AUTH}
  43. <div class="account-info">
  44. <span class="nav-icon" data-container="body" data-toggle="tooltip" data-placement="right" title="{$_W['account']['name']}">
  45. <img src="{php echo tomedia('headimg_'.$_W['account']['acid'].'.jpg')}?time={php echo time()}" class="head-logo">
  46. </span>
  47. <div class="account-name">{$_W['account']['name']}</div>
  48. <div class="account-type">
  49. <span class="account-type">
  50. {if $_W['account']['level'] == 1}
  51. 个人
  52. {elseif $_W['account']['level'] == 2}
  53. 媒体
  54. {elseif $_W['account']['level'] == 3}
  55. 企业
  56. {elseif $_W['account']['level'] == 4}
  57. 政府
  58. {elseif $_W['account']['level'] == 5}
  59. 其他组织
  60. {/if}
  61. </span>
  62. <div class="account-isconnect">
  63. {if $_W['uniaccount']['isconnect'] == 0}
  64. 未接入
  65. <a href="{php echo url('account/post', array('uniacid' => $_W['account']['uniacid'], 'acid' => $_W['acid']))}" class="text-danger">立即接入</a>
  66. {else}
  67. 已接入
  68. {/if}
  69. </div>
  70. </div>
  71. </div>
  72. <div class="account-operate">
  73. {if uni_permission($_W['uid'], $_W['uniacid']) != ACCOUNT_MANAGE_NAME_OPERATOR}
  74. <a href="{php echo url('account/post', array('uniacid' => $_W['account']['uniacid'], 'acid' => $_W['acid'], 'account_type' => ACCOUNT_TYPE_XZAPP_NORMAL))}" class="h">
  75. <i class="wi wi-appsetting" data-toggle="tooltip" data-placement="bottom" title="熊掌号设置"></i>
  76. </a>
  77. {/if}
  78. <a href="{php echo url('account/display', array('type' => 'all'))}">
  79. <i class="wi wi-changing-over" data-toggle="tooltip" data-placement="bottom" title="切换平台"></i>
  80. </a>
  81. </div>
  82. {/if}