HelpCenter.e25418a2.js 9.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["HelpCenter"],{"38f0":function(t,e,a){"use strict";var n=a("5b7e"),i=a.n(n);i.a},"51c7":function(t,e,a){},"544a":function(t,e,a){},"5b7e":function(t,e,a){},"631c":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"),o=a.n(r),s=a("ddf4");function c(t,e,a,n,i,r,o){try{var s=t[r](o),c=s.value}catch(u){return void a(u)}s.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 o(t){c(r,n,i,o,s,"next",t)}function s(t){c(r,n,i,o,s,"throw",t)}o(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(s["b"])({api:"setBarStatus",content:{status:0}}),this.getNav(),this.isBack=!1)},methods:{getNav:function(){var t=u(o.a.mark(function t(){var e,a,n=this;return o.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(s["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 o=e.titleHeight/i;sessionStorage.setItem("titleHeight",o),n.titleHeight=o,a.height=o+"px",a.lineHeight=o+"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(s["b"])({api:"setBarStatus",content:{status:1}}),this.isBack=!0)}},h=l,d=(a("38f0"),a("2877")),f=Object(d["a"])(h,n,i,!1,null,"6a74717c",null);e["a"]=f.exports},a887:function(t,e,a){"use strict";var n=a("544a"),i=a.n(n);i.a},c063:function(t,e,a){"use strict";var n=a("51c7"),i=a.n(n);i.a},c314:function(t,e,a){"use strict";var n=a("631c"),i=a.n(n);i.a},d678:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mempty",class:t.full?"full":null},[a("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),a("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},i=[],r={name:"mempty",props:{icon:String,msg:String,full:Boolean}},o=r,s=(a("c063"),a("2877")),c=Object(s["a"])(o,n,i,!1,null,"45d1a48f",null);e["a"]=c.exports},d817: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:"help"},[t.headerStatus?a("m-header"):t._e(),a("m-search",{staticClass:"search",attrs:{placeholder:"搜索",background:"#F3F0F8"},on:{onSearch:t.onSearch}}),t.dataStatus?a("div",t._l(t.dataList,function(e,n){return a("van-cell",{key:n,attrs:{title:e.title,"is-link":""},on:{click:function(a){return t.gotoDetali(e)}}})}),1):a("m-empty",{key:"data",staticClass:"empty"}),a("van-image-preview",{attrs:{images:t.images,showIndex:!1},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}})],1)},i=[],r=a("a34a"),o=a.n(r),s=a("6e6e"),c=a("d678"),u=a("ff51"),l=a("b562"),h=a("eeee");function d(t,e,a,n,i,r,o){try{var s=t[r](o),c=s.value}catch(u){return void a(u)}s.done?e(c):Promise.resolve(c).then(n,i)}function f(t){return function(){var e=this,a=arguments;return new Promise(function(n,i){var r=t.apply(e,a);function o(t){d(r,n,i,o,s,"next",t)}function s(t){d(r,n,i,o,s,"throw",t)}o(void 0)})}}var p={name:"courseApply",components:{MHeader:s["a"],MEmpty:c["a"],MSearch:h["a"]},data:function(){return{headerStatus:!0,activeNames:[0],dataStatus:!0,dataList:[],show:!1,images:[],params:{title:null}}},mounted:function(){var t=this,e=this.$route.query;e.Authorization&&(localStorage.setItem("Authorization",decodeURI(e.Authorization)),localStorage.setItem("userInfo",decodeURI(e.Authorization))),document.title="帮助中心",(Object(u["b"])().android||Object(u["b"])().iPhone)&&(this.headerStatus=!1),this.__init(),window.showImg=function(e){e.src&&(t.images=[e.src],t.show=!0)}},methods:{__init:function(){var t=f(o.a.mark(function t(){var e,a,n=this;return o.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return e=!0,this.$toast.loading({duration:0,message:"加载中...",forbidClick:!0,loadingType:"spinner"}),a=[],t.next=5,Object(l["g"])().then(function(t){var i=t.data;200==i.code?a=i.data:(n.$toast(i.msg),e=!1)});case 5:if(!(a.length>0)){t.next=10;break}return t.next=8,Object(l["h"])({catalogIds:a[0].id,title:this.params.title,page:1,rows:100}).then(function(t){var a=t.data;e=!1,200==a.code?(n.dataList=a.data.rows?a.data.rows:[],n.dataList=n.dataList.map(function(t){return t.content=t.content.replace(/<img/gi,'<img onClick="showImg(this)" style="width: 100% !important;"'),t}),n.dataList.length>0?n.dataStatus=!0:n.dataStatus=!1):n.$toast(a.msg)});case 8:t.next=11;break;case 10:e=!1;case 11:e||this.$toast.clear();case 12:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),onSearch:function(t){this.params.title=t,this.params.page=1,this.dataList=[],this.dataShow=!0,this.loading=!0,this.finished=!1,this.__init()},gotoDetali:function(t){this.$router.push({path:"/HelpCenterDetail",query:{item:JSON.stringify(t)}})}},destroyed:function(){this.$toast.clear()}},v=p,m=(a("c314"),a("2877")),g=Object(m["a"])(v,n,i,!1,null,"6c9f0d00",null);e["default"]=g.exports},ddf4:function(t,e,a){"use strict";a.d(e,"b",function(){return d}),a.d(e,"a",function(){return f});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){o(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 o(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function s(t){return s="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},s(t)}var c=function(){},u={},l=Object(n["b"])();l.isApp&&window.addEventListener("message",function(t){try{var e=t.data?"object"===s(t.data)?t.data:JSON.parse(t.data):{},a=e.content.uuid||e.uuid;try{e.content&&(e.content=JSON.parse(e.content))}catch(v){}if(!a){var n=Object.keys(u).filter(function(t){return 0===t.indexOf(e.api)}),i=!0,r=!1,o=void 0;try{for(var l,h=n[Symbol.iterator]();!(i=(l=h.next()).done);i=!0){var d=l.value,f=u[d]||c;f(e)}}catch(m){r=!0,o=m}finally{try{i||null==h.return||h.return()}finally{if(r)throw o}}return}var p=u[e.content.uuid||e.uuid||e.api+e.uuid]||c;p(e)}catch(v){console.error("通信消息解析错误",v)}});var h=window.DAYA||window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DAYA,d=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},h.postMessage(JSON.stringify(t))}},f=function(t,e){if(l.isApp){var a=t+Object(n["g"])();u[a]=e||c}}},eeee:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("van-search",{attrs:{placeholder:"请输入搜索关键词",background:"#fff",shape:"round","show-action":""},on:{search:t.onSearch},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}},[a("div",{attrs:{slot:"action"},on:{click:t.onSearch},slot:"action"},[t._v("搜索")])])],1)},i=[],r={props:["background"],data:function(){return{searchValue:"",color:"#fff"}},mounted:function(){},methods:{onSearch:function(){this.$emit("onSearch",this.searchValue)}}},o=r,s=(a("a887"),a("2877")),c=Object(s["a"])(o,n,i,!1,null,null,null);e["a"]=c.exports}}]);