| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220 |
- <html>
- <head>
- <link rel="stylesheet" href="/css/mobile.workbence.css">
- <title>${curWebSiteObj.seoTitle}</title>
- <style>
- #space-content,
- #appWindow-iframe {
- position: fixed;
- }
- #appWindow-iframe {
- height: calc(100% - 46px);
- }
- .space-tabbar {
- background-color: #fff;
- }
-
- .iframe-wrap {
- overflow-y: initial;
- }
- </style>
- </head>
- <body class="body-bg-gray">
- <div id="space-content" v-cloak>
- <div class="content-wrap">
- <div class="iframe-wrap">
- <iframe :src="spaceTabbarActive" id="windowFrm" frameborder="0"></iframe>
- </div>
- <!-- Popup 弹出层 / 业务程序组件 -->
- <van-popup v-model="appWindow.isShowAppWindow" :position="appWindow.position"
- style="width: 100%;height: 100%;">
- <div class="appWindow">
- <div class="appWindow-top">
- <!-- <i id="appWindow-back" onclick="spaceConsole.appWindow.closeAppWinLayer();"
- class="spaceicon icon-left appWindow-top-back"></i> -->
- <div id="appWinTitle">{{appWindow.appWindowTitle}}</div>
- <div class="appWindow-top-btn" onclick="spaceConsole.appWindow.cancel()">
- <i class="van-icon van-icon-weapp-nav"></i>
- <span></span>
- <i class="van-icon van-icon-cross"></i>
- </div>
- </div>
- <div class="appWindow-iframe">
- <iframe :src="appWindow.appWindowUrl" :data-app-index="appWindow.index" frameborder="0"
- id="appWindow-iframe"></iframe>
- </div>
- </div>
- </van-popup>
- <!-- 自定义组件 / 底部导航 -->
- <space-tabbar v-model="spaceTabbarActive" :spaceTabbar="spaceTabbar"></space-tabbar>
- </div>
- </div>
- </body>
- <script src="/js/space.mobile.console.js"></script>
- <script>
- var cmsUrl = "@service{ name:'cmsSubmit' }@";
- space.sessionStorage.setItem(space.vars.MODULE_DATA, '${moudulesData}');
- var spaceTabbar = {
- // 全局配置
- config: {
- "style": "white", // 风格,可选值 “white”(白) 和 “grey”(灰),白色色值为 #ffffff, 灰色色值为 #f9f9f9,应用于整体背景色,头部的边框线颜色统一为 #b9b9b9
- "color": '#646566', // 文字颜色
- "selectedColor": '#1989fa' // 选中后的文字颜色
- },
- // 循环时加判断,最多不能超过6个,允许6个
- tabbarList: [
- {
- "text": "首页",
- "url": "@service{ page:'sys.my_home_mobile.my_home'}@", //点击后切换的 URL
- "iconPath": "/apps/space/images/mobile/tabbar/home.png",
- "selectedIconPath": "/apps/space/images/mobile/tabbar/home_fill.png",
- },
- {
- "text": "待办",
- "url": "@service{ page:'common_audit.backlog'}@", //点击后切换的 URL
- "iconPath": "/apps/space/images/mobile/tabbar/activity.png",
- "selectedIconPath": "/apps/space/images/mobile/tabbar/activity_fill.png",
- },
- {
- "text": "驾驶舱",
- "url": "@service{ page:'website.website_monitoring.monitoring'}@", //点击后切换的 URL
- "iconPath": "/apps/space/images/mobile/tabbar/cockpit.png",
- "selectedIconPath": "/apps/space/images/mobile/tabbar/cockpit_fill.png",
- },
- {
- // 非空,文字
- "text": "应用",
- // 非空,点击后切换的 URL
- "url": "@service{ page: 'modules' }@",
- // 非空,图片
- "iconPath": "/apps/space/images/mobile/tabbar/manage.png",
- // 非空,选中后的图片
- "selectedIconPath": "/apps/space/images/mobile/tabbar/manage_fill.png",
- // 可空,自定义类样式名
- "class": "workdiy gifc",
- // 可以为空,开启圆点,可选值为“true”和“false”,默认为“false”
- // "dot": true
- },
- {
- "text": "我",
- "url": "@service{ page: 'myInfo' }@", //点击后切换的 URL
- "iconPath": "/apps/space/images/mobile/tabbar/group.png",
- "selectedIconPath": "/apps/space/images/mobile/tabbar/group_fill.png",
- }
- ]
- }
- space.vue = new Vue({
- el: space.appContent,
- data: function () {
- return {
- spaceTabbar: spaceTabbar,
- spaceTabbarActive: spaceTabbar.tabbarList[0].url,
- appWindow: { //业务程序组件
- index: 1, // 下标
- isShowAppWindow: false,
- appWindowTitle: "加载中",
- appWindowUrl: "",
- position: "bottom",
- }
- }
- },
- mounted: function () {
- var _this = this;
- space.utils.ajax({
- url: '@service{ name: `sys_flow_number`, params: `{ respDataType: "@json" }` }@',
- dataType: 'json',
- callback: function (data) {
- // 待办的数量
- _this.setBacklogDot(data.auditNumber != '0');
- }
- });
- },
- methods: {
- /**
- * 微信跳转
- */
- wxJump: function (sid) {
- if (space.utils.notNull(sid)) {
- this.spaceTabbarActive = this.spaceTabbar.tabbarList[1].url;
- space.plugin.loading.show();
- space.utils.ajax({
- url: '@service{ name: `sys.sys_flow_wx_jump`}@',
- data: {
- "sid": sid
- },
- dataType: 'json',
- callback: function (data) {
- space.plugin.loading.close();
- if (data.code == "success") {
- space.plugin.appWindow.show({
- "title": data.data.title,
- "url": data.data.url,
- 'position': 'right',
- close: function () {
- space.utils.window.getTopWin().location.reload();
- }
- });
- }
- else {
- top.space.message.error('系统繁忙,请稍后再试');
- }
- }
- });
- }
- },
- /**
- * 修改密码的跳转
- */
- updatePasswordJump: function () {
- if ("${appUser.defaultPasswordFlag}" == "true") {
- space.plugin.appWindow.show({
- "title": "修改密码",
- "url": '@service{ page: `sys.my_zone.update_password` }@'
- });
- }
- },
- setBacklogDot: function(dotFlag) {
- Vue.set(this.spaceTabbar.tabbarList[1], "dot", dotFlag);
- }
- }
- })
- $(document).ready(function () {
- var sid = space.localStorage.getItem("wxMsgJumpSID");
- space.localStorage.removeItem("wxMsgJumpSID");
- if (space.utils.notNull(sid)) {
- space.vue.wxJump(sid);
- }
- else {
- space.vue.updatePasswordJump();
- }
- });
- </script>
- </html>
|