PageSourceSearch

https://www.ctfmall.com/js/751.07697711.js

js ctfmall.com collected 2026-10-09 22:41:05 UTC 6,227 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkdemo5_vue2"]=self["webpackChunkdemo5_vue2"]||[]).push([[751],{1132:function(t,e,s){s.r(e),s.d(e,{default:function(){return h}});var i=function(){var t=this,e=t._self._c;return e("div",[t.showDetail?e("div",{staticClass:"detail"},[e("div",{staticClass:"back cursor-pointer",on:{click:t.handleGoback}},[e("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_arrowdown_v5.png",alt:"箭头"}}),e("p",[t._v("返回至"+t._s(t.title))])]),e("div",{staticClass:"content"},[t.detail.contentTitle?e("div",{staticClass:"tit font-title"},[t._v(t._s(t.detail.contentTitle))]):t._e(),t.detail.inputTime?e("div",{staticClass:"time"},[t._v("更新于"+t._s(t.$utils.formatTimeAll(t.detail.inputTime,1,"yyyy-MM-dd")))]):t._e(),e("div",{staticClass:"bd ql-editor",domProps:{innerHTML:t._s(t.detail.text)}})])]):e("div",{staticClass:"content-center"},[t.title?e("div",{staticClass:"page-tit font-title"},[t._v(t._s(t.title))]):t._e(),t.showSearch?e("div",{staticClass:"search-wrap"},[e("div",{staticClass:"search-box"},[e("div",{staticClass:"input-wrap"},[e("el-input",{ref:"search_input",attrs:{placeholder:"需要我们提供什么帮助?",focus:t.searchFocus},on:{input:t.handleSearchInput,focus:t.handleSearchFocus,blur:t.handleSearchBlur},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleSearchSubmit.apply(null,arguments)}},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1),e("div",{staticClass:"suffix"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.keyword,expression:"keyword"}],staticClass:"btn",attrs:{title:"清除"},on:{click:t.handleSearchClear}},[e("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_close_v5.png",alt:"清除"}})]),t._m(0)])])]):t._e(),t.dataList.length>1?e("div",{staticClass:"tab"},[e("el-scrollbar",{attrs:{noresize:"",wrapClass:"scroll-view"}},[e("div",{staticClass:"tab-wrap"},[e("div",{staticClass:"tab-box"},t._l(t.dataList,function(s,i){return e("a",{key:i,class:["tab-item",t.current==i?"active":""],on:{click:function(e){return t.handleTabChange(i)}}},[t._v(t._s(s.title))])}),0)])])],1):t._e(),1==t.type?t._l(t.dataList,function(s,i){return e("div",{directives:[{name:"show",rawName:"v-show",value:t.current==i,expression:"current == index"}],key:i,staticClass:"list"},[e("div",{directives:[{name:"show",rawName:"v-show",value:s.show,expression:"item.show"}],staticClass:"list-box"},[e("div",{staticClass:"el-collapse"},t._l(s.list,function(s,a){return e("div",{directives:[{name:"show",rawName:"v-show",value:s.show,expression:"val.show"}],key:i+"_"+a,staticClass:"el-collapse-item"},[e("div",{staticClass:"el-collapse-item__header"},[e("div",{staticClass:"collapse-hd font-title",on:{click:function(e){return t.handleShowDetail(s)}}},[e("p",[t._v(t._s(s.contentTitle))]),e("div",{staticClass:"right"},[e("span",[t._v(t._s(s.inputTime))]),e("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_arrowdown_v5.png",alt:"箭头"}})])])])])}),0)]),e("div",{directives:[{name:"show",rawName:"v-show",value:!s.show,expression:"!item.show"}],staticClass:"nodata"},[e("p",[t._v("未找到结果")])])])}):t._l(t.dataList,function(s,i){return e("div",{directives:[{name:"show",rawName:"v-show",value:t.current==i,expression:"current == index"}],key:i,staticClass:"list"},[e("div",{directives:[{name:"show",rawName:"v-show",value:s.show,expression:"item.show"}],staticClass:"list-box"},[e("el-collapse",t._l(s.list,function(s,a){return e("el-collapse-item",{directives:[{name:"show",rawName:"v-show",value:s.show,expression:"val.show"}],key:i+"_"+a,attrs:{name:i+"_"+a}},[e("template",{slot:"title"},[e("div",{staticClass:"collapse-hd font-title"},[e("p",[t._v(t._s(s.contentTitle))]),e("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_arrowdown_v5.png",alt:"箭头"}})])]),e("div",{staticClass:"collapse-bd"},[e("div",{staticClass:"ql-editor",domProps:{innerHTML:t._s(s.text)}})])],2)}),1)],1),e("div",{directives:[{name:"show",rawName:"v-show",value:!s.show,expression:"!item.show"}],staticClass:"nodata"},[e("p",[t._v("未找到结果")])])])})],2)])},a=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"btn",attrs:{title:"搜索"}},[e("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_search_v5.png",alt:"搜索"}})])}],l=s(1797),r={data(){return{id:0,showSearch:!1,searchFocus:!1,searchTimer:null,keyword:"",title:"",type:2,dataList:[],current:0,showDetail:!1,detail:{}}},watch:{$route:{handler(){this.id=this.$route.query.id||0,this.getDetail()},immediate:!0}},methods:{getDetail(){this.title="",this.showSearch=!1,this.keyword="",this.type=2,this.dataList=[],this.current=0,(0,l.Nl)({id:this.id}).then(t=>{if(t.data&&t.data.length>0){let e=[],s={},i=0;t.data.forEach(t=>{0==t.pid?(this.title=t.title,this.showSearch=3!=t.type):(void 0==s[t.id]&&(s[t.id]=i,i++,e.push({show:!0,title:t.title||"分类",list:[]})),e[s[t.id]].list.push({show:!0,...t}))}),this.dataList=e}})},handleSearchFocus(){this.searchFocus=!0},handleSearchBlur(){this.searchFocus=!1},handleSearchInput(){clearTimeout(this.searchTimer),this.searchTimer=setTimeout(()=>{this.handleSearchSubmit()},300)},handleSearchClear(){this.keyword="",this.handleSearchInput(),this.$nextTick(()=>{this.$refs.search_input.focus()})},handleSearchSubmit(){let t=this.current,e=!1;this.dataList.forEach((s,i)=>{let a=0;s.list.forEach(t=>{this.keyword&&t.contentTitle.indexOf(this.keyword)<0?t.show=!1:(t.show=!0,a++)}),a>0?(s.show=!0,e||(t=i,e=!0)):s.show=!1}),t!=this.current&&this.keyword&&(this.current=t)},handleTabChange(t){this.current!=t&&(this.current=t)},handleShowDetail(t){this.detail=t,this.showDetail=!0},handleGoback(){this.showDetail=!1}}}
1,n=r,o=s(1656),c=(0,o.A)(n,i,a,!1,null,"db4b05fc",null),h=c.exports},1797:function(t,e,s){s.d(e,{DF:function(){return a},IP:function(){return l},Nl:function(){return r},ef:function(){return n}});var i=s(8314);const a=(t={})=>(0,i.Em)("get","/api/help/helpcenter",t),l=(t={})=>(0,i.Em)("post","/CTFMALL_Common_API.ashx?action=feedBackSumbit",t),r=(t={})=>(0,i.kN)("get","/ctfmall-common2-server/helpCenter/infoClassifiesContent",t),n=(t={})=>(0,i.kN)("get","/ctfmall-common2-server/helpCenter/contentInfo",t)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.