1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-42948c16"],{"084f":function(t,e,a){"use strict";a.d(e,"b",(function(){return s})),a.d(e,"a",(function(){return r}));var i=a("f0e1"),n=a("7be5");function s(){return Object(i["a"])({url:n["a"].customer+"qas",method:"get"})}function r(t){return Object(i["a"])({url:n["a"].customer+"qas/".concat(t),method:"get"})}},"7be5":function(t,e,a){"use strict";var i=a("7139");e["a"]={customer:i["a"].baseApi+"api/aftersale/customer/",work:i["a"].baseApi+"worker/",weixin:i["a"].baseUrl+"api/weixin/"}},eb35:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("van-nav-bar",{staticClass:"shadow mb-4",attrs:{title:"常见问题","left-text":"返回","left-arrow":""},on:{"click-left":function(e){return t.$router.back(-1)}}}),a("van-empty",{directives:[{name:"show",rawName:"v-show",value:t.showEmpty,expression:"showEmpty"}],attrs:{description:"暂无信息"}}),a("van-list",{staticClass:"mt-4",attrs:{finished:t.finished,error:t.error,"error-text":"请求失败,点击重新加载","finished-text":""},on:{"update:error":function(e){t.error=e},load:t.loadQaList},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[a("van-collapse",{model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},t._l(t.qaList,(function(e,i){return a("van-collapse-item",{key:i,staticClass:"bg-white mb-4 w-11/12 p-4 mx-auto text-sm shadow",attrs:{title:i+1+"、"+e.title,name:e.id,"title-class":"text-lg"}},[a("div",{staticClass:"text-gray-500",domProps:{innerHTML:t._s(e.content)}})])})),1)],1)],1)},n=[],s=a("084f"),r={data:function(){return{activeNames:[],showDialog:!1,dialogText:"添加房屋",qaList:[],qaForm:{},loading:!1,error:!1,page:1,finished:!1,showEmpty:!1}},created:function(){this.loadQaList()},methods:{loadQaList:function(){var t=this;this.loading=!0,Object(s["b"])({page:this.page++}).then((function(e){for(var a in t.loading=!1,e.data.length<t.$store.getters.setting.page_size&&(t.finished=!0),e.data)t.qaList.push(e.data[a]);0===t.qaList.length?t.showEmpty=!0:t.showEmpty=!1})).catch((function(){t.loading=!1,t.error=!0}))}}},o=r,c=a("cba8"),l=Object(c["a"])(o,i,n,!1,null,null,null);e["default"]=l.exports}}]);
|