人人商城

welcome-system-home.tpl.php 6.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?php defined('IN_IA') or exit('Access Denied');?><?php (!empty($this) && $this instanceof WeModuleSite || 0) ? (include $this->template('common/header', TEMPLATE_INCLUDEPATH)) : (include template('common/header', TEMPLATE_INCLUDEPATH));?>
  2. <div class="welcome-system-home" ng-controller="systemWelcomeCtrl" ng-cloak>
  3. <div class="user">
  4. <div class="media media-middle">
  5. <div class="media-left media-middle">
  6. <img class="media-object logo" src="<?php echo $user_info['avatar'];?>" alt="">
  7. </div>
  8. <div class="media-body media-middle">
  9. <div class="name">
  10. <?php echo $_W['username'];?>
  11. </div>
  12. <div class="last-time">
  13. 上次登录时间:<?php echo date('Y-m-d H:i:s', $_W['user']['lastvisit']);?>
  14. </div>
  15. </div>
  16. <div class="media-right media-middle">
  17. <div class="right">
  18. 设置登录显示页面
  19. <i class="wi wi-info" data-container=".welcome-system-home" data-trigger=" click" data-toggle="popover" data-placement="bottom" data-html="true" data-content="设置登录后,用户显示的页面。在我的账号-用户欢迎页设置里边更改设置"></i>
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. <div class="panel we7-panel ">
  25. <div class="panel-heading">
  26. 我的创建
  27. </div>
  28. <div class="panel-body we7-padding-vertical create">
  29. <div class="col-sm-3 text-center create-item">
  30. <div class="create-item__head">可创建公众号</div>
  31. <div class="num" ng-if="account_num.maxaccount >= 0">{{account_num.maxaccount}}</div>
  32. <div class="num" ng-if="account_num.maxaccount < 0">0</div>
  33. <div class="has">已创建 {{account_num.uniacid_num}} <a href="<?php echo url('account/post-step')?>" ng-if="account_num.maxaccount > 0" class="color-default">| 去创建 ></a></div>
  34. </div>
  35. <div class="col-sm-3 text-center create-item">
  36. <div class="create-item__head">可创建小程序</div>
  37. <div class="num" ng-if="account_num.maxwxapp >= 0">{{account_num.maxwxapp}}</div>
  38. <div class="num" ng-if="account_num.maxwxapp < 0">0</div>
  39. <div class="has">已创建 {{account_num.wxapp_num}} <a href="<?php echo url('wxapp/post/design_method')?>" ng-if="account_num.maxwxapp > 0" class="color-default">| 去创建 ></a></div>
  40. </div>
  41. <div class="col-sm-3 text-center create-item">
  42. <div class="create-item__head">可创建PC</div>
  43. <div class="num" ng-if="account_num.maxwebapp >= 0"> {{account_num.maxwebapp}}</div>
  44. <div class="num" ng-if="account_num.maxwebapp < 0">0</div>
  45. <div class="has">已创建 {{account_num.webapp_num}} <a href="<?php echo url('webapp/manage/create_display')?>" ng-if="account_num.maxwebapp > 0" class="color-default">| 去创建 ></a></div>
  46. </div>
  47. <div class="col-sm-3 text-center create-item">
  48. <div class="create-item__head">可创建APP</div>
  49. <div class="num" ng-if="account_num.maxphoneapp >= 0"> {{account_num.maxphoneapp}}</div>
  50. <div class="num" ng-if="account_num.maxphoneapp < 0"> 0</div>
  51. <div class="has">已创建 {{account_num.phoneapp_num}} <a href="<?php echo url('phoneapp/manage/create_display')?>" ng-if="account_num.maxphoneapp > 0" class="color-default">| 去创建 ></a></div>
  52. </div>
  53. </div>
  54. </div>
  55. <div class="panel we7-panel ">
  56. <div class="panel-heading">
  57. 常用系统功能
  58. <a href="" class="pull-right color-default">设置常用功能</a>
  59. </div>
  60. <div class="panel-body app">
  61. <div class="app-item" ng-repeat="list in last_accounts_modules">
  62. <div class="content">
  63. <img ng-src="{{list.account.logo}}" alt="" class="app-item-logo">
  64. <div class="app-item-footer">
  65. <div class="type" ng-if="list.account.type ==1 || list.account.type==3"><i class="wi wi-wechat"></i></div>
  66. <div class="type" ng-if="list.account.type == 4 || list.account.type == 7"><i class="wi wi-wxapp"></i></div>
  67. <div class="type" ng-if="list.account.type == 5"><i class="wi wi-pc"></i></div>
  68. <div class="type" ng-if="list.account.type == 6"><i class="wi wi-wxapp"></i></div>
  69. <div class="type" ng-if="!list.account.type"><i class="wi wi-apply"></i></div>
  70. <div class="info">
  71. <div class="name text-over" ng-bind="list.account.name" ng-if="list.account.type"></div>
  72. <div class="name text-over" ng-bind="list.account.title" ng-if="!list.account.type"></div>
  73. <div class="version text-over" ng-if="list.account.type ==1 || list.account.type==3">类型:公众号</div>
  74. <div class="version text-over" ng-if="list.account.type == 4 || list.account.type == 7">类型:小程序</div>
  75. <div class="version text-over" ng-if="list.account.type == 5">类型:PC</div>
  76. <div class="version text-over" ng-if="list.account.type == 6">类型:APP</div>
  77. <div class="version" ng-if="!list.account.type">类型:应用</div>
  78. </div>
  79. </div>
  80. <div class="mask">
  81. <a ng-href="{{list.account.switchurl}}" class="entry" >
  82. <div ng-if="list.account.type ==1 || list.account.type==3">进入公众号 <i class="wi wi-angle-right"></i></div>
  83. <div ng-if="list.account.type == 4 || list.account.type == 7">进入小程序 <i class="wi wi-angle-right"></i></div>
  84. <div ng-if="list.account.type == 5">进入PC <i class="wi wi-angle-right"></i></div>
  85. <div ng-if="list.account.type == 6">进入APP <i class="wi wi-angle-right"></i></div>
  86. <div ng-if="!list.account.type">进入模块 <i class="wi wi-angle-right"></i></div>
  87. </a>
  88. <a href="javascript:;" class="stick" ng-click ="setTop(list.id)" data-container=".welcome-system-home" data-toggle="tooltip" data-placement="right" title="当前页置顶">
  89. <i class="wi wi-stick-sign"></i>
  90. </a>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. <div class="panel we7-panel ">
  97. <div class="panel-heading">
  98. 消息
  99. <a href="<?php echo url('message/notice')?>" class="pull-right color-default">更多 ></a>
  100. </div>
  101. <div class="panel-body we7-padding-horizontal message">
  102. <table class="table we7-table">
  103. <col>
  104. <col >
  105. <col width="30">
  106. <tr ng-repeat="message in message_list">
  107. <td > <div class="title">{{message.message}}</div></td>
  108. <td>{{message.create_time}}</td>
  109. <td><a href="{{message.url}}" class="color-default">查看</a></td>
  110. </tr>
  111. </table>
  112. </div>
  113. </div>
  114. </div>
  115. <script>
  116. $('[data-toggle="popover"]').popover()
  117. angular.module('homeApp').value('config', {
  118. account_num: <?php echo !empty($account_num) ? json_encode($account_num) : 'null'?>,
  119. message_list: <?php echo !empty($messages) ? json_encode($messages) : 'null'?>,
  120. last_accounts_modules : <?php echo !empty($last_accounts_modules) ? json_encode($last_accounts_modules) : 'null'?>,
  121. user_info : <?php echo !empty($user_info) ? json_encode($user_info) : 'null'?>,
  122. links: {
  123. 'setTop' : "<?php echo url('home/welcome/set_top')?>",
  124. },
  125. });
  126. angular.bootstrap($('.welcome-system-home'), ['homeApp']);
  127. </script>
  128. <?php (!empty($this) && $this instanceof WeModuleSite || 0) ? (include $this->template('common/footer', TEMPLATE_INCLUDEPATH)) : (include template('common/footer', TEMPLATE_INCLUDEPATH));?>