yunshangxie/unpackage/dist/build/mp-weixin/pages/index/apply_in.js

1 line
12 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/apply_in"],{3421:function(t,n,o){},"76f4":function(t,n,o){"use strict";o.d(n,"b",(function(){return e})),o.d(n,"c",(function(){return a})),o.d(n,"a",(function(){return i}));var i={tnNavBar:function(){return Promise.all([o.e("common/vendor"),o.e("tuniao-ui/components/tn-nav-bar/tn-nav-bar")]).then(o.bind(null,"5d27"))},tnTabs:function(){return Promise.all([o.e("common/vendor"),o.e("tuniao-ui/components/tn-tabs/tn-tabs")]).then(o.bind(null,"8772"))},tnSteps:function(){return o.e("tuniao-ui/components/tn-steps/tn-steps").then(o.bind(null,"9c5f"))},tnCheckbox:function(){return o.e("tuniao-ui/components/tn-checkbox/tn-checkbox").then(o.bind(null,"be3f"))},tnButton:function(){return Promise.all([o.e("common/vendor"),o.e("tuniao-ui/components/tn-button/tn-button")]).then(o.bind(null,"f566"))},tnSelect:function(){return o.e("tuniao-ui/components/tn-select/tn-select").then(o.bind(null,"eb22"))},tnCalendar:function(){return Promise.all([o.e("common/vendor"),o.e("tuniao-ui/components/tn-calendar/tn-calendar")]).then(o.bind(null,"888c"))},tnImageUpload:function(){return Promise.all([o.e("common/vendor"),o.e("tuniao-ui/components/tn-image-upload/tn-image-upload")]).then(o.bind(null,"8be7"))},tnRadioGroup:function(){return Promise.all([o.e("common/vendor"),o.e("tuniao-ui/components/tn-radio-group/tn-radio-group")]).then(o.bind(null,"35bb"))},tnRadio:function(){return o.e("tuniao-ui/components/tn-radio/tn-radio").then(o.bind(null,"cf40"))}},e=function(){var t=this,n=t.$createElement;t._self._c;t._isMounted||(t.e0=function(n){t.position_show=!0},t.e1=function(n){t.gender_show=!0},t.e2=function(n){t.birth_time_show=!0},t.e3=function(n){t.industry_id_show=!0},t.e4=function(n){t.jiantuan_time_show=!0},t.e5=function(n){t.current=2})},a=[]},a650:function(t,n,o){"use strict";o.r(n);var i=o("76f4"),e=o("ccb3");for(var a in e)["default"].indexOf(a)<0&&function(t){o.d(n,t,(function(){return e[t]}))}(a);o("d2a8");var s=o("f0c5"),r=Object(s["a"])(e["default"],i["b"],i["c"],!1,null,"6994b536",null,!1,i["a"],void 0);n["default"]=r.exports},cb26:function(t,n,o){"use strict";(function(t){var i=o("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e=o("0c91"),a=i(o("de98")),s={data:function(){return{positionList:[],industry_list:[],jiantuan_time_show:!1,position_show:!1,gender_show:!1,industry_id_show:!1,genderList:[{label:"男",value:0},{label:"女",value:1}],birth_time_show:!1,checked1:!1,topCurrent:0,current:3,info:{},tab_list:[{name:"入会须知"},{name:"人员信息"},{name:"公司信息"}],formData:{position_name:"请选择",position_id:0,industry_id:"",industry_id_name:"请选择",phone:"",password:"",nikename:"",gender_name:"请选择",gender:0,birth_time_name:"请选择",birth_time:"",nation:"",political:"",jiguan:"",institution:"",education:"",academic_degree:"",card_number:"",work_unit:"",unit_position:"",wx_number:"",mailbox:"",fixed_telephone:"",achievement_award:"",other_contacts:"",other_social_positions:"",position:"",cardf_image_show:[],cardz_image_show:[],photo_image_show:[],cardf_image:"",cardz_image:"",photo_image:"",business_license_image_show:[],business_license_image:"",unified_code:"",enterprise_nature:"",enterprise_website:"",if_list:"",employee:"",previous_revenue:"",previous_tax:"",previous_profit:"",previous_donation:"",qitaqiyerenzhiqingkuang:"",enterprise_Introduction:"",introdiction:"",enterprise_honor:"",if_organization:null,nature:"",jiantuan_time:"",jiantuan_time_name:"请选择",jiantuan_number:"",youth_number:"",superior_nature:"",tuanweifuzerenxinxi:"",documents_file:"",documents_file_show:[],enterprise_location:"",apiUrl:this.$store.state.apiUrl}}},onLoad:function(){this.getAssociationInfo(),this.getPlan(),this.getIndustry()},methods:{getIndustry:function(){var n=this;(0,e.IndustryList)({association_id:a.default.state.Gid}).then((function(t){if(1==t.code){var o=t.data,i=o.map((function(t){return{value:t.id,label:t.industry_name}}));n.industry_list=i}})).catch((function(n){t.showToast({title:n,icon:"none",duration:2e3})}))},formatResponse:function(n,o){console.log(n),1==n.code&&t.showToast({title:"上传成功",icon:"none",duration:2e3}),0==o?this.formData.photo_image=n.data.url:1==o?this.formData.cardz_image=n.data.url:2==o?this.formData.cardf_image=n.data.url:3==o?this.formData.business_license_image=n.data.url:this.formData.documents_file=n.data.url},radioGroupChange:function(t){console.log(t)},getPositionId:function(t){var n=t[0];this.formData.position_name=n.label,this.formData.position_id=n.value},getGenderId:function(t){var n=t[0];this.formData.gender_name=n.label,this.formData.gender=n.value},getindustryId:function(){var t=d[0];this.formData.industry_id_name=t.label,this.formData.industry_id=t.value},birth_time_chick:function(t){console.log(t),this.formData.birth_time=t.date,this.formData.birth_time_name=t.date},jiantuan_time_chick:function(t){this.formData.jiantuan_time_name=t.date,this.formData.jiantuan_time=t.date},two_next:function(){""!=this.formData.phone?""!=this.formData.password?""!=this.formData.nikename?0!=this.formData.position_id?""!=this.formData.birth_time?0!=this.formData.gender?""!=this.formData.nation?""!=this.formData.political?""!=this.formData.jiguan?""!=this.formData.institution?""!=this.formData.education?""!=this.formData.academic_degree?""!=this.formData.card_number?""!=this.formData.work_unit?""!=this.formData.unit_position?""!=this.formData.wx_number?""!=this.formData.mailbox?""!=this.formData.fixed_telephone?""!=this.formData.achievement_award?""!=this.formData.other_contacts?""!=this.formData.other_social_positions?""!=this.formData.position?""!=this.formData.cardf_image?""!=this.formData.cardz_image?""!=this.formData.photo_image?this.current=3:t.showToast({title:"请上传个人照片!",icon:"none",duration:2e3}):t.showToast({title:"请上传身份证反面!",icon:"none",duration:2e3}):t.showToast({title:"请上传身份证正面!",icon:"none",duration:2e3}):t.showToast({title:"请输入意向协会职务!",icon:"none",duration:2e3}):t.showToast({title:"请输入其他社会职务!",icon:"none",duration:2e3}):t.showToast({title:"请输入其他联系人!",icon:"none",duration:2e3}):t.showToast({title:"请输主要成就以及获奖情况!",icon:"none",duration:2e3}):t.showToast({title:"请输入固定电话!",icon:"none",duration:2e3}):t.showToast({title:"请输入邮箱!",icon:"none",duration:2e3}):t.showToast({title:"请输入微信号!",icon:"none",duration:2e3}):t.showToast({title:"请输入单位职务!",icon:"none",duration:2e3}):t.showToast({title:"请输入工作单位!",icon:"none",duration:2e3}):t.showToast({title:"请输入身份证号!",icon:"none",duration:2e3}):t.showToast({title:"请输入学位!",icon:"none",duration:2e3}):t.showToast({title:"请输入学历!",icon:"none",duration:2e3}):t.showToast({title:"请输入毕业院校!",icon:"none",duration:2e3}):t.showToast({title:"请输入籍贯!",icon:"none",duration:2e3}):t.showToast({title:"请输入政治面貌!",icon:"none",duration:2e3}):t.showToast({title:"请输入民族!",icon:"none",duration:2e3}):t.showToast({title:"请选择性别!",icon:"none",duration:2e3}):t.showToast({title:"请输入出生日期!",icon:"none",duration:2e3}):t.showToast({title:"请选择申请职位!",icon:"none",duration:2e3}):t.showToast({title:"请输入真实姓名!",icon:"none",duration:2e3}):t.showToast({title:"请输入密码!",icon:"none",duration:2e3}):t.showToast({title:"请输入手机号!",icon:"none",duration:2e3})},one_next:function(){this.checked1?this.current=2:t.showToast({title:"请同意入会协议",icon:"none",duration:2e3})},getPlan:function(){var n=this;(0,e.positionList)({association_id:a.default.state.Gid}).then((function(t){if(1==t.code){var o=t.data,i=o.map((function(t){return{value:t.id,label:t.position_name}}));n.positionList=i}})).catch((function(n){t.showToast({title:n,icon:"none",duration:2e3})}))},getAssociationInfo:function(){var n=this;(0,e.associationInfo)({association_id:a.default.state.Gid}).then((function(t){if(console.log(t),1==t.code){var o=t.data;-1!=o.association_desc.indexOf("<img")&&(o.association_desc=getApp().addWidthToImages(o.association_desc)),n.info=o}})).catch((function(n){t.showToast({title:n,icon:"none",duration:2e3})}))},submit:function(){if(""!=this.formData.business_license_image)if(""!=this.formData.unified_code)if(""!=this.formData.enterprise_nature)if(null!=this.formData.industry_id)if(""!=this.formData.enterprise_website)if(null!=this.formData.if_list)if(""!=this.formData.employee)if(""!=this.formData.enterprise_location)if(""!=this.formData.previous_revenue)if(""!=this.formData.previous_tax)if(""!=this.formData.previous_profit)if(""!=this.formData.previous_donation)if(""!=this.formData.qitaqiyerenzhiqingkuang)if(""!=this.formData.enterprise_Introduction)if(""!=this.formData.introdiction)if(""!=this.formData.enterprise_honor)if(null!=this.formData.if_organization){if(0==this.formData.if_organization){if(""==this.formData.nature)return void t.showToast({title:"请输主团组织性质!",icon:"none",duration:2e3});if(""==this.formData.jiantuan_time)return void t.showToast({title:"请输入建团时间!",icon:"none",duration:2e3});if(""==this.formData.jiantuan_number)return void t.showToast({title:"请输入建团人数!",icon:"none",duration:2e3});if(""==this.formData.youth_number)return void t.showToast({title:"请输入青年人数!",icon:"none",duration:2e3});if(""==this.formData.superior_nature)return void t.showToast({title:"请输入上级团组织!",icon:"none",duration:2e3});if(""==this.formData.tuanweifuzerenxinxi)return void t.showToast({title:"请输入团委负责人信息!",icon:"none",duration:2e3});if(""==this.formData.documents_file)return void t.showToast({title:"请上传批复文件!",icon:"none",duration:2e3})}this.formData.association_id=this.id,(0,e.loginAdd)(this.formData).then((function(n){1==n.code?t.showToast({title:"申请成功,请关注站内信通知!",icon:"success",duration:2e3}):t.showToast({title:n.msg,icon:"error",duration:2e3})})).catch((function(n){t.showToast({title:n,icon:"none",duration:2e3})}))}else t.showToast({title:"是否建立团组织!",icon:"none",duration:2e3});else t.showToast({title:"请输入企业所获荣誉以及专利!",icon:"none",duration:2e3});else t.showToast({title:"请输入业务介绍!",icon:"none",duration:2e3});else t.showToast({title:"请输入企业介绍!",icon:"none",duration:2e3});else t.showToast({title:"请输入其他企业任职情况!",icon:"none",duration:2e3});else t.showToast({title:"请输入上年度公益性捐赠支出!",icon:"none",duration:2e3});else t.showToast({title:"请输入上年度净利润!",icon:"none",duration:2e3});else t.showToast({title:"请输入上年度纳税额!",icon:"none",duration:2e3});else t.showToast({title:"请输入上年度营业额!",icon:"none",duration:2e3});else t.showToast({title:"请输入企业注册地!",icon:"none",duration:2e3});else t.showToast({title:"请输入员工人数!",icon:"none",duration:2e3});else t.showToast({title:"请选择是否上市!",icon:"none",duration:2e3});else t.showToast({title:"请输入企业网址!",icon:"none",duration:2e3});else t.showToast({title:"请选择行业!",icon:"none",duration:2e3});else t.showToast({title:"请输入企业性质!",icon:"none",duration:2e3});else t.showToast({title:"请输入统一社会信用代码!",icon:"none",duration:2e3});else t.showToast({title:"请上传营业执照!",icon:"none",duration:2e3})},tn:function(n){t.navigateTo({url:n})},goBack:function(){getCurrentPages().length>1?t.navigateBack():t.redirectTo({url:"/pages/index/index"})}}};n.default=s}).call(this,o("543d")["default"])},ccb3:function(t,n,o){"use strict";o.r(n);var i=o("cb26"),e=o.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){o.d(n,t,(function(){return i[t]}))}(a);n["default"]=e.a},d2a8:function(t,n,o){"use strict";var i=o("3421"),e=o.n(i);e.a},fcba:function(t,n,o){"use strict";(function(t,n){var i=o("4ea4");o("34f1");i(o("66fd"));var e=i(o("a650"));t.__webpack_require_UNI_MP_PLUGIN__=o,n(e.default)}).call(this,o("bc2e")["default"],o("543d")["createPage"])}},[["fcba","common/runtime","common/vendor"]]]);