display.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. {template 'common/header'}
  2. <div class="account-display-page" id="js-account-display" ng-controller="AccountDisplay" ng-cloak>
  3. <div class="panel-cut panel">
  4. <div class="panel-body">
  5. <div class="search-box">
  6. <select class="we7-margin-right" ng-model="chenckNav" ng-change="changes()">
  7. <option value="{{item.name}}" ng-repeat="item in nav_top_fold" ng-bind="item.title"></option>
  8. </select>
  9. <select name="" class="select-letter we7-margin-right" ng-init="letter = '{php echo $_GPC['letter'] ? $_GPC['letter'] : '全部'}'" ng-model="letter" ng-change="searchModule(letter)">
  10. <option value="{{item == '按字母筛选(全部)' ? '全部' : item}}" ng-repeat="item in alphabet" ng-bind="item"></option>
  11. </select>
  12. <form class="search-form" action="./index.php" method="get">
  13. <input type="hidden" name="c" value="account">
  14. <input type="hidden" name="a" value="display">
  15. <input type="hidden" name="do" value="display" ng-if="type == 'all'">
  16. <input type="hidden" name="type" value="{{type}}">
  17. <input type="hidden" name="title" value="{{title}}">
  18. <input type="text" name="letter" ng-model="activeLetter" ng-style="{'display': 'none'}">
  19. <div class="input-group">
  20. <input type="text" class="form-control" name="keyword" value="{$_GPC['keyword']}" placeholder="请输入平台名称">
  21. <span class="input-group-btn"><button class="btn btn-default button"><i class="fa fa-search"></i></button></span>
  22. </div>
  23. </form>
  24. <div class="creat" ng-switch="type">
  25. <a ng-switch-when="all" href="javascript:;" data-toggle="modal" data-target="#owner-modal" class="btn btn-primary">新增平台</a>
  26. {if !empty($account_info['account_limit']) && (!empty($account_info['founder_account_limit']) && $_W['user']['owner_uid'] || empty($_W['user']['owner_uid'])) || $_W['isfounder'] && !user_is_vice_founder()}
  27. <a ng-switch-when="account" href="./index.php?c=account&a=post-step" class="btn btn-primary">
  28. 新增公众号
  29. </a>
  30. {/if}
  31. {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()}
  32. <a ng-switch-when="wxapp" href="{php echo url('wxapp/post/design_method')}" class="btn btn-primary">新建微信小程序</a>
  33. {/if}
  34. {if !empty($account_info['webapp_limit']) && (!empty($account_info['founder_webapp_limit']) && $_W['user']['owner_uid'] || empty($_W['user']['owner_uid'])) || $_W['isfounder'] && !user_is_vice_founder()}
  35. <a ng-switch-when="webapp" href="{php echo url('account/create', array('sign' => 'webapp'))}" class="btn btn-primary">
  36. 新增PC
  37. </a>
  38. {/if}
  39. {if !empty($account_info['phoneapp_limit']) && (!empty($account_info['founder_phoneapp_limit']) && $_W['user']['owner_uid'] || empty($_W['user']['owner_uid'])) || $_W['isfounder'] && !user_is_vice_founder()}
  40. <a ng-switch-when="phoneapp" href="{php echo url('account/create', array('sign' => 'phoneapp'))}" class="btn btn-primary">新建APP</a>
  41. {/if}
  42. {if !empty($account_info['xzapp_limit']) && (!empty($account_info['founder_xzapp_limit']) && $_W['user']['owner_uid'] || empty($_W['user']['owner_uid'])) || $_W['isfounder'] && !user_is_vice_founder()}
  43. <a ng-switch-when="xzapp" href="{php echo url('xzapp/post-step')}" class="btn btn-primary">新建熊掌号</a>
  44. {/if}
  45. {if !empty($account_info['aliapp_limit']) && (!empty($account_info['founder_aliapp_limit']) && $_W['user']['owner_uid'] || empty($_W['user']['owner_uid'])) || $_W['isfounder'] && !user_is_vice_founder()}
  46. <a ng-switch-when="aliapp" href="{php echo url('account/create', array('sign' => 'aliapp'))}" class="btn btn-primary">新建支付宝小程序</a>
  47. {/if}
  48. {if !empty($account_info['baiduapp_limit']) && (!empty($account_info['founder_baiduapp_limit']) && $_W['user']['owner_uid'] || empty($_W['user']['owner_uid'])) || $_W['isfounder'] && !user_is_vice_founder()}
  49. <a ng-switch-when="baiduapp" href="{php echo url('account/create', array('sign' => 'baiduapp'))}" class="btn btn-primary">新建百度小程序</a>
  50. {/if}
  51. {if !empty($account_info['toutiaoapp_limit']) && (!empty($account_info['founder_toutiaoapp_limit']) && $_W['user']['owner_uid'] || empty($_W['user']['owner_uid'])) || $_W['isfounder'] && !user_is_vice_founder()}
  52. <a ng-switch-when="toutiaoapp" href="{php echo url('account/create', array('sign' => 'toutiaoapp'))}" class="btn btn-primary">新建头条小程序</a>
  53. {/if}
  54. </div>
  55. </div>
  56. <div class="account-display-list" infinite-scroll='loadMore()' infinite-scroll-disabled='busy' infinite-scroll-distance='0' infinite-scroll-use-document-bottom="true">
  57. <div class="item" ng-repeat="detail in list|orderBy:'endtime_status'">
  58. <div class="item-box">
  59. {if !user_is_founder($_W['uid'])}
  60. <div class="auth-type">
  61. <i class="wi wi" ng-if="detail.user_role == 'owner'">主管理员</i>
  62. <i class="wi wi" ng-if="detail.user_role == 'manager'">管理员</i>
  63. <i class="wi wi" ng-if="detail.user_role == 'operator'">操作员</i>
  64. <i class="wi wi" ng-if="detail.user_role == 'clerk'">店员</i>
  65. </div>
  66. {/if}
  67. <a class="info" href="{{detail.switchurl}}&type={{detail.type}}">
  68. <img ng-src="{{detail.logo || ''}}" class="account-img logo" alt="">
  69. <div class="name " >
  70. <div ng-bind="detail.name" class="text-over">1</div>
  71. <div class="type" ng-if="detail.type_sign == 'account'">
  72. <span>微信公众号</span>
  73. <span ng-if="detail.need_upload == 1" class="new-version">新版本</span>
  74. </div>
  75. <div class="type" ng-if="detail.type_sign == 'account'">
  76. <span ng-if="detail.level == 1">普通订阅号</span>
  77. <span ng-if="detail.level == 2">普通服务号</span>
  78. <span ng-if="detail.level == 3">认证订阅号</span>
  79. <span ng-if="detail.level == 4">认证服务号</span>
  80. <span ng-if="detail.need_upload == 1" class="new-version">新版本</span>
  81. </div>
  82. <div class="type" ng-if="detail.type_sign == 'wxapp'">
  83. <span>微信小程序</span>
  84. <span ng-if="detail.need_upload == 1" class="new-version">新版本</span>
  85. </div>
  86. <div class="type" ng-if="detail.type_sign == 'webapp'">
  87. <span>PC</span>
  88. <span ng-if="detail.need_upload == 1" class="new-version">新版本</span>
  89. </div>
  90. <div class="type" ng-if="detail.type_sign == 'phoneapp'">
  91. <span>APP</span>
  92. <span ng-if="detail.need_upload == 1" class="new-version">新版本</span>
  93. </div>
  94. <div class="type" ng-if="detail.type_sign == 'xzapp'">
  95. <span>熊掌号</span>
  96. <span ng-if="detail.need_upload == 1" class="new-version">新版本</span>
  97. </div>
  98. <div class="type" ng-if="detail.type_sign == 'aliapp'">
  99. <span>支付宝小程序</span>
  100. <span ng-if="detail.need_upload == 1" class="new-version">新版本</span>
  101. </div>
  102. <div class="type" ng-if="detail.type_sign == 'baiduapp'">
  103. <span>百度小程序</span>
  104. <span ng-if="detail.need_upload == 1" class="new-version">新版本</span>
  105. </div>
  106. <div class="type" ng-if="detail.type_sign == 'toutiaoapp'">
  107. <span>头条小程序</span>
  108. <span ng-if="detail.need_upload == 1" class="new-version">新版本</span>
  109. </div>
  110. <div class="type" ng-if="detail.support_version">
  111. <span>版本:{{detail.current_version.version}}</span>
  112. </div>
  113. </div>
  114. <div class="tip" ng-if="detail.endtime_status">
  115. <i class="wi wi-info">已到期</i>
  116. </div>
  117. </a>
  118. <div class="action">
  119. <a href="javascript:void(0);" class="action-up" ng-click="stick(detail.uniacid, detail.type)" data-toggle="tooltip" data-placement="bottom" data-title="置顶"><i class="wi wi-stick-sign"></i></a>
  120. <a class="action-account" href="{{detail.switchurl}}">
  121. <i class="wi wi-denglu"></i> 进入
  122. </a>
  123. <div class="action-cut">
  124. <a href="{php echo url('miniapp/version/display')}&uniacid={{detail.uniacid}}" class="cut-btn" ng-if="detail.support_version" data-toggle="tooltip" data-placement="bottom" data-title="切换版本">
  125. <i class="wi wi-changing-over"></i>
  126. </a>
  127. </div>
  128. </div>
  129. </div>
  130. </div>
  131. </div>
  132. <!--新建弹窗-->
  133. <div class="modal fade modal-type" tabindex="-1" role="dialog" id="owner-modal">
  134. <div class="modal-dialog" role="document">
  135. <div class="modal-content">
  136. <div class="modal-header clearfix">
  137. 新建
  138. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  139. </div>
  140. <div class="modal-body">
  141. <div class="type-list">
  142. {if !empty($account_info['account_limit']) && (!empty($account_info['founder_account_limit']) && $user_founder_uid || empty($user_founder_uid)) || $_W['isfounder'] && !user_is_vice_founder()}
  143. <a class="item" href="./index.php?c=account&a=post-step">
  144. <i class="wi wi-wx-circle"></i>
  145. <div class="name">新建公众号</div>
  146. <div class="mark">
  147. 去新建
  148. </div>
  149. </a>
  150. {/if}
  151. {if !empty($account_info['wxapp_limit']) && (!empty($account_info['founder_wxapp_limit']) && $user_founder_uid || empty($user_founder_uid)) || $_W['isfounder'] && !user_is_vice_founder()}
  152. <a href="{php echo url('wxapp/post/design_method')}" class="item">
  153. <i class="wi wi-wxapp"></i>
  154. <div class="name">新建微信小程序</div>
  155. <div class="mark">
  156. 去新建
  157. </div>
  158. </a>
  159. {/if}
  160. {if !empty($account_info['webapp_limit']) && (!empty($account_info['founder_webapp_limit']) && $user_founder_uid || empty($user_founder_uid)) || $_W['isfounder'] && !user_is_vice_founder()}
  161. <a href="{php echo url('account/create', array('sign' => 'webapp'))}" class="item">
  162. <i class="wi wi-pc-circle"></i>
  163. <div class="name">新建PC</div>
  164. <div class="mark">
  165. 去新建
  166. </div>
  167. </a>
  168. {/if}
  169. {if !empty($account_info['phoneapp_limit']) && (!empty($account_info['founder_phoneapp_limit']) && $user_founder_uid || empty($user_founder_uid)) || $_W['isfounder'] && !user_is_vice_founder()}
  170. <a href="{php echo url('account/create', array('sign' => 'phoneapp'))}" class="item">
  171. <i class="wi wi-app"></i>
  172. <div class="name">新建APP</div>
  173. <div class="mark">
  174. 去新建
  175. </div>
  176. </a>
  177. {/if}
  178. {if !empty($account_info['xzapp_limit']) && (!empty($account_info['founder_xzapp_limit']) && $user_founder_uid || empty($user_founder_uid)) || $_W['isfounder'] && !user_is_vice_founder()}
  179. <a href="{php echo url('xzapp/post-step')}" class="item">
  180. <i class="wi wi-xzapp"></i>
  181. <div class="name">新建熊掌号</div>
  182. <div class="mark">
  183. 去新建
  184. </div>
  185. </a>
  186. {/if}
  187. {if !empty($account_info['aliapp_limit']) && (!empty($account_info['founder_aliapp_limit']) && $user_founder_uid || empty($user_founder_uid)) || $_W['isfounder'] && !user_is_vice_founder()}
  188. <a href="{php echo url('account/create', array('sign' => 'aliapp'))}" class="item">
  189. <i class="wi wi-aliapp"></i>
  190. <div class="name">新建支付宝小程序</div>
  191. <div class="mark">
  192. 去新建
  193. </div>
  194. </a>
  195. {/if}
  196. {if !empty($account_info['baiduapp_limit']) && (!empty($account_info['founder_baiduapp_limit']) && $user_founder_uid || empty($user_founder_uid)) || $_W['isfounder'] && !user_is_vice_founder()}
  197. <a href="{php echo url('account/create', array('sign' => 'baiduapp'))}" class="item">
  198. <i class="wi wi-baiduapp"></i>
  199. <div class="name">新建百度小程序</div>
  200. <div class="mark">
  201. 去新建
  202. </div>
  203. </a>
  204. {/if}
  205. {if !empty($account_info['toutiaoapp_limit']) && (!empty($account_info['founder_toutiaoapp_limit']) && $user_founder_uid || empty($user_founder_uid)) || $_W['isfounder'] && !user_is_vice_founder()}
  206. <a href="{php echo url('account/create', array('sign' => 'toutiaoapp'))}" class="item">
  207. <i class="wi wi-toutiaoapp"></i>
  208. <div class="name">新建头条小程序</div>
  209. <div class="mark">
  210. 去新建
  211. </div>
  212. </a>
  213. {/if}
  214. </div>
  215. </div>
  216. <div class="modal-footer">
  217. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  218. </div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. <script>
  226. angular.module('accountApp').value('config', {
  227. 'nav_top_fold': {php echo !empty($nav_top_fold) ? json_encode($nav_top_fold) : 'null'},
  228. 'welcomeUrl': '{php echo url('home/welcome/');}',
  229. 'accountUrl': '{php echo url('account/display/')}',
  230. 'list' : {php echo !empty($list) ? json_encode($list) : 'null'},
  231. 'type' : "{$type}",
  232. 'title' : "{$title}",
  233. 'keyword' : "{$keyword}",
  234. 'letter' : "{$letter}",
  235. 'founder_id' : "{$founder_id}",
  236. 'total' : '{$total}',
  237. 'links' : {
  238. 'changeType' : "{php echo url('account/display')}",
  239. 'rank' : "{php echo url('account/display/rank')}",
  240. 'welcome' : "{php echo url('home/welcome/add_welcome')}",
  241. 'wxapp_more_version' : "{php echo url('wxapp/version/display')}",
  242. 'aliapp_more_version' : "{php echo url('miniapp/version/display')}",
  243. 'baiduapp_more_version' : "{php echo url('miniapp/version/display')}",
  244. 'toutiaoapp_more_version' : "{php echo url('miniapp/version/display')}",
  245. 'phoneapp_more_version' : "{php echo url('phoneapp/version/display')}"
  246. },
  247. 'scrollUrl' : "{php echo url('account/display', array('type'=>$type))}"
  248. });
  249. angular.bootstrap($('#js-account-display'), ['accountApp']);
  250. </script>
  251. {template 'common/footer'}