1 line
2.9 KiB
JavaScript
1 line
2.9 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2554503f"],{"411c":function(t,a,i){"use strict";i("ba2d")},ba2d:function(t,a,i){},e132:function(t,a,i){"use strict";i.r(a);var e=function(){var t=this,a=t.$createElement,i=t._self._c||a;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(a){t.$set(t.dataForm,"keyword",a)},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(a){return i("div",{staticClass:"btn",on:{click:function(i){return t.handleQacityl(a.city_id)}}},[t._v(t._s(a.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"},attrs:{"infinite-scroll-immediate":!1}},t._l(t.getQaLists,(function(a){return i("li",{staticClass:"problem_right_container"},[i("div",{staticClass:"title"},[i("span",{domProps:{innerHTML:t._s(t.handleprant(a.title))}}),i("el-button",{attrs:{type:"primary"},on:{click:function(i){return t.handleZip(a.img_zip)}}},[t._v("下载图片")]),i("el-button",{attrs:{type:"primary"},on:{click:function(i){return t.handleZip(a.trip_zip)}}},[t._v("下载行程")])],1),t._l(a.qaQuestions,(function(a){return i("div",{staticClass:"desc_container"},[i("div",{staticClass:"desc",staticStyle:{"font-weight":"700"},domProps:{innerHTML:t._s(t.handleprant(a.title))}}),i("div",{staticClass:"desc",domProps:{innerHTML:t._s(t.handleprant(a.content))}})])}))],2)})),0)])])],1)},n=[],s=(i("4d63"),i("ac1f"),i("2c3e"),i("25f0"),i("5319"),i("85a8")),o={data:function(){return{getQaCityList:[],getQaLists:[],dataForm:{keyword:"",city_id:""}}},created:function(){var t=this;Object(s["a"])().then((function(a){console.log(a),t.getQaCityList=a.data}))},methods:{handleQacityl:function(t){var a=this;Object(s["b"])({city_id:t}).then((function(t){a.getQaLists=t.data.data}))},handleZip:function(t){t?window.open(t):this.$message({showClose:!0,message:"暂无下载链接"})},load:function(){console.log("load")},handleprant:function(t){var a=new RegExp(this.dataForm.keyword,"ig"),i='<span style="color: #fca104">'.concat(this.dataForm.keyword,"</span>");return t.replace(a,i)},onSubmit:function(){var t=this;Object(s["b"])(this.dataForm).then((function(a){t.getQaLists=a.data.data}))}}},l=o,r=(i("411c"),i("2877")),c=Object(r["a"])(l,e,n,!1,null,"a1f5b542",null);a["default"]=c.exports}}]);
|