1003610197_edit.jsp 6.0 KB

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