(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-subPages-businesscard-formcard-editformcard"],{"01f3":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[t.loadlogo?t._e():a("loadlogo"),t.loadlogo?[a("far-bottom"),a("v-uni-view",{staticClass:"header p-r"},[a("v-uni-view",{staticClass:"iconfont icon-info col-f4 header-Icon"}),a("v-uni-view",{staticClass:"header-title col-9 f-24"},[t._v(t._s(1==t.schoolText?"完善个人名片的用户,更容易获得学校人脉,并得到平台名片榜单推荐":"完善个人名片的用户,更容易获得商业人脉,并得到平台名片榜单推荐"))])],1),a("v-uni-view",{staticClass:"formData-box"},[a("v-uni-form",{on:{submit:function(e){arguments[0]=e=t.$handleEvent(e),t.sbformData.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"userData-box bor-radius-10upx b-f"},[a("v-uni-view",{staticClass:"user-avatar",style:{"background-image":"url("+t.avatarLogo+")"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.upImages.apply(void 0,arguments)}}}),a("v-uni-view",{staticClass:"user-name-inputBox"},[a("v-uni-view",{staticClass:"f-28 col-3 t-c m-btm20"},[t._v("真实姓名")]),a("v-uni-input",{staticClass:"user-name-input f-28 col-9",attrs:{type:"text",value:t.cardinfo.name,name:"name",placeholder:"请填写姓名"}})],1),a("v-uni-view",{staticClass:"user-contact-inputBox dis-flex flex-y-center"},[a("v-uni-view",{staticClass:"user-contact-item flex-box"},[a("v-uni-view",{staticClass:"user-contact-phone f-24 col-3 t-c m-btm20"},[t._v("手机号")]),a("v-uni-input",{staticClass:"user-contact-input f-28 col-9",attrs:{type:"number",value:t.cardinfo.mobile,name:"mobile",placeholder:"请填写电话"}})],1),a("v-uni-view",{staticClass:"user-contact-item flex-box"},[a("v-uni-view",{staticClass:"user-contact-wx f-24 col-3 t-c m-btm20"},[t._v("微信号")]),a("v-uni-input",{staticClass:"user-contact-input f-28 col-9",attrs:{type:"text",value:t.cardinfo.wechat,name:"wechat",placeholder:"请填写微信号"}})],1)],1)],1),a("v-uni-view",{staticClass:"enter-title padding-box-all f-24 col-9"},[t._v(t._s(1==t.schoolText?"个人信息":"企业信息"))]),a("v-uni-view",{staticClass:"enterData-box bor-radius-10upx b-f"},[a("v-uni-view",{staticClass:"enterData-content"},[a("v-uni-view",{staticClass:"enterData-input-box dis-flex flex-y-center border-line border-bottom"},[a("v-uni-view",{staticClass:"f-28 m-right70 titile"},[t._v(t._s(1==t.schoolText?"年级":"公司"))]),a("v-uni-input",{staticClass:"user-contact-input f-28 col-9",attrs:{type:"text",value:t.cardinfo.company,name:"company",placeholder:1==t.schoolText?"请填写年级(选填)":"请填写公司"}})],1),a("v-uni-view",{staticClass:"enterData-input-box dis-flex flex-y-center border-line border-bottom"},[a("v-uni-view",{staticClass:"f-28 m-right70 titile"},[t._v(t._s(1==t.schoolText?"专业":"部门"))]),a("v-uni-input",{staticClass:"user-contact-input f-28 col-9",attrs:{type:"text",value:t.cardinfo.branch,name:"branch",placeholder:1==t.schoolText?"请填写专业(选填)":"请填写部门"}})],1),a("v-uni-view",{staticClass:"enterData-input-box dis-flex flex-y-center border-line border-bottom"},[a("v-uni-view",{staticClass:"f-28 titile",class:1==t.schoolText?"m-right40":"m-right70"},[t._v(t._s(1==t.schoolText?"校内职务":"职位"))]),a("v-uni-input",{staticClass:"user-contact-input f-28 col-9",attrs:{type:"text",value:t.cardinfo.position,name:"position",placeholder:1==t.schoolText?"请填写校内职务(选填)":"请填写职位"}})],1),a("v-uni-view",{staticClass:"enterData-input-box enterData-textarea border-line border-bottom"},[a("v-uni-textarea",{staticClass:"f-28 col-9",attrs:{value:t.cardinfo.desc,placeholder:"",name:"desc",placeholder:1==t.schoolText?"请简要介绍你自己(例如:获奖经历)":"请填写一句话介绍负责业务"}})],1),a("v-uni-view",{staticClass:"enterData-input-box dis-flex flex-y-center border-line border-bottom p-r"},[a("v-uni-view",{staticClass:"f-28 m-right70 titile"},[t._v("省市")]),a("v-uni-view",[a("v-uni-view",{staticClass:"uni-input",staticStyle:{"font-size":"24upx","line-height":"80upx",display:"inline-block",height:"80upx","vertical-align":"middle"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.visble.apply(void 0,arguments)}}},[t._v(t._s(t.citytext))]),a("w-pickerb",{ref:"region",attrs:{visible:t.visiblec,mode:"region",value:[t.userAddress.provinceid,t.userAddress.cityid,t.userAddress.countyid],"default-type":"value","hide-area":!1},on:{"update:visible":function(e){arguments[0]=e=t.$handleEvent(e),t.visiblec=e},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm(e,"region")},cancel:function(e){arguments[0]=e=t.$handleEvent(e),t.onCancel.apply(void 0,arguments)}}})],1)],1),a("v-uni-view",{staticClass:"enterData-input-box dis-flex flex-y-center border-line border-bottom p-r"},[a("v-uni-view",{staticClass:"f-28 m-right70 titile"},[t._v("地址")]),a("v-uni-input",{staticClass:"user-contact-input f-28 col-9",attrs:{type:"text",disabled:!0,value:t.address,name:"address",placeholder:"请输入详细地址"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getLocation.apply(void 0,arguments)}}}),a("v-uni-view",{staticClass:"location dis-flex flex-y-center",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getLocation.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"locationIconClass iconfont icon-location col-f4 m-right10"}),a("v-uni-view",{staticClass:"f-24 col-f4"},[t._v("定位")])],1)],1),a("v-uni-picker",{staticClass:"dataPicker",attrs:{mode:"multiSelector",range:t.catesList,"range-key":"name",value:t.typeIndex},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.checkType.apply(void 0,arguments)},columnchange:function(e){arguments[0]=e=t.$handleEvent(e),t.changeKey.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"enterData-input-box dis-flex flex-y-center p-r"},[a("v-uni-view",{staticClass:"dis-flex flex-y-center "},[a("v-uni-view",{staticClass:"f-28 m-right70 titile"},[t._v("行业")]),a("v-uni-view",{staticClass:"f-28 col-3"},[t._v(t._s(t.onelevelName)+" "+t._s(t.twolevelName))])],1),a("v-uni-view",{staticClass:"iconfont icon-right rightIconClass col-9"})],1)],1)],1)],1),a("v-uni-view",{staticClass:"enter-title padding-box-all f-24 col-9"},[t._v("隐私设置")]),a("v-uni-view",{staticClass:"enterData-box bor-radius-10upx b-f"},[a("v-uni-view",{staticClass:"enterData-content"},[a("v-uni-view",{staticClass:"enterData-input-box dis-flex flex-y-center flex-x-between border-line border-bottom"},[a("v-uni-view",{staticClass:"f-28 m-right70"},[t._v("公开手机号")]),a("v-uni-view",{staticClass:"dis-flex flex-y-center"},[a("v-uni-view",{staticClass:"col-9 f-24 m-right30"},[t._v("在名片中显示手机号")]),a("v-uni-switch",{staticClass:"switchStyle",attrs:{name:"show_mobile",checked:"1"===t.cardinfo.show_mobile,color:"#FF4444"}})],1)],1),a("v-uni-view",{staticClass:"enterData-input-box dis-flex flex-y-center flex-x-between border-line border-bottom"},[a("v-uni-view",{staticClass:"f-28 m-right70"},[t._v("公开微信号")]),a("v-uni-view",{staticClass:"dis-flex flex-y-center"},[a("v-uni-view",{staticClass:"col-9 f-24 m-right30"},[t._v("在名片中显示微信号")]),a("v-uni-switch",{staticClass:"switchStyle",attrs:{name:"show_wechat",checked:"1"===t.cardinfo.show_wechat,color:"#FF4444"}})],1)],1),a("v-uni-view",{staticClass:"enterData-input-box dis-flex flex-y-center flex-x-between border-line border-bottom"},[a("v-uni-view",{staticClass:"f-28 m-right70"},[t._v("公开位置信息")]),a("v-uni-view",{staticClass:"dis-flex flex-y-center"},[a("v-uni-view",{staticClass:"col-9 f-24 m-right30"},[t._v("在您的名片中公开显示")]),a("v-uni-switch",{staticClass:"switchStyle",attrs:{name:"show_addr",checked:"1"===t.cardinfo.show_addr,color:"#FF4444"}})],1)],1)],1)],1),a("v-uni-button",{staticClass:"submit-btn f-28 t-c col-f",attrs:{"form-type":"submit"}},[t._v("保存")])],1)],1)]:t._e(),a("PopManager",{attrs:{show:t.isOpenLaction,type:"bottom",overlay:"false",showOverlay:"false"}},[t.latlngs?a("v-uni-view",{staticClass:"iframe-wid-hgt",style:{height:t.phoneHeight}},[a("iframe",{attrs:{id:"mapPage",width:"100%",height:"100%",frameborder:"0",src:"https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=KIQBZ-6OT3G-AOMQD-IHW6J-PEUDV-VCFAF&referer=myapp&coord="+t.latlngs.latitude+","+t.latlngs.longitude}})]):t._e(),t.latlngs?t._e():a("v-uni-view",{staticClass:"iframe-wid-hgt",style:{height:t.phoneHeight}},[a("iframe",{attrs:{id:"mapPage",width:"100%",height:"100%",frameborder:"0",src:"https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=KIQBZ-6OT3G-AOMQD-IHW6J-PEUDV-VCFAF&referer=myapp"}})])],1)],2)},s=[]},"5ff6":function(t,e,a){"use strict";var i=a("c953"),n=a.n(i);n.a},7547:function(t,e,a){"use strict";a.r(e);var i=a("a315"),n=a.n(i);for(var s in i)"default"!==s&&function(t){a.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},a315:function(t,e,a){"use strict";var i=a("4ea4");a("99af"),a("d81d"),a("a434"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("96cf");var n=i(a("1da1")),s=i(a("5530")),o=i(a("ade3")),r=i(a("2c7c")),c=i(a("c2a2")),l=i(a("ec93")),d=i(a("8f6e")),u=i(a("43ce")),v=i(a("fbf7")),f=a("7bb8"),p={data:function(){var t;return t={visiblec:!1,loadlogo:!1,phoneHeight:null,isOpenLaction:!1,meals:[],catesList:[],typeIndex:[0,0],onelevel:"",twolevel:"",onelevelName:"",twolevelName:"",lat:"",lng:"",address:"",cardinfo:{},cardid:null,avatarLogo:""},(0,o.default)(t,"isOpenLaction",!1),(0,o.default)(t,"userAddress",{id:"",name:"",tel:"",detailed_address:"",provinceidName:"",provinceid:"",areaidName:"",countyid:"",cityid:"",distidName:"",status:0,lat:"",lng:""}),(0,o.default)(t,"counts",!0),(0,o.default)(t,"citytext","请选择省市区"),(0,o.default)(t,"owenscitylist",[]),(0,o.default)(t,"latlngs",{}),(0,o.default)(t,"userInfo",{}),(0,o.default)(t,"lblis",{}),(0,o.default)(t,"schoolText",0),t},components:{Loadlogo:c.default,PopManager:d.default,checkCity:u.default,wPickerb:v.default},onLoad:function(t){var e=this;e.latlngs=uni.getStorageSync("curLoction"),e.owenscitylist=uni.getStorageSync("cityList"),e.cardid=t.id,e.getCardPage(t.id),e.locationListener()},onShow:function(){},methods:{onConfirm:function(t){console.log(t),this.userAddress.provinceid=t.obj.province.value,this.userAddress.cityid=t.obj.city.value,this.userAddress.countyid=t.obj.area.value,this.citytext=t.result},visble:function(){this.visiblec=!0},returnData:function(t){var e=this;e.userAddress=(0,s.default)((0,s.default)({},e.userAddress),t),console.log(e.userAddress)},galadata:function(t){var e=this;e.userAddress.areaidName=t.areaidName,e.userAddress.distidName=t.distidName,e.userAddress.provinceidName=t.provinceidName},getCardPage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,e=this;r.default._post_form("&p=citycard&do=createCityCardPage",{id:t},(function(t){if(0===t.errno){var a=t.data.cates;if(a){for(var i=[],n=[],o=0;o1||t.counts))return!1;n&&"locationPicker"==n.module&&(console.log("location",n,e),t.address=n.poiaddress,t.lat=n.latlng.lat,t.lng=n.latlng.lng,t.isOpenLaction=!1,i={lat:n.latlng.lat,lng:n.latlng.lng},t.getloctions(i)),e++,t.counts=!1}),!1)},getloctions:function(t){var e=this;r.default._post_form("&p=member&do=lng2areaid&lng=".concat(t.lng,"&lat=").concat(t.lat),{},(function(a){return e.userAddress.lat=t.lat,e.userAddress.lng=t.lng,e.userAddress.provinceid=a.data.provinceid,e.userAddress.countyid=a.data.countyid,e.userAddress.cityid=a.data.cityid,e.userAddress.areaidName="",e.userAddress.provinceidName="",e.userAddress.distidName="",console.log(e.userAddress),e.owenscitylist.map((function(t,a){t.id==e.userAddress.provinceid&&(e.citytext=t.name,e.userAddress.provinceidName=t.name,t.area.map((function(t){t.id==e.userAddress.cityid&&(e.citytext="".concat(e.citytext).concat(t.name),e.userAddress.areaidName=t.name,console.log(e.citytext,t.name),t.dist.map((function(t){t.id==e.userAddress.countyid&&(e.citytext="".concat(e.citytext).concat(t.name),e.userAddress.distidName=t.name)})))})))})),!1}))},radioChange:function(t){},sbformData:function(t){var e=this,a=t.detail.value;a=(0,s.default)((0,s.default)({},a),{},{show_addr:a.show_addr?"1":"0",show_mobile:a.show_mobile?"1":"0",show_wechat:a.show_wechat?"1":"0",lat:e.lat,lng:e.lng,one_class:e.onelevel,two_class:e.twolevel,id:e.cardid,logo:e.avatarLogo});var i=[{name:"name",checkType:"string",checkRule:"1,4",errorMsg:"姓名应为1-4个字符"},{name:"mobile",checkType:"phoneno",errorMsg:"请输入正确手机号"},{name:"wechat",checkType:"notnull",errorMsg:"请输入微信号"},{name:"company",checkType:"notnull",errorMsg:"公司名字不能为空"},{name:"branch",checkType:"notnull",errorMsg:"部门内容不能为空"},{name:"position",checkType:"notnull",errorMsg:"职位内容不能为空"},{name:"desc",checkType:"notnull",errorMsg:"简介内容不能为空"},{name:"address",checkType:"notnull",errorMsg:"请输入地址或直接定位"},{name:"one_class",checkType:"notnull",errorMsg:"行业内容不能为空"}],n=f.check(a,i);n?(uni.showLoading(),a.provinceid=e.userAddress.provinceid,a.cityid=e.userAddress.cityid,a.countyid=e.userAddress.countyid,r.default._post_form("&p=citycard&do=createCityCardApi",a,(function(t){if(0===t.errno){var e=t.data;0===e.paystatus&&r.default.showSuccess("修改成功",(function(){uni.navigateBack({delta:1})}))}}),!1,(function(){uni.hideLoading()}))):uni.showToast({title:f.error,icon:"none"})},checkType:function(t){var e=this,a=e.catesList;a[0][t.target.value[0]]&&(e.onelevelName=a[0][t.target.value[0]].name,e.onelevel=a[0][t.target.value[0]].id),a[1][t.target.value[1]]&&(e.twolevelName=a[1][t.target.value[1]].name,e.twolevel=a[1][t.target.value[1]].id)},changeKey:function(t){for(var e=this,a=[],i=0;i