1003610197_run.jsp 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  3. <%@ taglib uri="/WEB-INF/SpaceCoreApp.tld" prefix="app"%>
  4. <% pageContext.setAttribute(space.core.apps.common.ConstVars.MODULE_DM_KEY, "sys"); %>
  5. <!DOCTYPE html >
  6. <html>
  7. <head>
  8. <meta charset="UTF-8">
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover">
  10. <meta name="apple-mobile-web-app-capable" content="yes">
  11. <link rel="stylesheet" href="/apps/space/css/SpaceIcon/iconfont.css">
  12. <link rel="stylesheet" href="/css/mobile.animate.css">
  13. <link rel="stylesheet" href="/css/ckeditor.css">
  14. <link rel="stylesheet" href="/apps/space/plug-in/mescroll/dist/mescroll.min.css">
  15. <link rel="stylesheet" href="/apps/space/plug-in/vant/index.css">
  16. <link rel="stylesheet" href="/apps/space/plug-in/mobileSelect/css/mobileSelect.css">
  17. <link rel="stylesheet" href="/css/mobile.style.css">
  18. <script>var space = { vars: {} };</script>
  19. <script src="/js/jquery1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
  20. <script src="/apps/space/plug-in/vue/vue.min.js" type="text/javascript" charset="utf-8"></script>
  21. <script src="/apps/space/plug-in/vant/vant.min.js" type="text/javascript" charset="utf-8"></script>
  22. <script src="/apps/space/plug-in/dayjs/dayjs.min.js" type="text/javascript" charset="utf-8"></script>
  23. <script src="/apps/space/plug-in/mescroll/dist/mescroll.js"></script>
  24. <script src="/apps/space/plug-in/layer-v3.1.1/layer.js"></script>
  25. <script src="/apps/space/plug-in/mobileSelect/js/mobileSelect.js"></script>
  26. <script src="/js/space.mobile.core.js" type="text/javascript" charset="utf-8"></script>
  27. <script src="/js/space.vue.subassembly.js" type="text/javascript" charset="utf-8"></script>
  28. <script src="/js/space.mobile.recycle.js" type="text/javascript" charset="utf-8"></script>
  29. <link rel="stylesheet" href="/css/mobile.workbence.css">
  30. <title>${curWebSiteObj.seoTitle}</title>
  31. <style>
  32. #space-content,
  33. #appWindow-iframe {
  34. position: fixed;
  35. }
  36. #appWindow-iframe {
  37. height: calc(100% - 46px);
  38. }
  39. .space-tabbar {
  40. background-color: #fff;
  41. }
  42. .iframe-wrap {
  43. overflow-y: initial;
  44. }
  45. </style>
  46. </head>
  47. <body class="body-bg-gray">
  48. <div v-cloak id="space-content" v-cloak>
  49. <div class="content-wrap">
  50. <div class="iframe-wrap">
  51. <iframe :src="spaceTabbarActive" id="windowFrm" frameborder="0"></iframe>
  52. </div>
  53. <!-- Popup 弹出层 / 业务程序组件 -->
  54. <van-popup v-model="appWindow.isShowAppWindow" :position="appWindow.position"
  55. style="width: 100%;height: 100%;">
  56. <div class="appWindow">
  57. <div class="appWindow-top">
  58. <!-- <i id="appWindow-back" onclick="spaceConsole.appWindow.closeAppWinLayer();"
  59. class="spaceicon icon-left appWindow-top-back"></i> -->
  60. <div id="appWinTitle">{{appWindow.appWindowTitle}}</div>
  61. <div class="appWindow-top-btn" onclick="spaceConsole.appWindow.cancel()">
  62. <i class="van-icon van-icon-weapp-nav"></i>
  63. <span></span>
  64. <i class="van-icon van-icon-cross"></i>
  65. </div>
  66. </div>
  67. <div class="appWindow-iframe">
  68. <iframe :src="appWindow.appWindowUrl" :data-app-index="appWindow.index" frameborder="0"
  69. id="appWindow-iframe"></iframe>
  70. </div>
  71. </div>
  72. </van-popup>
  73. <!-- 自定义组件 / 底部导航 -->
  74. <space-tabbar v-model="spaceTabbarActive" :spaceTabbar="spaceTabbar"></space-tabbar>
  75. </div>
  76. </div>
  77. </body>
  78. <script src="/js/space.mobile.console.js"></script>
  79. <script>
  80. var cmsUrl = "<app:token name='sys.cmsSubmit' />";
  81. space.sessionStorage.setItem(space.vars.MODULE_DATA, '${moudulesData}');
  82. var spaceTabbar = {
  83. // 全局配置
  84. config: {
  85. "style": "white", // 风格,可选值 “white”(白) 和 “grey”(灰),白色色值为 #ffffff, 灰色色值为 #f9f9f9,应用于整体背景色,头部的边框线颜色统一为 #b9b9b9
  86. "color": '#646566', // 文字颜色
  87. "selectedColor": '#1989fa' // 选中后的文字颜色
  88. },
  89. // 循环时加判断,最多不能超过6个,允许6个
  90. tabbarList: [
  91. {
  92. "text": "首页",
  93. "url": "<app:token page='10507' />", //点击后切换的 URL
  94. "iconPath": "/apps/space/images/mobile/tabbar/home.png",
  95. "selectedIconPath": "/apps/space/images/mobile/tabbar/home_fill.png",
  96. },
  97. {
  98. "text": "待办",
  99. "url": "<app:token page='10052' />", //点击后切换的 URL
  100. "iconPath": "/apps/space/images/mobile/tabbar/activity.png",
  101. "selectedIconPath": "/apps/space/images/mobile/tabbar/activity_fill.png",
  102. },
  103. {
  104. "text": "驾驶舱",
  105. "url": "<app:token page='10153' />", //点击后切换的 URL
  106. "iconPath": "/apps/space/images/mobile/tabbar/cockpit.png",
  107. "selectedIconPath": "/apps/space/images/mobile/tabbar/cockpit_fill.png",
  108. },
  109. {
  110. // 非空,文字
  111. "text": "应用",
  112. // 非空,点击后切换的 URL
  113. "url": "<app:token page='10198' />",
  114. // 非空,图片
  115. "iconPath": "/apps/space/images/mobile/tabbar/manage.png",
  116. // 非空,选中后的图片
  117. "selectedIconPath": "/apps/space/images/mobile/tabbar/manage_fill.png",
  118. // 可空,自定义类样式名
  119. "class": "workdiy gifc",
  120. // 可以为空,开启圆点,可选值为“true”和“false”,默认为“false”
  121. // "dot": true
  122. },
  123. {
  124. "text": "我",
  125. "url": "<app:token page='10199' />", //点击后切换的 URL
  126. "iconPath": "/apps/space/images/mobile/tabbar/group.png",
  127. "selectedIconPath": "/apps/space/images/mobile/tabbar/group_fill.png",
  128. }
  129. ]
  130. }
  131. space.vue = new Vue({
  132. el: space.appContent,
  133. data: function () {
  134. return {
  135. spaceTabbar: spaceTabbar,
  136. spaceTabbarActive: spaceTabbar.tabbarList[0].url,
  137. appWindow: { //业务程序组件
  138. index: 1, // 下标
  139. isShowAppWindow: false,
  140. appWindowTitle: "加载中",
  141. appWindowUrl: "",
  142. position: "bottom",
  143. }
  144. }
  145. },
  146. mounted: function () {
  147. var _this = this;
  148. space.utils.ajax({
  149. url: '<app:token name='sys.sys_flow_number' params='{ respDataType: "@json" }' />',
  150. dataType: 'json',
  151. callback: function (data) {
  152. // 待办的数量
  153. _this.setBacklogDot(data.auditNumber != '0');
  154. }
  155. });
  156. },
  157. methods: {
  158. /**
  159. * 微信跳转
  160. */
  161. wxJump: function (sid) {
  162. if (space.utils.notNull(sid)) {
  163. this.spaceTabbarActive = this.spaceTabbar.tabbarList[1].url;
  164. space.plugin.loading.show();
  165. space.utils.ajax({
  166. url: '<app:token name='sys.sys_flow_wx_jump' />',
  167. data: {
  168. "sid": sid
  169. },
  170. dataType: 'json',
  171. callback: function (data) {
  172. space.plugin.loading.close();
  173. if (data.code == "success") {
  174. space.plugin.appWindow.show({
  175. "title": data.data.title,
  176. "url": data.data.url,
  177. 'position': 'right',
  178. close: function () {
  179. space.utils.window.getTopWin().location.reload();
  180. }
  181. });
  182. }
  183. else {
  184. top.space.message.error('系统繁忙,请稍后再试');
  185. }
  186. }
  187. });
  188. }
  189. },
  190. /**
  191. * 修改密码的跳转
  192. */
  193. updatePasswordJump: function () {
  194. if ("${appUser.defaultPasswordFlag}" == "true") {
  195. space.plugin.appWindow.show({
  196. "title": "修改密码",
  197. "url": '<app:token page='10401' />'
  198. });
  199. }
  200. },
  201. setBacklogDot: function(dotFlag) {
  202. Vue.set(this.spaceTabbar.tabbarList[1], "dot", dotFlag);
  203. }
  204. }
  205. })
  206. $(document).ready(function () {
  207. var sid = space.localStorage.getItem("wxMsgJumpSID");
  208. space.localStorage.removeItem("wxMsgJumpSID");
  209. if (space.utils.notNull(sid)) {
  210. space.vue.wxJump(sid);
  211. }
  212. else {
  213. space.vue.updatePasswordJump();
  214. }
  215. });
  216. </script>
  217. <script type="text/javascript">space.vars.pageTypeCode = "10005";</script>
  218. <script type="text/javascript">space.vars.pageHashCode = "6mfWbFsB5aqT/VQH8EG1PQ==";</script>
  219. <script type="text/javascript">removeTokens("<app:token name='sys.removeToken' />", '<%= pageContext.getAttribute(space.core.apps.common.ConstVars.TOKEN_SESSION_LIST_KEY) %>')</script>
  220. </html>