function getUrlParam(name) { var query = globalCache.sysQuery; return query[name]; } function getUrlParamOrigin(name) { var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)'); var r = window.location.search.substr(1).match(reg); if (r != null) { return decodeURIComponent(r[2]); } return null; //返回参数值 } new Vue({ el:'#app', data:{"judgeHtml_dvo2c4bok2w00":"","src_7bedzpbx77c00":"","mode_7bedzpbx77c00":2,"src_anghrjlp7z400":"","mode_anghrjlp7z400":2,"innerText_8y9uqeb429800":"学习强国","innerText_ksghjs3v45c00":">>","innerText_1r1mkdwv216o0":"搜索","src_7hjwlajj8vo00":"","mode_7hjwlajj8vo00":2,"src_4z9fzzh5nyc00":"","mode_4z9fzzh5nyc00":2,"src_iugctdj1v4w00":"","mode_iugctdj1v4w00":2,"src_bf384zwh0o000":"","mode_bf384zwh0o000":2,"value_fi31c8xbe4800":[],"pageSet_fi31c8xbe4800":0,"loadMore_fi31c8xbe4800":0,"src_en05onrr1ts00":"","mode_en05onrr1ts00":2,"src_aqmiq8w5e8800":"","mode_aqmiq8w5e8800":2,"currentPageId":"9a75e290b9cf8cb8fb529a6e503db78d","currentUser":"","location_latitude":"","location_longitude":"","localization":"zh","currentRoleAuthList":[],"judgeHtml_imto2r1bquw00":""}, computed:{ }, watch:{ }, filters: { formatDateFilter: function(timestamp, fmt) { if (timestamp) { if (!isNaN(timestamp)) { timestamp = parseInt(timestamp) } if (!isNaN(timestamp) && timestamp.toString().length == '10') { timestamp = timestamp * 1000 } return formatDate(fmt, timestamp) } return '' } }, created: function(){ if ('pc' == 'pc') { if (typeof dd != 'undefined') { dd = DingTalkPC } } window.ddenv = { corpId: '', agentId: '', appId: 'dingoankubyrfkttorhpou' }; if (typeof dd != 'undefined') { var url = '/api/dingtalk/auth'; var params = { url: location.href }; httpPost(url, params).done(function (res) { res = res.data var ddoptions = { agentId: window.ddenv.agentId, // 必填,微应用ID, corpId: window.ddenv.corpId, jsApiList: [ 'runtime.info', 'device.notification.alert', 'device.notification.confirm', 'device.notification.prompt', 'device.notification.toast', 'runtime.permission.requestAuthCode', // 获取免登授权码 'device.geolocation.get', // 获取地理位置信息 'device.base.getUUID', // 获取uuid 'biz.util.uploadImageFromCamera', 'biz.util.uploadImage', 'device.accelerometer.watchShake', 'biz.util.scan', 'biz.user.get', 'biz.cspace.saveFile', 'biz.cspace.preview', 'biz.cspace.chooseSpaceDir', 'biz.util.uploadAttachment' ] } ddoptions.nonceStr = res.nonceStr ddoptions.timeStamp = res.timeStamp ddoptions.signature = res.signature // console.log(ddoptions); dd.config(ddoptions); // dd ready dd.ready(function (res) { var apiUrl = '/api/dingtalk' dingtalk.runtime.permission.requestAuthCode({ //企业ID corpId: window.ddenv.corpId, onSuccess: function (result) {}, onFail: function (err) {} }) }) }) } if (this.onChangeCookie) this.onChangeCookie(); if (this.getUserAuthList) this.getUserAuthList(); this.currentUser = localStorage.getItem('phone') || '';this.flow_method_2cpphhyfebk00(); }, ready: function() { if(lessIEVersion(11)) { if(document.styleSheets) { document.styleSheets[0].addRule('style', 'display: none !important;'); } flexibility(document.body); document.styleSheets[0].addRule('.screen', 'position: relative !important;'); } else if(lessIE9()) { alert('您的浏览器版本过低,为了更好的体验,建议升级到IE9以上版本'); } }, methods: { click_8y9uqeb429800:function(){var that = this; var url = "/";window.open(url);}, onChangeCookie: function () { var that = this; var localizationFlag = Cookies.get('localization'); if ( localizationFlag ){ that.localization = localizationFlag; } }, flow_method_2cpphhyfebk00: function(item, event) { item = item || {}; event = event || {}; // document初始化 var self = this try { // FLOW [COMPUTE] 1 var res_1_0 = function() { var template = '#a# | 学习强国' var param = { a: document.title } for(var key in param) { var value = param[key] if(Object.prototype.toString.call(value) == '[object Array]') { value = value.join(',') } var source = '#' + key + '#' template = template.replace(source, value) } return template }() document.title = res_1_0 } catch(e) { console.error(e.stack); } }, logout: function () { localStorage.removeItem('phone'); httpPost("/api/logout").done(function (res) { location.href = "/login"; }); } } });