You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1 lines
4.3 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/release/perfectPersonInfo/index"],{"03f0":function(e,t,n){"use strict";var r=n("f02f"),s=n.n(r);s.a},"1b20":function(e,t,n){"use strict";n.r(t);var r=n("3fab"),s=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=s.a},"3fab":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n("29fa"));function s(e){return e&&e.__esModule?e:{default:e}}var i=n("f431"),o=getApp(),a={data:function(){return{form:{enterpriseType:2,enterpriseScale:"",businessNature:"",establishmentTime:"",enterpriseAddress:"",latitude:"",longitude:"",enterprisePhone:"",resourceIntroduction:"",imgPaths:[]},resourcesList:[],resourcesIdx:""}},components:{},props:{},onLoad:function(e){this.initValidate(),this.getResourcesCagetory(),e.isEdit&&this.getEnterpriseInfo()},onReady:function(){},onShow:function(){},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){},onReachBottom:function(){},onShareAppMessage:function(){},methods:{showMap:function(){var t=this;e.getLocation({type:"gcj02",success:function(n){e.chooseLocation({latitude:n.latitude,longitude:n.longitude,scale:28,success:function(e){console.log(e),t.setData({}),t.form.longitude=e.longitude,t.form.latitude=e.latitude,t.form.enterpriseAddress=e.address}})}})},timeChange:function(e){this.setData({}),this.form.establishmentTime=e.detail.value},getEnterpriseInfo:function(){var e=this;o.http("GET","Enterprise/getEnterpriseInfo").then((function(t){if(t.data.success){var n=t.data.data;e.setData({}),e.form.imgPaths=n.imgPaths,e.form.resourceIntroduction=n.resourceIntroduction,e.form.enterprisePhone=n.enterprisePhone,e.form.longitude=n.longitude,e.form.latitude=n.latitude,e.form.establishmentTime=n.establishmentTime,e.form.businessNature=n.businessNature,e.form.enterpriseAddress=n.enterpriseAddress,e.form.enterpriseScale=n.enterpriseScale}}))},initValidate:function(){var e={enterpriseScale:{required:!0},industryId:{required:!0},establishmentTime:{required:!0},enterpriseAddress:{required:!0},enterprisePhone:{required:!0}},t={enterpriseAddress:{required:"请选择或填写地址"},enterpriseScale:{required:"请填写团队规模"},industryId:{required:"请填写承接类型"},establishmentTime:{required:"请选择组建时间"},enterprisePhone:{required:"请填写客服电话"}};this.WxValidate=new r.default(e,t)},getResourcesCagetory:function(){var e=this;o.http("GET","ResourcesCagetory/listResourcesCagetory").then((function(t){t.data.success&&e.setData({resourcesList:t.data.data})}))},resourcesChange:function(e){var t=Number(e.detail.value);this.setData({resourcesIdx:t}),this.form.industryId=this.resourcesList[t].id},upImgs:function(){var e=this;i.chooseImages2((function(t){var n=e.form.imgPaths;n.push(t),e.setData({}),e.form.imgPaths=n}))},delImg:function(e){var t=e.currentTarget.dataset.idx,n=this.form.imgPaths;n.splice(t,1),this.setData({}),this.form.imgPaths=n},submit:function(t){var n=this;e.showModal({title:"提示!",content:"是否确认提交?",success:function(r){if(r.confirm){var s=t.detail.value;if(s.enterpriseType=2,s.imgPaths=n.form.imgPaths,s.industryId=n.form.industryId,!n.WxValidate.checkForm(s)){var i=n.WxValidate.errorList[0];return n.showModal(i),!1}o.http("post","Enterprise/completeEnterprise",s).then((function(t){t.data.success&&(e.showToast({title:"提交成功",duration:2e3}),setTimeout((function(){e.navigateBack({delta:1})}),2e3))}))}else console.log("已取消")}})},showModal:function(t){e.showModal({content:t.msg,showCancel:!1})}}};t.default=a}).call(this,n("543d")["default"])},a061:function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r}));var s=function(){var e=this,t=e.$createElement;e._self._c},i=[]},baf4:function(e,t,n){"use strict";(function(e){n("0371");r(n("66fd"));var t=r(n("d210"));function r(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},d210:function(e,t,n){"use strict";n.r(t);var r=n("a061"),s=n("1b20");for(var i in s)"default"!==i&&function(e){n.d(t,e,(function(){return s[e]}))}(i);n("03f0");var o,a=n("f0c5"),u=Object(a["a"])(s["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],o);t["default"]=u.exports},f02f:function(e,t,n){}},[["baf4","common/runtime","common/vendor"]]]);