HelpCenter.af127b22.js 5.5 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["HelpCenter"],{"51c7":function(t,a,e){},"544a":function(t,a,e){},"631c":function(t,a,e){},"6e6e":function(t,a,e){"use strict";var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"mheader"},[e("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""]},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[e("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),e("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:this.$route.meta.descrition))])],2),e("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},s=[],i={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)}}},r=i,c=(e("d133"),e("2877")),o=Object(c["a"])(r,n,s,!1,null,"0e835508",null);a["a"]=o.exports},a887:function(t,a,e){"use strict";var n=e("544a"),s=e.n(n);s.a},bb2c:function(t,a,e){},c063:function(t,a,e){"use strict";var n=e("51c7"),s=e.n(n);s.a},c314:function(t,a,e){"use strict";var n=e("631c"),s=e.n(n);s.a},d133:function(t,a,e){"use strict";var n=e("bb2c"),s=e.n(n);s.a},d678:function(t,a,e){"use strict";var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"mempty",class:t.full?"full":null},[e("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),e("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},s=[],i={name:"mempty",props:{icon:String,msg:String,full:Boolean}},r=i,c=(e("c063"),e("2877")),o=Object(c["a"])(r,n,s,!1,null,"45d1a48f",null);a["a"]=o.exports},d817:function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"help"},[t.headerStatus?e("m-header"):t._e(),e("m-search",{staticClass:"search",attrs:{placeholder:"搜索",background:"#F3F0F8"},on:{onSearch:t.onSearch}}),t.dataStatus?e("div",t._l(t.dataList,function(a,n){return e("van-cell",{key:n,attrs:{title:a.title,"is-link":""},on:{click:function(e){return t.gotoDetali(a)}}})}),1):e("m-empty",{key:"data",staticClass:"empty"}),e("van-image-preview",{attrs:{images:t.images,showIndex:!1},model:{value:t.show,callback:function(a){t.show=a},expression:"show"}})],1)},s=[],i=e("a34a"),r=e.n(i),c=e("6e6e"),o=e("d678"),l=e("ff51"),u=e("b562"),h=e("eeee");function d(t,a,e,n,s,i,r){try{var c=t[i](r),o=c.value}catch(l){return void e(l)}c.done?a(o):Promise.resolve(o).then(n,s)}function f(t){return function(){var a=this,e=arguments;return new Promise(function(n,s){var i=t.apply(a,e);function r(t){d(i,n,s,r,c,"next",t)}function c(t){d(i,n,s,r,c,"throw",t)}r(void 0)})}}var m={name:"courseApply",components:{MHeader:c["a"],MEmpty:o["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,a=this.$route.query;a.Authorization&&(localStorage.setItem("Authorization",decodeURI(a.Authorization)),localStorage.setItem("userInfo",decodeURI(a.Authorization))),document.title="帮助中心",(Object(l["b"])().android||Object(l["b"])().iPhone)&&(this.headerStatus=!1),this.__init(),window.showImg=function(a){a.src&&(t.images=[a.src],t.show=!0)}},methods:{__init:function(){var t=f(r.a.mark(function t(){var a,e,n=this;return r.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return a=!0,this.$toast.loading({duration:0,message:"加载中...",forbidClick:!0,loadingType:"spinner"}),e=[],t.next=5,Object(u["g"])().then(function(t){var s=t.data;200==s.code?e=s.data:(n.$toast(s.msg),a=!1)});case 5:if(!(e.length>0)){t.next=10;break}return t.next=8,Object(u["h"])({catalogIds:e[0].id,title:this.params.title,page:1,rows:100}).then(function(t){var e=t.data;a=!1,200==e.code?(n.dataList=e.data.rows?e.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(e.msg)});case 8:t.next=11;break;case 10:a=!1;case 11:a||this.$toast.clear();case 12:case"end":return t.stop()}},t,this)}));function a(){return t.apply(this,arguments)}return a}(),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()}},p=m,v=(e("c314"),e("2877")),g=Object(v["a"])(p,n,s,!1,null,"6c9f0d00",null);a["default"]=g.exports},eeee:function(t,a,e){"use strict";var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("van-search",{attrs:{placeholder:"请输入搜索关键词",background:"#fff",shape:"round","show-action":""},on:{search:t.onSearch},model:{value:t.searchValue,callback:function(a){t.searchValue=a},expression:"searchValue"}},[e("div",{attrs:{slot:"action"},on:{click:t.onSearch},slot:"action"},[t._v("搜索")])])],1)},s=[],i={props:["background"],data:function(){return{searchValue:"",color:"#fff"}},mounted:function(){},methods:{onSearch:function(){this.$emit("onSearch",this.searchValue)}}},r=i,c=(e("a887"),e("2877")),o=Object(c["a"])(r,n,s,!1,null,null,null);a["a"]=o.exports}}]);