人人商城

account-display.html 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. {template 'common/header'}
  2. <div class="panel panel-cut">
  3. <div class="panel-heading">
  4. <span class="panel-heading-left">
  5. <i class="wi wi-small-routine" style="font-size: 24px; margin-right: 10px; vertical-align:middle;"></i>选择小程序
  6. </span>
  7. <div class="pull-right font-default">
  8. {if !empty($account_info['wxapp_limit']) && (!empty($account_info['founder_wxapp_limit']) && $_W['user']['owner_uid'] || empty($_W['user']['owner_uid'])) || $_W['isfounder'] && !user_is_vice_founder()}
  9. <a href="{php echo url('wxapp/post/design_method')}" class="color-default"><i class="wi wi-registersite"></i>新建小程序</a>
  10. {/if}
  11. <a href="{php echo url('account/manage', array('account_type' => ACCOUNT_TYPE_APP_NORMAL))}" class="color-default"><i class="wi wi-wechatstatistics"></i>小程序管理</a>
  12. </div>
  13. </div>
  14. <div class="panel-body" id="js-wxapp-account-display" ng-controller="AccountDisplayWxappCtrl" ng-cloak>
  15. {if !$_W['isfounder'] && !empty($account_info['wxapp_limit'])}
  16. <div class="alert alert-warning hidden">
  17. 温馨提示:
  18. <i class="fa fa-info-circle"></i>
  19. Hi,<span class="text-strong">{$_W['username']}</span>,您所在的会员组: <span class="text-strong">{$account_info['group_name']}</span>,
  20. 账号有效期限:<span class="text-strong">{php echo date('Y-m-d', $_W['user']['starttime'])} ~~ {if empty($_W['user']['endtime'])}无限制{else}{php echo date('Y-m-d', $_W['user']['endtime'])}{/if}</span>,
  21. 可创建 <span class="text-strong">{$account_info['maxwxapp']} </span>个小程序,已创建<span class="text-strong"> {$account_info['wxapp_num']} </span>个,还可创建 <span class="text-strong">{$account_info['wxapp_limit']} </span>个小程序。
  22. </div>
  23. {/if}
  24. {if !empty($pager)}
  25. <div class="cut-header">
  26. <form action="./index.php" method="get">
  27. <input type="hidden" name="c" value="wxapp">
  28. <input type="hidden" name="a" value="display">
  29. <input type="text" name="letter" ng-model="activeLetter" ng-style="{'display': 'none'}">
  30. <div class="cut-search">
  31. <div class="input-group pull-left">
  32. <input class="form-control" name="keyword" value="{$_GPC['keyword']}" type="text" placeholder="请输入小程序名称" >
  33. <span class="input-group-btn"><button class="btn btn-default button"><i class="fa fa-search"></i></button></span>
  34. </div>
  35. </div>
  36. </form>
  37. </div>
  38. {/if}
  39. {if !empty($pager)}
  40. <ul class="letters-list cut-wechat-letters">
  41. <li ng-repeat="letter in alphabet" ng-style="{'background-color': letter == activeLetter ? '#ddd' : 'none'}" ng-class="{'active': letter == activeLetter}" ng-click="searchModule(letter)">
  42. <a href="javascript:;" ng-bind="letter"></a>
  43. </li>
  44. </ul>
  45. {/if}
  46. <div class="cut-list clearfix">
  47. <div class="item wxapp-list-item" ng-repeat="list in wxapp_lists" ng-if="wxapp_lists">
  48. <div class="content">
  49. <img ng-src="{{list.logo}}" class="icon" onerror="this.src='./resource/images/nopic-107.png'">
  50. <div class="name text-over" ng-bind="list.name"></div>
  51. </div>
  52. <div class="version">
  53. <span class="name">版本</span>
  54. <div class="version-detail" ng-bind="list.current_version.version"></div>
  55. </div>
  56. <div class="mask">
  57. <a ng-href="{{links.switch}}&uniacid={{list.uniacid}}&multiid={{list.current_version.multiid}}&version_id={{list.current_version.id}}" class="entry">
  58. <div>进入小程序 <i class="wi wi-angle-right"></i></div>
  59. </a>
  60. <a href="javascript:;" class="cut-btn" ng-click="showVersions($event)">
  61. <i class="wi wi-changing-over"></i>
  62. </a>
  63. {if !permission_check_account_user('see_user_profile_account_num')}
  64. <a ng-href="{{links.welcome}}uniacid={{list.uniacid}}" onclick="return ajaxopen(this.href);" class="home-show" title="添加到首页常用功能">
  65. <i class="wi wi-eye"></i>
  66. </a>
  67. {/if}
  68. <a href="{{links.rank}}&uniacid={{list.uniacid}}" class="stick" title="置顶">
  69. <i class="wi wi-stick-sign"></i>
  70. </a>
  71. </div>
  72. <div class="cut-select" ng-mouseleave="hideSelect($event)" ng-if="list.versions">
  73. <div class="arrow-left"></div>
  74. <div class="cut-item">
  75. <a href="javascript:;">
  76. <div class="detail" ng-repeat="version in list.versions">
  77. <div class="text-over"><span class="wi wi-small-routine"></span>{{version.version}}</div>
  78. <a class="cut-select-mask" href="{{links.switch}}&uniacid={{list.uniacid}}&multiid={{version.multiid}}&version_id={{version.id}}">
  79. <div class="entry">选择进入 <i class="wi wi-angle-right"></i></div>
  80. </a>
  81. </div>
  82. </a>
  83. </div>
  84. <div class="cut-select-pager">
  85. <a href="{{links.more_version}}&uniacid={{list.uniacid}}" class="more color-default">更多 >></a>
  86. </div>
  87. </div>
  88. </div>
  89. <div class="text-center we7-padding-vertical message-page" ng-if="!wxapp_lists && !activeLetter">
  90. <div class="icon"><span class="wi wi-sad"></span></div>
  91. <div class="message-state">您还没有创建小程序</div>
  92. {if !empty($account_info['wxapp_limit']) && (!empty($account_info['founder_wxapp_limit']) && $_W['user']['owner_uid'] || empty($_W['user']['owner_uid'])) || $_W['isfounder'] && !user_is_vice_founder()}
  93. <div><a class="btn btn-primary" href="{php echo url('wxapp/post/design_method')}">新建小程序</a></div>
  94. {/if}
  95. </div>
  96. <div class="text-center we7-padding-vertical" ng-if="!wxapp_lists && activeLetter">
  97. 暂无数据
  98. </div>
  99. </div>
  100. <div class="text-right">
  101. {$pager}
  102. </div>
  103. </div>
  104. </div>
  105. <script>
  106. angular.module('wxApp').value('config', {
  107. 'wxapp_lists': {php echo !empty($wxapp_lists) ? json_encode($wxapp_lists) : 'null'},
  108. 'activeLetter' : {php echo !empty($_GPC['letter']) ? json_encode($_GPC['letter']) : 'null'},
  109. 'links': {
  110. 'rank': "{php echo url('wxapp/display/rank')}",
  111. 'switch': "{php echo url('wxapp/display/switch')}",
  112. 'more_version' : "{php echo url('wxapp/version/display')}",
  113. 'welcome': "{php echo url('home/welcome/add_welcome')}",
  114. },
  115. });
  116. angular.bootstrap($('#js-wxapp-account-display'), ['wxApp']);
  117. </script>
  118. {template 'common/footer'}