webpackJsonp([43],{L3oQ:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("mvHQ"),a=i.n(e),n=i("2CGT"),l=i("Fd2+"),o={data:function(){return{number:"",type:this.$route.query.type||0,list:[],total:"",pageNum:1,loading:!1,finished:!1,refreshing:!1}},created:function(){},mounted:function(){this.getList()},methods:{getVal:function(t,s){this[s]=t.target.value.replace(/ /g,"")},onRefresh:function(){this.pageNum=1,this.finished=!1,this.list=[],this.loading=!0,this.getList()},getList:function(){var t=this;l.c.loading({message:"加载中...",forbidClick:!0,duration:0});var s={key:this.number,gender:this.type,pageNo:this.pageNum,pageSize:10};Object(n.h)(s).then(function(s){if("0"==s.rc){t.pageNum+=1;var i=s.total;t.total=i,t.refreshing&&(t.list=[],t.refreshing=!1);var e=t.list.concat(s.list);t.list=e,t.loading=!1,t.list.length>=i&&(t.finished=!0)}else Object(l.c)(s.msg)})},goBack:function(){this.$router.go(-1)},finish:function(){window.js.finish()},goBackApply:function(t){"1"==this.type?(sessionStorage.setItem("formType","1"),sessionStorage.setItem("maleData",a()(t))):(sessionStorage.setItem("formType","2"),sessionStorage.setItem("femaleData",a()(t))),this.$router.back()}}},c={render:function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"page"},[i("div",{staticClass:"topBox"},[i("div",{staticClass:"common_title"},[i("div",{staticClass:"img_box"},[i("div",{staticClass:"back_img",on:{click:function(s){return t.goBack()}}})]),t._v(" "),i("div",{staticClass:"common_title_fl"},[t._v("\n        我的"+t._s("1"==t.type?"种公":"种母")+"犬只\n      ")]),t._v(" "),i("div",{staticClass:"img_box"})])]),t._v(" "),i("div",{staticClass:"content"},[i("div",{staticClass:"list"},[i("div",{staticClass:"search box_between"},[i("input",{attrs:{type:"text",placeholder:"呼名/证书号/芯片号（非本人犬只）"},on:{blur:function(s){return t.getVal(s,"number")}}}),t._v(" "),i("div",{staticClass:"btn_box",on:{click:function(s){return t.onRefresh()}}},[i("div",{staticClass:"find_btn"},[t._v("查找")])])])]),t._v(" "),0==t.list.length?i("div",{staticClass:"normal"},[i("div",{staticClass:"icon"}),t._v(" "),i("p",[t._v("暂无更多数据")])]):i("div",[i("div",{staticClass:"btn_box"},[i("div",{staticClass:"btn"},[t._v("\n          您名下符合繁殖要求的"+t._s("1"==t.type?"种公":"种母")+"犬只 共"+t._s(t.total)+"只\n        ")])]),t._v(" "),i("van-pull-refresh",{on:{refresh:function(s){return t.onRefresh()}},model:{value:t.refreshing,callback:function(s){t.refreshing=s},expression:"refreshing"}},[i("van-list",{attrs:{finished:t.finished,"finished-text":"没有更多了"},on:{load:function(s){return t.getList()}},model:{value:t.loading,callback:function(s){t.loading=s},expression:"loading"}},t._l(t.list,function(s,e){return i("div",{key:e,staticClass:"list"},[i("div",{staticClass:"list_box",on:{click:function(i){return t.goBackApply(s)}}},[i("div",{staticClass:"item_1_box"},[i("div",{staticClass:"item_box_center"},[i("div",{staticClass:"rectangle"}),t._v(" "),i("div",{staticClass:"item_1"},[t._v("\n                    出生日期："),i("span",[t._v(t._s(s.birthdate))])])])]),t._v(" "),i("div",{staticClass:"item_2_box"},[i("div",{staticClass:"item_2"},[i("div",{staticClass:"item_box_between"},[i("div",[t._v("\n                      英文名："),i("span",{staticClass:"text_color_black"},[t._v(t._s(s.nameEn))])])])]),t._v(" "),i("div",{staticClass:"item_2"},[i("div",{staticClass:"item_box_between"},[i("div",[t._v("\n                      呼名："),i("span",{staticClass:"text_color_black"},[t._v(t._s(s.callName))])])])]),t._v(" "),i("div",{staticClass:"item_2"},[i("div",{staticClass:"item_box_between"},[i("div",[t._v("\n                      犬种："),i("span",{staticClass:"text_color_black"},[t._v(t._s(s.dogBreed))])])])]),t._v(" "),i("div",{staticClass:"item_2"},[i("div",{staticClass:"item_box_between"},[i("div",[t._v("\n                      证书号："),i("span",{staticClass:"text_color_black"},[t._v(t._s(s.pedigreeCertifiedCode))])])])]),t._v(" "),i("div",{staticClass:"item_2"},[i("div",{staticClass:"item_box_between"},[i("div",[t._v("\n                      芯片号："),i("span",{staticClass:"text_color_black"},[t._v(t._s(s.identificationFlag))])])])])])])])}),0)],1)],1)])])},staticRenderFns:[]};var r=i("VU/8")(o,c,!1,function(t){i("Ti48")},"data-v-7b6b13e9",null);s.default=r.exports},Ti48:function(t,s){}});
//# sourceMappingURL=43.0219e3f23af701d6aa9d.js.map