webpackJsonp([77],{liXw:function(t,s){},phXj:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=i("2CGT"),e=i("Fd2+"),c={data:function(){return{show:!1,data:"",selectClubData:"",singleClubData:[]}},created:function(){var t=this.$route.query.token||"";sessionStorage.setItem("token",t);var s=this.$route.query.club||"";sessionStorage.setItem("club",s)},mounted:function(){this.getMemberSingleClubInfo(),this.getPartnerUserSingleOrgList()},methods:{getMemberSingleClubInfo:function(){var t=this;e.c.loading({message:"加载中...",forbidClick:!0,duration:0}),Object(a.X)().then(function(s){"0"==s.rc?t.data=s.data:Object(e.c)(s.msg)})},getPartnerUserSingleOrgList:function(){var t=this;Object(a._4)().then(function(s){"0"==s.rc?t.singleClubData=s.data:Object(e.c)(s.msg)})},saveMemberSingleClub:function(){var t=this;if(""==this.selectClubData)return!1;e.c.loading({message:"加载中...",forbidClick:!0,duration:0});var s={id:this.selectClubData.id};Object(a._28)(s).then(function(s){"0"==s.rc?(t.getMemberSingleClubInfo(),t.hideDialog()):Object(e.c)(s.msg)})},selectClub:function(t){this.selectClubData=t},showDialog:function(){this.show=!0},hideDialog:function(){this.show=!1},goBack:function(){this.$router.go(-1)},finish:function(){window.js.finish()}}},l={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.finish()}}})]),t._v(" "),i("div",{staticClass:"common_title_fl"},[t._v("我的单犬种机构")]),t._v(" "),t._m(0)])]),t._v(" "),i("div",{staticClass:"content"},[""==t.data||null==t.data?i("div",{staticClass:"normal"},[i("div",{staticClass:"icon"}),t._v(" "),i("div",{on:{click:function(s){return t.showDialog()}}},[i("p",[t._v("暂无单犬种机构，去添加")])])]):i("div",[i("div",{staticClass:"list"},[i("div",{staticClass:"list_box"},[i("div",{staticClass:"item_2_box"},[i("div",{staticClass:"item_2"},[i("div",{staticClass:"item_box_start"},[i("div",[t._v("机构名称：")]),t._v(" "),i("div",{staticStyle:{width:"4rem"}},[i("span",{staticClass:"text_color_black"},[t._v(t._s(t.data.name))])])])]),t._v(" "),i("div",{staticClass:"item_2"},[i("div",{staticClass:"item_box_start"},[i("div",[t._v("联系人：")]),t._v(" "),i("div",{staticStyle:{width:"4.6rem"}},[i("span",{staticClass:"text_color_black"},[t._v(t._s(t.data.contact))])])])]),t._v(" "),i("div",{staticClass:"item_2"},[i("div",{staticClass:"item_box_start"},[i("div",[t._v("联系电话：")]),t._v(" "),i("div",{staticStyle:{width:"4.6rem"}},[i("span",{staticClass:"text_color_black"},[t._v(t._s(t.data.tel))])])])]),t._v(" "),i("div",{staticClass:"item_2"},[i("div",{staticClass:"item_box_start"},[i("div",[t._v("联系地址：")]),t._v(" "),i("div",{staticStyle:{width:"4.6rem"}},[i("span",{staticClass:"text_color_black"},[t._v(t._s(t.data.address))])])])]),t._v(" "),i("div",{staticClass:"item_2"},[i("div",{staticClass:"item_box_start"},[i("div",[t._v("可办理犬种：")]),t._v(" "),i("div",{staticStyle:{width:"4.6rem"}},[i("span",{staticClass:"text_color_black"},[t._v(t._s(t.data.orgDogType))])])])])]),t._v(" "),i("div",{staticClass:"btn_box",on:{click:function(s){return t.showDialog()}}},[i("div",{staticClass:"btn_pro"},[t._v("修改")])])])])])]),t._v(" "),i("van-popup",{style:{height:"40%"},attrs:{round:"",position:"bottom"},model:{value:t.show,callback:function(s){t.show=s},expression:"show"}},[i("div",{staticClass:"popup_box"},[i("div",{staticClass:"popup_top_close_img",on:{click:function(s){return t.hideDialog()}}}),t._v(" "),i("div",{staticClass:"popup_top"},[t._v("选择单犬种机构")]),t._v(" "),i("div",{staticClass:"popup_top_save",on:{click:function(s){return t.saveMemberSingleClub()}}},[t._v("保存")]),t._v(" "),i("div",{staticClass:"popup_content"},t._l(t.singleClubData,function(s,a){return i("div",{key:a,staticClass:"list"},[s.id!==t.selectClubData.id?i("div",{staticClass:"list_box_pop",on:{click:function(i){return t.selectClub(s)}}},[i("div",{staticClass:"item_box_center"},[i("div",{staticClass:"item_2_box"},[i("div",{staticClass:"item_2"},[i("span",{staticClass:"blod"},[t._v(t._s(s.name))])])])])]):i("div",{staticClass:"list_box_pop_select",on:{click:function(i){return t.selectClub(s)}}},[i("div",{staticClass:"item_box_center"},[i("div",{staticClass:"item_2_box"},[i("div",{staticClass:"item_2"},[i("span",{staticClass:"blod"},[t._v(t._s(s.name))])])])])])])}),0)])])],1)},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"img_box"},[s("div",{staticClass:"btn_box"})])}]};var n=i("VU/8")(c,l,!1,function(t){i("liXw")},"data-v-1db39290",null);s.default=n.exports}});
//# sourceMappingURL=77.967b4f8d0dc51ba1cc04.js.map