welcome.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. {template 'common/header'}
  2. <div class="module-welcome welcome-container clearfix" id="js-module-welcome" ng-controller="userModuleWelcomeCtrl" ng-cloak>
  3. <!-- 默认后台入口 start -->
  4. <div class="panel we7-panel module-go-panele" ng-if="module_info.welcome_display">
  5. <div class="panel-heading we7-padding clearfix">
  6. <h4 class="pull-left">应用后台管理</h4>
  7. <a href="{php echo url('module/welcome/welcome_display', array('m' => $module_name))}" class="btn btn-primary pull-right" target="_blank">
  8. 进入后台
  9. </a>
  10. <div class="switch-box pull-right we7-margin-right">
  11. <div class=" switch" ng-class="{'switchOn' : module_info.direct_enter_status}" ng-click="changeEnterStatus()"></div>
  12. </div>
  13. <div class="pull-right we7-margin-right module-go-home">
  14. 后台快捷入口 <i class="wi wi-info">
  15. <div class="tooltip bottom" role="tooltip">
  16. <div class="tooltip-arrow"></div>
  17. <div class="tooltip-inner">
  18. <p> <i class="wi wi-info "></i> 1.开启开关后,从应用列表,可以<span class=" color-red">直接进入应用的独立后台</span>,无需进入应用的欢迎页面</p>
  19. <p> <i class="wi wi-info "></i> 2.为确保登录后直接进入应用独立后台,请先设置登录系统后跳转至<span class=" color-red">应用入口页面</span>。<a href="/index.php?c=user&a=profile&" class="color-default" target="_blank">请前去设置</a></p>
  20. <p> <i class="wi wi-info "></i>3.开启开关后,点击<span class=" color-red">进入后台</span>会出现<span class=" color-red">悬浮的菜单</span>,方便您从应用后台返回系统。如图所示</p>
  21. <p>
  22. <img src="./resource/images/welcome/module/1.png" alt="">
  23. <img src="./resource/images/welcome/module/2.png" alt="">
  24. </p>
  25. <p> <i class="wi wi-info"></i> 4.关闭该功能,请返回应用欢迎页,关闭开关。</p>
  26. </div>
  27. </div>
  28. </i>
  29. </div>
  30. </div>
  31. </div>
  32. <!-- 默认后台入口 end -->
  33. <!-- 关联账号 -->
  34. <div class="panel we7-panel ">
  35. <div class="panel-heading">
  36. <h4>关联平台</h4>
  37. <a ng-if="account_info.current_user_role != 'clerk'" href="{php echo url('module/link-account', array('m' => $module_name, 'uniacid' => $uniacid))}" class="more">查看更多</a>
  38. </div>
  39. <div class="panel-body">
  40. <div class="account-list">
  41. <div class="account-item main" ng-click="account_switch(account_info.switchurl)" ng-if="account_info">
  42. <img ng-src="{{ account_info.logo }}" class="account-img logo" alt="" >
  43. <div class="info">
  44. <div class="title">
  45. {{ account_info.name }}
  46. </div>
  47. <div class="type">
  48. <i class="wi wi-{{ account_info.type_sign}}"></i><span ng-bind="account_info.type_name"></span>
  49. </div>
  50. </div>
  51. </div>
  52. <div class="account-item" ng-repeat="link_account in link_accounts" ng-if="$index < 4" ng-click="account_switch(link_account.switchurl)"> <!-- 最多4个-->
  53. <img ng-src="{{ link_account.logo }}" class="account-img logo" alt="">
  54. <div class="info">
  55. <div class="title">
  56. {{ link_account.name }}
  57. </div>
  58. <div class="type">
  59. <i class="wi wi-{{ link_account.type_sign}}"></i><span ng-bind="link_account.type_name"></span>
  60. </div>
  61. </div>
  62. </div>
  63. <!-- 为空的时候显示 -->
  64. <!--<div class="empty">-->
  65. <!--<a href="" class="btn btn-primary" >添加子账号</a>-->
  66. <!--<p>可添加改应用下关联子账号</p>-->
  67. <!--</div>-->
  68. </div>
  69. </div>
  70. </div>
  71. <!-- 关联账号end -->
  72. <!-- 功能快捷入口 start -->
  73. <div class="panel we7-panel">
  74. <div class="panel-heading">
  75. <h4>功能快捷入口</h4>
  76. <a ng-if="account_info.current_user_role != 'clerk'" href="{php echo url('module/shortcut', array('m' => $module_name, 'uniacid' => $uniacid))}" class="more" >管理快捷入口</a>
  77. </div>
  78. <div class="panel-body ">
  79. <div class="quick-list" ng-if="!(shortcuts | we7IsEmpty)">
  80. <a href="{{ shortcut.url }}" target="_blank" class="quick-item" ng-repeat="shortcut in shortcuts" ng-if="shortcuts.length && $index < 6">
  81. <div class="icon">
  82. <img ng-src="{{shortcut.icon}}" alt="" ng-if="shortcut.welcome_display">
  83. <img ng-src="{{attachurl}}{{shortcut.icon}}" alt="" ng-if="!shortcut.welcome_display">
  84. </div>
  85. <div class="name text-over" ng-bind="shortcut.title"></div>
  86. </a>
  87. </div>
  88. <div class="quick-list" ng-if="shortcuts | we7IsEmpty">
  89. <div class="we7-empty-block" >
  90. 暂无快捷入口
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. <!-- 功能快捷入口 end -->
  96. <!-- 入口 start -->
  97. <div class="panel we7-panel" ng-if="covers || replies" >
  98. <div class="panel-heading" >
  99. <h4>入口</h4>
  100. <ul class="nav nav-tabs" role="tablist">
  101. <li role="presentation" ng-class="{active: covers}"><a href="#entry" aria-controls="entry" role="tab" data-toggle="tab" ng-click="changeEntryType('entry')" ng-if="covers">封面</a></li>
  102. <li role="presentation" ng-class="{active: !covers}"><a href="#keyword" aria-controls="keyword" role="tab" data-toggle="tab" ng-click="changeEntryType('reply')" ng-if="replies">关键字</a></li>
  103. </ul>
  104. <a href="javascript:void(0);" ng-click="pageTo('cover', cover_id)" class="more" ng-if="entryType == 'cover'">查看更多</a>
  105. <a href="javascript:void(0);" ng-click="pageTo('reply', cover_id)" class="more" ng-if="entryType == 'reply'">查看更多</a>
  106. </div>
  107. <div class="panel-body">
  108. <div class="tab-content">
  109. <div class="tab-pane" ng-class="{'active': covers}" id="entry">
  110. <div class="entry-list">
  111. <div class="entry-item" ng-repeat="cover in covers" ng-if="$index < 3"> <!-- 3个-->
  112. <div data-url="{$_W['siteroot']}app/{{ cover.url}}" data-size="100" class="qr js-url-qrcode">
  113. <div class="qrcode-block"><canvas></canvas></div>
  114. </div>
  115. <div class="info">
  116. <div class="entry-title">
  117. <span class="title">入口名称</span>
  118. <span ng-bind="cover.title"></span>
  119. </div>
  120. <div class="entry-keyword-list" ng-if="false">
  121. <span class="title">关键字</span>
  122. <div ng-repeat="item in cover.keyword" > <!-- todo 这块写循环-->
  123. <span class="entry-keyword-item text-over" ng-show="$index < 3">
  124. <span >权限信息权限信息权限信息权限信息</span>
  125. </span>
  126. <span ng-show="$index == 3">....</span>
  127. </div>
  128. <div > <!-- todo 这块写循环-->
  129. <span class="entry-keyword-item text-over" > <!-- 记得 加上这个 ng-show="$index < 3"-->
  130. <span >权限信息权限信息权限信息权限信息</span>
  131. </span>
  132. </div>
  133. <div > <!-- 这块写循环-->
  134. <span class="entry-keyword-item text-over" > <!-- 记得 加上这个 ng-show="$index < 3"-->
  135. <span >权限信息权限信息权限信息权限信息</span>
  136. </span>
  137. </div>
  138. <div > <!-- 这块写循环-->
  139. <span class="entry-keyword-item text-over" > <!-- 记得 加上这个 ng-show="$index < 3"-->
  140. <span >权限信息权限信息权限信息权限信息</span>
  141. </span>
  142. </div>
  143. <div > <!-- 这块写循环-->
  144. <span ng-show="$index == 3">....</span>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. <div class="tab-pane" ng-class="{'active': !covers}" id="keyword">
  152. <div class="keyword-list">
  153. <div class="keyword-item" ng-repeat="reply in replies">
  154. <div class="keyword">
  155. <span class="title">关键字</span>
  156. <span class="keyword-label text-over" ng-repeat="keyword in reply.keywords" ng-bind="keyword.content" ng-if="$index == 0"></span> <!--1个-->
  157. </div>
  158. <div class="content">
  159. <span class="title">回复内容</span>
  160. <span ng-bind="reply.module_info.title | limitTo:10"></span>
  161. </div>
  162. </div>
  163. </div>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. <!-- 入口 end-->
  169. <!-- 权限 start -->
  170. <div class="panel we7-panel" ng-if="account_info.current_user_role != 'clerk'">
  171. <div class="panel-heading">
  172. <h4>应用操作员</h4>
  173. <a href="{php echo url('module/permission', array('m' => $module_name))}" class="more" ng-if="user_permissions"> 查看更多</a>
  174. <a href="{php echo url('module/permission/post', array('m' => $module_name))}" target="_blank" class="more" ng-if="user_permissions"> 添加操作员</a>
  175. </div>
  176. <div class="panel-body">
  177. <div class="permission-box-list" ng-if="!(user_permissions | we7IsEmpty)">
  178. <div class="permission-box-item" ng-repeat="permission in user_permissions" ng-if="$index < 3"> <!-- 3个 -->
  179. <div class="logo">
  180. <img ng-src="{{permission.user_info.avatar || './resource/images/nopic-user.png'}}" alt="">
  181. </div>
  182. <div class="info">
  183. <div class="name text-over" ng-bind="permission.user_info.username"></div>
  184. <div class="permission-list text-over">
  185. <span class="title">权限信息</span>
  186. <div ng-repeat="(index, permission_name) in permission.permission" >
  187. <span class="permission-item text-over" ng-show="$index < 3">
  188. <span ng-if="!permission_name">全部</span>
  189. <span ng-if="permission_name != 'all'" ng-bind="permission_name"></span>
  190. </span>
  191. <span ng-show="$index == 3">....</span>
  192. </div>
  193. </div>
  194. </div>
  195. </div>
  196. </div>
  197. <div class="permission-box-list" ng-if="user_permissions | we7IsEmpty">
  198. <div class="we7-empty-block" >
  199. 暂无操作员
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. <!-- 权限 end -->
  205. <!-- 公告 start -->
  206. <div class="panel we7-panel">
  207. <div class="panel-heading">
  208. <h4>公告</h4>
  209. <a ng-if="account_info.current_user_role != 'clerk'" href="{php echo url('article/notice-show');}" class="more">查看更多</a>
  210. {if $_W['role'] == ACCOUNT_MANAGE_NAME_FOUNDER}
  211. <a ng-if="account_info.current_user_role != 'clerk'" href="{php echo url('article/notice/post');}" class="more">去新建</a>
  212. {/if}
  213. </div>
  214. <div class="panel-body">
  215. <div class="tab-content">
  216. <div class="tab-pane active" id="notice">
  217. <ul class="list-group notice-statistics">
  218. <li class="list-group-item" ng-if="notices" ng-repeat="notice in notices">
  219. <a href="{{notice.url}}" ng-if="notice.style.color && notice.style.bold" style="color:{{notice.style.color}};font-weight:bold">{{notice.title}}</a>
  220. <a href="{{notice.url}}" ng-if="notice.style.color && !notice.style.bold" style="color:{{notice.style.color}};">{{notice.title}}</a>
  221. <a href="{{notice.url}}" ng-if="notice.style.bold && !notice.style.color" style="font-weight:bold;">{{notice.title}}</a>
  222. <a href="{{notice.url}}" ng-if="!notice.style.color && !notice.style.color">{{notice.title}}</a>
  223. <span class="pull-right color-gray">
  224. {{ notice.createtime}}
  225. </span>
  226. </li>
  227. <div class="we7-empty-block" ng-if="!notices">
  228. 暂无公告
  229. </div>
  230. </ul>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. <!-- 公告 end -->
  236. </div>
  237. <script>
  238. angular.module('moduleApp').value('config', {
  239. family: "{IMS_FAMILY}",
  240. 'module_name': "{$module_name}",
  241. 'uniacid': "{$uniacid}",
  242. 'attachurl' : "{$_W['attachurl']}",
  243. 'apiLink': '//api.w7.cc',
  244. 'notices' : {php echo json_encode($notices)},
  245. 'links' : {
  246. 'cover_url' : "{php echo url('platform/cover')}",
  247. 'reply_url' : "{php echo url('platform/reply')}",
  248. 'shortcut' : "{php echo url('module/shortcut/display', array('m' => $module_name, 'uniacid' => $uniacid))}",
  249. 'get_module_info_url' : "{php echo url('module/welcome/get_module_info', array('m' => $module_name, 'uniacid' => $uniacid))}",
  250. 'get_module_replies_url' : "{php echo url('module/welcome/get_module_replies', array('m' => $module_name, 'uniacid' => $uniacid))}",
  251. 'get_module_accounts_url' : "{php echo url('module/welcome/get_module_accounts', array('m' => $module_name, 'uniacid' => $uniacid))}",
  252. 'get_module_covers_url' : "{php echo url('module/welcome/get_module_covers', array('m' => $module_name, 'uniacid' => $uniacid))}",
  253. 'module_permission_url' : "{php echo url('module/permission/display', array('m' => $module_name, 'uniacid' => $uniacid))}",
  254. 'change_direct_enter_status': "{php echo url('module/welcome/change_enter_status', array('m' => $module_name, 'uniacid' => $uniacid))}",
  255. }
  256. });
  257. angular.bootstrap($('#js-module-welcome'), ['moduleApp']);
  258. </script>
  259. {template 'common/footer'}