(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-addTp-user"],{"0d92":function(t,o,e){"use strict";var a=e("4ea4");Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var n=a(e("5530")),i=e("73c3"),u=e("2f62"),c=a(e("272f")),r={components:{csmess:c.default},data:function(){return{form:{name:"",phone:"",address:"",occupation:"产康师",upImg:"",detail:""},showOccupation:!1,occupationList:[{text:"产康师"},{text:"母乳喂养指导师"}],fileList:[{url:"http://pics.sc.chinaz.com/files/pic/pic9/201912/hpic1886.jpg"}]}},computed:(0,n.default)((0,n.default)({},(0,u.mapState)(["baseURL"])),{},{upUrl:function(){return this.baseURL+"/api/upload/image"},upHeader:function(){return{"Authori-zation":"Bearer "+uni.getStorageSync("token")||!1}}}),onLoad:function(){},onShow:function(){},methods:{changeOccupation:function(t){console.log(this.occupationList[t].text),this.form.occupation=this.occupationList[t].text,console.log(t)},submit:function(){uni.showLoading({title:"提交报名中...",mask:!0});var t=this.form;(0,i.pushJoin)({type:1,job:t.occupation,name:t.name,phone:t.phone,address:t.address,avatar:t.upImg,detail:t.detail}).then((function(t){uni.hideLoading(),uni.showToast({title:"报名成功"}),uni.showModal({title:"提示",content:"是否返回活动页？",success:function(t){t.confirm&&uni.navigateBack()}}),console.log(t)})).catch((function(t){uni.hideLoading(),console.log(t)}))},setImg:function(t,o,e,a){console.log(t),this.form.upImg=t[0].response.data.url,console.log(this.form.upImg)}}};o.default=r},"53f3":function(t,o,e){var a=e("24fb");o=a(!1),o.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/.box[data-v-5e72f3ea]{padding-bottom:%?70?%}.fromData[data-v-5e72f3ea]{background-color:#fff;border-radius:%?10?%;margin:%?30?%;padding:0 %?20?%}.upButtom[data-v-5e72f3ea]{background:#d7272b;color:#fff;font-size:%?32?%;font-weight:700;text-align:center;padding:%?20?% 0;position:fixed;bottom:0;left:0;right:0}',""]),t.exports=o},"58f7":function(t,o,e){"use strict";e.r(o);var a=e("baba"),n=e("6abf");for(var i in n)"default"!==i&&function(t){e.d(o,t,(function(){return n[t]}))}(i);e("6afc");var u,c=e("f0c5"),r=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"5e72f3ea",null,!1,a["a"],u);o["default"]=r.exports},"6abf":function(t,o,e){"use strict";e.r(o);var a=e("0d92"),n=e.n(a);for(var i in a)"default"!==i&&function(t){e.d(o,t,(function(){return a[t]}))}(i);o["default"]=n.a},"6afc":function(t,o,e){"use strict";var a=e("6baa"),n=e.n(a);n.a},"6baa":function(t,o,e){var a=e("53f3");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=e("4f06").default;n("58e918b4",a,!0,{sourceMap:!1,shadowMode:!1})},baba:function(t,o,e){"use strict";e.d(o,"b",(function(){return n})),e.d(o,"c",(function(){return i})),e.d(o,"a",(function(){return a}));var a={uForm:e("0039").default,uFormItem:e("dcfc").default,uInput:e("cb52").default,uUpload:e("8b65").default,uActionSheet:e("6324").default},n=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("v-uni-view",{staticClass:"box"},[e("v-uni-view",{staticClass:"fromData"},[e("u-form",{ref:"uForm",attrs:{model:t.form}},[e("u-form-item",{attrs:{label:"姓名"}},[e("u-input",{attrs:{placeholder:"请输入姓名"},model:{value:t.form.name,callback:function(o){t.$set(t.form,"name",o)},expression:"form.name"}})],1),e("u-form-item",{attrs:{label:"电话"}},[e("u-input",{attrs:{placeholder:"请输入手机号码"},model:{value:t.form.phone,callback:function(o){t.$set(t.form,"phone",o)},expression:"form.phone"}})],1),e("u-form-item",{attrs:{label:"地址"}},[e("u-input",{attrs:{placeholder:"请输入详细地址"},model:{value:t.form.address,callback:function(o){t.$set(t.form,"address",o)},expression:"form.address"}})],1),e("u-form-item",{attrs:{label:"职业"}},[e("u-input",{attrs:{type:"select","select-open":t.showOccupation},on:{click:function(o){arguments[0]=o=t.$handleEvent(o),t.showOccupation=!t.showOccupation}},model:{value:t.form.occupation,callback:function(o){t.$set(t.form,"occupation",o)},expression:"form.occupation"}})],1),e("u-form-item",{attrs:{label:"简介"}},[e("u-input",{attrs:{placeholder:"请输入简介",maxlength:"200",type:"textarea"},model:{value:t.form.detail,callback:function(o){t.$set(t.form,"detail",o)},expression:"form.detail"}})],1),e("u-form-item",{attrs:{label:"头像"}},[e("u-upload",{attrs:{"max-count":"1",action:t.upUrl,header:t.upHeader},on:{"on-uploaded":function(o){arguments[0]=o=t.$handleEvent(o),t.setImg.apply(void 0,arguments)}}})],1)],1)],1),e("csmess"),e("u-action-sheet",{attrs:{list:t.occupationList},on:{click:function(o){arguments[0]=o=t.$handleEvent(o),t.changeOccupation.apply(void 0,arguments)}},model:{value:t.showOccupation,callback:function(o){t.showOccupation=o},expression:"showOccupation"}}),e("v-uni-view",{staticClass:"upButtom",on:{click:function(o){arguments[0]=o=t.$handleEvent(o),t.submit.apply(void 0,arguments)}}},[t._v("提交申请")])],1)},i=[]}}]);