1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["CcMe"],{"38f0":function(t,e,a){"use strict";var n=a("5b7e"),i=a.n(n);i.a},"5b7e":function(t,e,a){},"6e6e":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mheader",style:{height:"calc("+t.titleHeight+"px + "+t.navBarHeight+"px)"}},[a("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""],style:[t.headStyle]},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[a("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),a("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:this.$route.meta.descrition))])],2),a("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},i=[],r=a("a34a"),s=a.n(r),o=a("ddf4");function c(t,e,a,n,i,r,s){try{var o=t[r](s),c=o.value}catch(u){return void a(u)}o.done?e(c):Promise.resolve(c).then(n,i)}function u(t){return function(){var e=this,a=arguments;return new Promise(function(n,i){var r=t.apply(e,a);function s(t){c(r,n,i,s,o,"next",t)}function o(t){c(r,n,i,s,o,"throw",t)}s(void 0)})}}var l={name:"mheader",props:{name:String,isNative:{type:Boolean,default:!0},isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},data:function(){return{navBarHeight:0,headStyle:{},titleHeight:44}},mounted:function(){this.isNative||(Object(o["b"])({api:"setBarStatus",content:{status:0}}),this.getNav(),this.isBack=!1)},methods:{getNav:function(){var t=u(s.a.mark(function t(){var e,a,n=this;return s.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(e=sessionStorage.getItem("navHeight"),a=sessionStorage.getItem("titleHeight"),!e||!a){t.next=7;break}this.navBarHeight=e,this.headStyle={paddingTop:e+"px",height:a+"px",lineHeight:a+"px"},t.next=9;break;case 7:return t.next=9,Object(o["b"])({api:"getNavHeight"},function(t){var e=t.content,a={},i=e.dpi||2;if(e.navHeight){var r=e.navHeight/i;sessionStorage.setItem("navHeight",r),n.navBarHeight=r,a={paddingTop:r+"px"}}if(e.titleHeight){var s=e.titleHeight/i;sessionStorage.setItem("titleHeight",s),n.titleHeight=s,a.height=s+"px",a.lineHeight=s+"px"}n.headStyle=a});case 9:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),goBack:function(){var t=this.backUrl;"function"==typeof t.callBack?t.callBack():t.path?this.$router.push({path:t.path,query:t.params}):history.go(-1)}},beforeDestroy:function(){this.isNative||(Object(o["b"])({api:"setBarStatus",content:{status:1}}),this.isBack=!0)}},p=l,f=(a("38f0"),a("2877")),v=Object(f["a"])(p,n,i,!1,null,"6a74717c",null);e["a"]=v.exports},7433:function(t,e,a){"use strict";var n=a("7944"),i=a.n(n);i.a},7944:function(t,e,a){},ddf4:function(t,e,a){"use strict";a.d(e,"b",function(){return f}),a.d(e,"a",function(){return v});var n=a("ff51");function i(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,n)}return a}function r(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?i(Object(a),!0).forEach(function(e){s(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):i(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}function s(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}var c=function(){},u={},l=Object(n["b"])();l.isApp&&window.addEventListener("message",function(t){try{var e=t.data?"object"===o(t.data)?t.data:JSON.parse(t.data):{},a=e.content.uuid||e.uuid;try{e.content&&(e.content=JSON.parse(e.content))}catch(h){}if(!a){var n=Object.keys(u).filter(function(t){return 0===t.indexOf(e.api)}),i=!0,r=!1,s=void 0;try{for(var l,p=n[Symbol.iterator]();!(i=(l=p.next()).done);i=!0){var f=l.value,v=u[f]||c;v(e)}}catch(b){r=!0,s=b}finally{try{i||null==p.return||p.return()}finally{if(r)throw s}}return}var d=u[e.content.uuid||e.uuid||e.api+e.uuid]||c;d(e)}catch(h){console.error("通信消息解析错误",h)}});var p=window.DAYA||window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DAYA,f=function(t,e){if(l.isApp){var a=Object(n["g"])();u[a]=e||c,t.content=t.content?r({},t.content,{uuid:a}):{uuid:a},p.postMessage(JSON.stringify(t))}},v=function(t,e){if(l.isApp){var a=t+Object(n["g"])();u[a]=e||c}}},f3b0:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ccme"},[a("m-header"),a("van-tabs",{attrs:{swipeable:!0,animated:!0}},[a("van-tab",{attrs:{title:"全部"}},t._l(6,function(e){return a("div",{key:e,staticClass:"app-item"},[a("div",{staticClass:"hd"},[a("span",{staticClass:"orangeStatus"},[t._v("待处理")]),a("span",[t._v("2019-09-01")])]),a("div",{staticClass:"bd"},[a("p",[t._v("申请人:黄青筝")]),a("p",[t._v("审批事项:调休")]),a("p",[t._v("开始时间:2019-09-01 9:00")]),a("p",[t._v("结束时间:2019-09-01 18:00")]),a("p",[t._v("备注:家中急事,调休一天")])])])}),0),a("van-tab",{attrs:{title:"未读(3)"}},t._l(6,function(e){return a("div",{key:e,staticClass:"app-item"},[a("div",{staticClass:"hd"},[a("span",{staticClass:"orangeStatus"},[t._v("待处理")]),a("span",[t._v("2019-09-01")])]),a("div",{staticClass:"bd"},[a("p",[t._v("申请人:黄青筝")]),a("p",[t._v("审批事项:调休")]),a("p",[t._v("开始时间:2019-09-01 9:00")]),a("p",[t._v("结束时间:2019-09-01 18:00")]),a("p",[t._v("备注:家中急事,调休一天")])])])}),0)],1)],1)},i=[],r=a("6e6e"),s={name:"ccme",components:{MHeader:r["a"]}},o=s,c=(a("7433"),a("2877")),u=Object(c["a"])(o,n,i,!1,null,"63ddf5bb",null);e["default"]=u.exports}}]);
|