2 lines
3.2 KiB
JavaScript
2 lines
3.2 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-788dad08"],{"04fc":function(t,n,i){},bcf6:function(t,n,i){"use strict";i("04fc")},d969:function(t,n,i){"use strict";i.r(n);var o=function(){var t=this,n=t._self._c;return n("div",{staticClass:"problem-body"},[n("el-row",[n("el-col",{attrs:{span:24}},[n("div",{staticClass:"nb"},[n("information-sidebar",{attrs:{"info-id":t.informationInfo.infoId,"other-list":t.informationInfo.otherList},on:{select:t.handleSelect}}),n("div",{staticClass:"problem-rside"},[n("div",{staticClass:"probar"},[t.informationInfo.infoId?n("a",{attrs:{href:""}},[t._v("资讯")]):n("a",{attrs:{href:""}},[t._v("帮助中心")])]),n("div",{staticClass:"problemcon"},[n("h3",{staticClass:"title"},[t._v(t._s(t.informationInfo.information.title))]),n("div",{staticClass:"pnr"},[n("p",{staticStyle:{"box-sizing":"border-box","margin-top":"0px","margin-bottom":"0px",padding:"0px","line-height":"23px",color:"#333333"}},[t._v(" "+t._s(t.informationInfo.information.content)+" ")]),n("p",[n("br")])])])])],1)])],1)],1)},a=[],e=function(){var t=this,n=t._self._c;return n("div",{staticClass:"problem-lside"},[t.infoId?n("h3",[t._v("资讯")]):n("h3",[t._v("帮助中心")]),t.infoId?t._e():n("ul",t._l(t.otherList,(function(i,o){return n("li",{key:o},[n("a",{staticClass:"nli",on:{click:function(n){return t.toggleList(o)}}},[t._v(" "+t._s(i.type)),n("b",{class:["arrow",{active:t.activeIndex===o}]})]),n("ul",{staticClass:"ulson",style:{display:t.activeIndex===o?"block":"none"}},t._l(i.informationList,(function(i,o){return n("li",{key:o},[n("a",{on:{click:function(n){return t.$emit("select",i)}}},[t._v(t._s(i.title))])])})),0)])})),0)])},r=[],s={name:"InformationSidebar",props:{infoId:{type:String,default:""},otherList:{type:Array,default:()=>[]}},data(){return{activeIndex:0}},methods:{toggleList(t){this.activeIndex=this.activeIndex===t?-1:t}}},f=s,c=(i("df19"),i("2877")),l=Object(c["a"])(f,e,r,!1,null,"16007979",null),d=l.exports,m=i("b775");function h(t){return new Promise((n,i)=>{Object(m["a"])({url:"/information.listInformation",method:"get",params:t}).then(t=>{const i=t.data;n(i)}).catch(t=>{i(t)})})}function u(t){return new Promise((n,i)=>{Object(m["a"])({url:"/information.listInformationOther",method:"get",params:t}).then(t=>{const i=t.data;n(i)}).catch(t=>{i(t)})})}var I={name:"InformationView",components:{InformationSidebar:d},data(){return{informationInfo:{infoId:"",information:{},otherList:[]}}},created(){this.informationInfo.infoId=this.$route.query.infoId||"",this.initData()},methods:{async initData(){this.informationInfo.infoId&&await this.getInformation(),await this.getInformationOther()},async getInformation(){try{const t={row:1,page:1,infoId:this.informationInfo.infoId},n=await h(t);this.informationInfo.information=n.data[0]}catch(t){console.error("获取资讯详情失败:",t)}},async getInformationOther(){try{const t={row:100,page:-1,isOther:1},n=await u(t);this.informationInfo.otherList=n.data}catch(t){console.error("获取其他资讯列表失败:",t)}},handleSelect(t){this.informationInfo.information=t}}},p=I,b=(i("bcf6"),Object(c["a"])(p,o,a,!1,null,"0aa145bc",null));n["default"]=b.exports},df19:function(t,n,i){"use strict";i("f620")},f620:function(t,n,i){}}]);
|
|
//# sourceMappingURL=chunk-788dad08.2e3dae69.js.map
|