HelpCenter.2058e496.js 2.9 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["HelpCenter"],{"19a3":function(t,a,e){"use strict";var n=e("55b2"),s=e.n(n);s.a},"30e2":function(t,a,e){"use strict";var n=e("65d3"),s=e.n(n);s.a},"55b2":function(t,a,e){},"65d3":function(t,a,e){},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"},[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}},o=i,r=(e("19a3"),e("2877")),c=Object(r["a"])(o,n,s,!1,null,"67669af7",null);a["a"]=c.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(),t.dataStatus?e("van-collapse",{attrs:{accordion:""},model:{value:t.activeNames,callback:function(a){t.activeNames=a},expression:"activeNames"}},t._l(t.dataList,function(a,n){return e("van-collapse-item",{key:n,attrs:{"title-class":"van-ellipsis",title:a.title,name:n}},[e("div",{domProps:{innerHTML:t._s(a.content)}})])}),1):e("m-empty",{key:"data",staticClass:"empty"})],1)},s=[],i=e("a34a"),o=e.n(i),r=e("6e6e"),c=e("d678"),u=e("ff51"),d=e("b562");function l(t,a,e,n,s,i,o){try{var r=t[i](o),c=r.value}catch(u){return void e(u)}r.done?a(c):Promise.resolve(c).then(n,s)}function m(t){return function(){var a=this,e=arguments;return new Promise(function(n,s){var i=t.apply(a,e);function o(t){l(i,n,s,o,r,"next",t)}function r(t){l(i,n,s,o,r,"throw",t)}o(void 0)})}}var f={name:"courseApply",components:{MHeader:r["a"],MEmpty:c["a"]},data:function(){return{headerStatus:!0,activeNames:[0],dataStatus:!0,dataList:[]}},mounted:function(){var t=this.$route.query;t.Authorization&&(localStorage.setItem("Authorization",decodeURI(t.Authorization)),localStorage.setItem("userInfo",decodeURI(t.Authorization))),document.title="帮助中心",(Object(u["a"])().android||Object(u["a"])().iPhone)&&(this.headerStatus=!1),this.__init()},methods:{__init:function(){var t=m(o.a.mark(function t(){var a,e,n=this;return o.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(d["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(d["h"])({catalogIds:e[0].id,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.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}()},destroyed:function(){this.$toast.clear()}},h=f,p=(e("30e2"),e("2877")),v=Object(p["a"])(h,n,s,!1,null,"444735df",null);a["default"]=v.exports}}]);