1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["HelpCenter"],{"51c7":function(t,e,r){},"544a":function(t,e,r){},"631c":function(t,e,r){},"6e6e":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mheader"},[r("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""]},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[r("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),r("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:this.$route.meta.descrition))])],2),r("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},a=[],o={name:"mheader",props:{name:String,isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},methods:{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)}}},i=o,c=(r("d133"),r("2877")),s=Object(c["a"])(i,n,a,!1,null,"0e835508",null);e["a"]=s.exports},"96cf":function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,o=Object.create(a.prototype),i=new j(n||[]);return o._invoke=L(t,r,i),o}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}t.wrap=s;var l="suspendedStart",h="suspendedYield",f="executing",d="completed",p={};function v(){}function m(){}function y(){}var g={};g[o]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(C([])));b&&b!==r&&n.call(b,o)&&(g=b);var _=y.prototype=v.prototype=Object.create(g);function x(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function k(t){function e(r,a,o,i){var c=u(t[r],t,a);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"===typeof l&&n.call(l,"__await")?Promise.resolve(l.__await).then(function(t){e("next",t,o,i)},function(t){e("throw",t,o,i)}):Promise.resolve(l).then(function(t){s.value=t,o(s)},function(t){return e("throw",t,o,i)})}i(c.arg)}var r;function a(t,n){function a(){return new Promise(function(r,a){e(t,n,r,a)})}return r=r?r.then(a,a):a()}this._invoke=a}function L(t,e,r){var n=l;return function(a,o){if(n===f)throw new Error("Generator is already running");if(n===d){if("throw"===a)throw o;return $()}r.method=a,r.arg=o;while(1){var i=r.delegate;if(i){var c=S(i,r);if(c){if(c===p)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var s=u(t,e,r);if("normal"===s.type){if(n=r.done?d:h,s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}function S(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator["return"]&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var a=u(n,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,p;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function C(t){if(t){var r=t[o];if(r)return r.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function r(){while(++a<t.length)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:$}}function $(){return{value:e,done:!0}}return m.prototype=_.constructor=y,y.constructor=m,y[c]=m.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},x(k.prototype),k.prototype[i]=function(){return this},t.AsyncIterator=k,t.async=function(e,r,n,a){var o=new k(s(e,r,n,a));return t.isGeneratorFunction(r)?o:o.next().then(function(t){return t.done?t.value:o.next()})},x(_),_[c]="Generator",_[o]=function(){return this},_.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){while(e.length){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return c.type="throw",c.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;O(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=n}catch(a){Function("r","regeneratorRuntime = r")(n)}},a34a:function(t,e,r){t.exports=r("96cf")},a887:function(t,e,r){"use strict";var n=r("544a"),a=r.n(n);a.a},bb2c:function(t,e,r){},c063:function(t,e,r){"use strict";var n=r("51c7"),a=r.n(n);a.a},c314:function(t,e,r){"use strict";var n=r("631c"),a=r.n(n);a.a},d133:function(t,e,r){"use strict";var n=r("bb2c"),a=r.n(n);a.a},d678:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mempty",class:t.full?"full":null},[r("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),r("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},a=[],o={name:"mempty",props:{icon:String,msg:String,full:Boolean}},i=o,c=(r("c063"),r("2877")),s=Object(c["a"])(i,n,a,!1,null,"45d1a48f",null);e["a"]=s.exports},d817:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"help"},[t.headerStatus?r("m-header"):t._e(),r("m-search",{staticClass:"search",attrs:{placeholder:"搜索",background:"#F3F0F8"},on:{onSearch:t.onSearch}}),t.dataStatus?r("div",t._l(t.dataList,function(e,n){return r("van-cell",{key:n,attrs:{title:e.title,"is-link":""},on:{click:function(r){return t.gotoDetali(e)}}})}),1):r("m-empty",{key:"data",staticClass:"empty"}),r("van-image-preview",{attrs:{images:t.images,showIndex:!1},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}})],1)},a=[],o=r("a34a"),i=r.n(o),c=r("6e6e"),s=r("d678"),u=r("ff51"),l=r("b562"),h=r("eeee");function f(t,e,r,n,a,o,i){try{var c=t[o](i),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,a)}function d(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var o=t.apply(e,r);function i(t){f(o,n,a,i,c,"next",t)}function c(t){f(o,n,a,i,c,"throw",t)}i(void 0)})}}var p={name:"courseApply",components:{MHeader:c["a"],MEmpty:s["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=d(i.a.mark(function t(){var e,r,n=this;return i.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"}),r=[],t.next=5,Object(l["g"])().then(function(t){var a=t.data;200==a.code?r=a.data:(n.$toast(a.msg),e=!1)});case 5:if(!(r.length>0)){t.next=10;break}return t.next=8,Object(l["h"])({catalogIds:r[0].id,title:this.params.title,page:1,rows:100}).then(function(t){var r=t.data;e=!1,200==r.code?(n.dataList=r.data.rows?r.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(r.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=(r("c314"),r("2877")),y=Object(m["a"])(v,n,a,!1,null,"6c9f0d00",null);e["default"]=y.exports},eeee:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("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"}},[r("div",{attrs:{slot:"action"},on:{click:t.onSearch},slot:"action"},[t._v("搜索")])])],1)},a=[],o={props:["background"],data:function(){return{searchValue:"",color:"#fff"}},mounted:function(){},methods:{onSearch:function(){this.$emit("onSearch",this.searchValue)}}},i=o,c=(r("a887"),r("2877")),s=Object(c["a"])(i,n,a,!1,null,null,null);e["a"]=s.exports}}]);
|