webpackJsonp([68],{"0wVs":function(t,i){},zMYh:function(t,i,s){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=s("2CGT"),n=s("Fd2+"),a={data:function(){return{name:"",list:[],pageNum:1,loading:!1,finished:!1,refreshing:!1}},created:function(){},mounted:function(){this.getList()},methods:{getVal:function(t,i){this[i]=t.target.value.replace(/ /g,"")},onRefresh:function(){this.pageNum=1,this.finished=!1,this.list=[],this.loading=!0,this.getList()},getList:function(){""!==this.name&&this.getKennelSearchList()},getKennelSearchList:function(){var t=this;n.c.loading({message:"加载中...",forbidClick:!0,duration:0}),Object(e.S)({pageSize:10,pageNo:this.pageNum,name:this.name}).then(function(i){if("0"==i.rc){t.pageNum+=1,t.refreshing&&(t.list=[],t.refreshing=!1);var s=t.list.concat(i.data);t.list=s,t.loading=!1,i.data.length<10&&(t.finished=!0)}else Object(n.c)(i.msg)})},goBack:function(){this.$router.go(-1)},finish:function(){/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.webkit.messageHandlers.H5Finish.postMessage({}):window.js.H5Finish()}}},c={render:function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"page"},[s("div",{staticClass:"topBox"},[s("div",{staticClass:"common_title"},[s("div",{staticClass:"img_box"},[s("div",{staticClass:"back_img",on:{click:function(i){return t.finish()}}})]),t._v(" "),s("div",{staticClass:"common_title_fl"},[t._v("犬舍查询")]),t._v(" "),s("div",{staticClass:"img_box"})])]),t._v(" "),s("div",{staticClass:"content"},[s("div",{staticClass:"list"},[s("div",{staticClass:"search box_between"},[s("input",{attrs:{type:"text",placeholder:"请输入犬舍中文/英文名称"},on:{blur:function(i){return t.getVal(i,"name")}}}),t._v(" "),s("div",{staticClass:"btn_box",on:{click:function(i){return t.onRefresh()}}},[s("div",{staticClass:"find_btn"},[t._v("查询")])])])]),t._v(" "),0==t.list.length?s("div",{staticClass:"normal"},[s("div",{staticClass:"icon"}),t._v(" "),s("p",[t._v("暂无更多数据")])]):s("div",[s("van-pull-refresh",{on:{refresh:function(i){return t.onRefresh()}},model:{value:t.refreshing,callback:function(i){t.refreshing=i},expression:"refreshing"}},[s("van-list",{attrs:{finished:t.finished,"finished-text":"没有更多了"},on:{load:function(i){return t.getList()}},model:{value:t.loading,callback:function(i){t.loading=i},expression:"loading"}},t._l(t.list,function(i,e){return s("div",{key:e,staticClass:"list"},[s("div",{staticClass:"list_box"},[s("div",{staticClass:"red_item_top_bg"},[s("div",{staticClass:"item_1_box"},[s("div",{staticClass:"item_1"},[s("div",{staticClass:"item_box_center"},[s("span",[t._v(t._s(i.name))]),t._v(" "),"永久犬舍"==i.type?s("div",{staticClass:"kennelPermanentIcon"}):"年度犬舍"==i.type?s("div",{staticClass:"kennelYearIcon"}):t._e()])]),t._v(" "),s("div",{staticClass:"item_1"},[s("span",[t._v(t._s(i.address))])])])]),t._v(" "),s("div",{staticClass:"item_2_box"},[s("div",{staticClass:"item_2"},[s("div",{staticClass:"item_box_between"},[s("div",[s("span",{staticClass:"text_color_black"},[t._v(t._s(i.nameEn))])])])]),t._v(" "),s("div",{staticClass:"item_2"},[s("div",{staticClass:"item_box_between"},[s("div",[t._v("\n                      犬舍所有人："),s("span",{staticClass:"text_color_black"},[t._v(t._s(i.owner))])])])])])])])}),0)],1)],1)])])},staticRenderFns:[]};var l=s("VU/8")(a,c,!1,function(t){s("0wVs")},"data-v-2f071b26",null);i.default=l.exports}});
//# sourceMappingURL=68.338af47740d12acabb2d.js.map