pages-applic-applic.917c7916.js 7.7 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-applic-applic"],{"16d0":function(t,e,n){"use strict";var a=n("6d8c"),i=n.n(a);i.a},3848:function(t,e,n){"use strict";n.r(e);var a=n("ae1b"),i=n("97c4");for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("16d0");var o=n("f0c5"),c=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"4c31cfec",null,!1,a["a"],void 0);e["default"]=c.exports},5733:function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/.content[data-v-4c31cfec]{line-height:1;background-color:#ffe1e1;padding-bottom:%?40?%}.content .bgi-box[data-v-4c31cfec]{width:%?750?%}.content .bgi-box .bgi-img[data-v-4c31cfec]{width:%?750?%}.content .center-box[data-v-4c31cfec]{width:%?405?%;background:linear-gradient(0deg,#e73931,#ff4f4f);border-radius:%?10?%;margin:%?-250?% auto 0;z-index:1;position:relative;line-height:%?66?%;text-align:center;font-size:%?30?%;font-weight:500;color:#fff}.content .list-box[data-v-4c31cfec]{width:%?685?%;position:relative;background:#fff;border-radius:29px;margin:%?-33?% auto 0;font-size:%?30?%;font-weight:400;color:#e63931;padding:%?60?% %?0?% %?30?%}.content .list-box .list[data-v-4c31cfec]{display:flex;align-items:center;width:%?542?%;height:%?83?%;border:1px solid #e63931;margin:0 auto %?30?%;padding:0 %?40?%;border-radius:%?83?%}.content .list-box .list .uni-input[data-v-4c31cfec]{color:#ff9797}.content .list-box .list .list-left[data-v-4c31cfec]{width:%?150?%}.content .list-box .list .list-input[data-v-4c31cfec]{flex:1;color:#ff9797}.content .list-box .list .list-input .input-placeholder[data-v-4c31cfec]{color:#ff9797}.content .sub[data-v-4c31cfec]{width:%?660?%;line-height:%?100?%;text-align:center;background:linear-gradient(0deg,#c90f1b,#f14d33);border-radius:%?50?%;font-size:%?36?%;font-weight:400;color:#fff;margin:%?40?% auto 0}.content .sub.action[data-v-4c31cfec]{background-color:#999}',""]),t.exports=e},"6d8c":function(t,e,n){var a=n("5733");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("dcee4134",a,!0,{sourceMap:!1,shadowMode:!1})},"781e":function(t,e,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("ac1f"),n("00b4"),n("99af");var i=a(n("c7eb")),r=a(n("1da1")),o=n("c517"),c={data:function(){this.getDate({format:!0});return{loding:!1,index:0,name:"",sex:"",birthday:"",phone:"",getList:[],array:["男","女"]}},computed:{startDate:function(){return this.getDate("start")},endDate:function(){return this.getDate("end")}},methods:{bindPickerSex:function(t){this.sex=this.array[t.target.value]},join:function(){var t=this;return(0,r.default)((0,i.default)().mark((function e(){var n,a;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t,""!=n.name){e.next=4;break}return n.$api.msg("请输入您的姓名"),e.abrupt("return");case 4:if(""!=n.sex){e.next=7;break}return n.$api.msg("请填写您的性别"),e.abrupt("return");case 7:if(""!=n.birthday){e.next=10;break}return n.$api.msg("请填写您的年月日"),e.abrupt("return");case 10:if(a=/^(\+?0?86-?)?1[\d]\d{9}$/,n.phone!=!a.test(n.phone)){e.next=14;break}return n.$api.msg("请填写正确的手机号码"),e.abrupt("return");case 14:n.loding=!0,(0,o.getList)({name:n.name,sex:n.sex,birthday:n.birthday,phone:n.phone}).then((function(t){console.log(t),uni.navigateTo({url:"../joinSuc/joinSuc"})}));case 16:case"end":return e.stop()}}),e)})))()},bindDateChange:function(t){var e=new Date(t.target.value).getTime(),n=(new Date).getTime(),a=n-e;a<567648e6||a>141912e7?uni.showModal({content:"捐献年龄必须在18至45周岁!",success:function(t){t.confirm}}):this.birthday=t.target.value},getDate:function(t){var e=new Date,n=e.getFullYear(),a=e.getMonth()+1,i=e.getDate();return"start"===t?n-=60:"end"===t&&(n+=2),a=a>9?a:"0"+a,i=i>9?i:"0"+i,"".concat(n,"-").concat(a,"-").concat(i)}}};e.default=c},"86eb":function(t,e,n){t.exports=n.p+"static/img/bgitop.efff07b0.png"},"97c4":function(t,e,n){"use strict";n.r(e);var a=n("781e"),i=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=i.a},ae1b:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"bgi-box"},[a("v-uni-image",{staticClass:"bgi-img",attrs:{src:n("86eb"),mode:"widthFix"}})],1),a("v-uni-view",{staticClass:"center-box"},[t._v("报名参与")]),a("v-uni-view",{staticClass:"list-box"},[a("v-uni-view",{staticClass:"list"},[a("v-uni-view",{staticClass:"list-left"},[t._v("姓名:")]),a("v-uni-input",{staticClass:"list-input",attrs:{type:"text",value:"",placeholder:"请填写您的姓名"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1),a("v-uni-view",{staticClass:"list"},[a("v-uni-view",{staticClass:"list-left"},[t._v("性别:")]),a("v-uni-picker",{staticClass:"list-input",attrs:{value:t.index,range:t.array},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindPickerSex.apply(void 0,arguments)}}},[a("v-uni-text",[t._v(t._s(t.sex||"请选择您的性别"))])],1)],1),a("v-uni-view",{staticClass:"list"},[a("v-uni-view",{staticClass:"list-left"},[t._v("出生年月:")]),a("v-uni-picker",{attrs:{mode:"date",value:t.birthday,start:t.startDate,end:t.endDate},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindDateChange.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"uni-input"},[t._v(t._s(t.birthday||"请选择您的出生日期"))])],1)],1),a("v-uni-view",{staticClass:"list"},[a("v-uni-view",{staticClass:"list-left"},[t._v("联系方式:")]),a("v-uni-input",{staticClass:"list-input",attrs:{type:"text",value:"",placeholder:"请填写您的联系方式"},model:{value:t.phone,callback:function(e){t.phone=e},expression:"phone"}})],1)],1),a("v-uni-view",{staticClass:"sub",class:{action:t.loding},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),!t.loding&&t.join()}}},[t._v("马上报名")])],1)},i=[]},c517:function(t,e,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.add_volunteers=function(t){return(0,i.default)({url:"/api/add_registration",method:"post",data:t})},e.bannerlist=function(t){return(0,i.default)({url:"/api/article/list/1",method:"get",data:t})},e.change_rescue=function(t){return(0,i.default)({url:"/api/change_rescue",method:"get",data:t})},e.getList=function(t){return(0,i.default)({url:"/api/sign_cell",method:"post",data:t})},e.getNumber=function(t){return(0,i.default)({url:"/api/get_rescuer",method:"get",data:t})},e.getdis=function(t){return(0,i.default)({url:"/api/getdis",method:"get",data:t})},e.getrescue=function(t){return(0,i.default)({url:"/api/rescueee",method:"get",data:t})},e.getseek=function(t){return(0,i.default)({url:"/api/seek",method:"get",data:t})},e.groom1=function(t){return(0,i.default)({url:"/api/groom/list/1",method:"get",data:t})},e.groom3=function(t){return(0,i.default)({url:"/api/groom/list/3",method:"get",data:t})},e.groom4=function(t){return(0,i.default)({url:"/api/groom/list/4",method:"get",data:t})},e.joinSec=function(t){return(0,i.default)({url:"/api/add_volunteers ",method:"post",data:t})},e.loadIndexs=function(t){return(0,i.default)({url:"/api/index",method:"get",data:t})},e.myCreateCircle=function(t){return(0,i.default)({url:"/api/circle/mycreate",method:"post",data:t})},e.tocall=function(t){return(0,i.default)({url:"/api/do_getdis",method:"get",data:t})};var i=a(n("3b4e"))}}]);