1 line
2.7 KiB
JavaScript
1 line
2.7 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1dd18730"],{"0d23":function(t,e,i){"use strict";i("9c74")},"9c74":function(t,e,i){},e132:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"problem"},[i("el-row",[i("el-col",{attrs:{span:24}},[i("div",{staticClass:"problem_form"},[i("el-form",{ref:"form",attrs:{inline:!0,model:t.dataForm,"label-width":"60px"}},[i("el-form-item",{attrs:{label:"关键字:"}},[i("el-input",{staticClass:"filter-item",staticStyle:{width:"400px"},attrs:{placeholder:"关键字"},model:{value:t.dataForm.keyword,callback:function(e){t.$set(t.dataForm,"keyword",e)},expression:"dataForm.keyword"}})],1),i("el-form-item",[i("el-button",{attrs:{type:"success"},on:{click:t.onSubmit}},[t._v("查询")])],1)],1)],1)])],1),i("div",{staticClass:"problem_container"},[i("div",{staticClass:"problem_left"},t._l(t.getQaCityList,(function(e){return i("div",{staticClass:"btn",on:{click:function(i){return t.handleQacityl(e.city_id)}}},[t._v(t._s(e.city_name))])})),0),i("div",{staticClass:"problem_right"},[i("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.load,expression:"load"}],staticClass:"infinite-list",staticStyle:{overflow:"auto"}},t._l(t.getQaLists,(function(e){return i("li",{staticClass:"problem_right_container"},[i("div",{staticClass:"title"},[i("span",{domProps:{innerHTML:t._s(e.title)}}),i("el-button",{attrs:{type:"primary"},on:{click:function(i){return t.handleZip(e.img_zip)}}},[t._v("下载图片")]),i("el-button",{attrs:{type:"primary"},on:{click:function(i){return t.handleZip(e.trip_zip)}}},[t._v("下载行程")])],1),i("div",{staticClass:"desc",domProps:{innerHTML:t._s(e.content)}})])})),0)])])],1)},n=[],o=(i("d81d"),i("4d63"),i("ac1f"),i("2c3e"),i("25f0"),i("5319"),i("85a8")),s={data:function(){return{getQaCityList:[],getQaLists:[],dataForm:{keyword:"",city_id:""}}},created:function(){var t=this;Object(o["a"])().then((function(e){console.log(e),t.getQaCityList=e.data}))},methods:{handleQacityl:function(t){var e=this;Object(o["b"])({city_id:t}).then((function(t){e.getQaLists=t.data.data}))},handleZip:function(t){t?window.open(t):this.$message({showClose:!0,message:"暂无下载链接"})},load:function(){console.log("load")},onSubmit:function(){var t=this;Object(o["b"])(this.dataForm).then((function(e){t.getQaLists=e.data.data.map((function(e,i){if(t.dataForm.keyword){var a=new RegExp(t.dataForm.keyword,"ig"),n='<span style="color: #fca104">'.concat(t.dataForm.keyword,"</span>");e.title=e.title.replace(a,n),e.content=e.content.replace(a,n)}return e}))}))}}},l=s,r=(i("0d23"),i("2877")),c=Object(r["a"])(l,a,n,!1,null,"0e26cd00",null);e["default"]=c.exports}}]); |