travel/service/public/static/js/chunk-7946ca5d.3a3b8dd4.js

1 line
2.9 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7946ca5d"],{"01f8":function(t,i,a){"use strict";a("90dd")},"90dd":function(t,i,a){},e132:function(t,i,a){"use strict";a.r(i);var e=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("div",{staticClass:"problem"},[a("el-row",[a("el-col",{attrs:{span:24}},[a("div",{staticClass:"problem_form"},[a("el-form",{ref:"form",attrs:{inline:!0,model:t.dataForm,"label-width":"60px"}},[a("el-form-item",{attrs:{label:"关键字:"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"400px"},attrs:{placeholder:"请输入搜索关键字"},model:{value:t.dataForm.keyword,callback:function(i){t.$set(t.dataForm,"keyword",i)},expression:"dataForm.keyword"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"success"},on:{click:t.onSubmit}},[t._v("查询")])],1)],1)],1)])],1),a("div",{staticClass:"problem_container"},[a("div",{staticClass:"problem_left"},t._l(t.getQaCityList,(function(i){return a("div",{staticClass:"btn",on:{click:function(a){return t.handleQacityl(i.city_id)}}},[t._v(t._s(i.city_name))])})),0),a("div",{staticClass:"problem_right"},[a("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(i){return a("li",{staticClass:"problem_right_container"},[a("div",{staticClass:"title"},[a("span",{domProps:{innerHTML:t._s(t.handleprant(i.title))}}),a("el-button",{attrs:{type:"primary"},on:{click:function(a){return t.handleZip(i.img_zip)}}},[t._v("下载图片")]),a("el-button",{attrs:{type:"primary"},on:{click:function(a){return t.handleZip(i.trip_zip)}}},[t._v("下载行程")])],1),t._l(i.qaQuestions,(function(i){return a("div",{staticClass:"desc_container"},[a("div",{staticClass:"desc",staticStyle:{"font-weight":"700"},domProps:{innerHTML:t._s(t.handleprant(i.title))}}),a("div",{staticClass:"desc",domProps:{innerHTML:t._s(t.handleprant(i.content))}})])}))],2)})),0)])])],1)},n=[],s=(a("4d63"),a("ac1f"),a("2c3e"),a("25f0"),a("5319"),a("85a8")),o={data:function(){return{getQaCityList:[],getQaLists:[],dataForm:{keyword:"",city_id:""}}},created:function(){var t=this;Object(s["a"])().then((function(i){t.getQaCityList=i.data}))},watch:{"dataForm.keyword":function(t){t&&this.onSubmit()}},methods:{handleQacityl:function(t){var i=this;Object(s["b"])({city_id:t}).then((function(t){i.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 i=new RegExp(this.dataForm.keyword,"ig"),a='<span style="color: #fca104">'.concat(this.dataForm.keyword,"</span>");return t.replace(i,a)},onSubmit:function(){var t=this;Object(s["b"])(this.dataForm).then((function(i){t.getQaLists=i.data.data}))}}},r=o,l=(a("01f8"),a("2877")),c=Object(l["a"])(r,e,n,!1,null,"00bf6a18",null);i["default"]=c.exports}}]);