1 line
56 KiB
JavaScript
1 line
56 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-plantGrass-plant_release-index"],{"06e1":function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("5c47"),i("0506");var n=a(i("2634")),o=a(i("2fdc")),c=a(i("9b1b")),s=a(i("1ab3")),r=i("02aa"),d=i("672a"),u=i("8f59"),l=i("96e0"),f=a(i("283c")),h={props:{isCommuity:{type:Boolean,default:!1}},mixins:[s.default],components:{Verify:f.default},data:function(){return{phone:"",captcha:"",key:"",codeVal:"",popup:{show:!1}}},computed:(0,c.default)((0,c.default)({},(0,u.mapGetters)(["isLogin","viewColor"])),(0,l.configMap)(["wechat_phone_switch"])),onLoad:function(){},methods:{closePopup:function(){this.$emit("close")},editPwd:function(){var t=this;return t.phone?/^1(3|4|5|7|8|9|6)\d{9}$/i.test(t.phone)?t.captcha?void(0,r.bindingPhone)({phone:t.phone,sms_code:t.captcha}).then((function(e){return void 0!==e.data&&e.data.is_bind?uni.showModal({title:"是否绑定手机号",content:e.message,confirmText:"绑定",success:function(e){if(e.confirm)(0,r.bindingPhone)({phone:t.phone,captcha:t.captcha,step:1}).then((function(e){return t.$emit("close"),t.$util.Tips({title:e.message,icon:"success"})})).catch((function(e){return t.$util.Tips({title:e})}));else if(e.cancel)return t.$util.Tips({title:"您已取消绑定!"},{tab:5,url:"/pages/users/user_info/index"})}}):t.$emit("close"),t.$util.Tips({title:"绑定成功!",icon:"success"})})).catch((function(e){return t.$util.Tips({title:e})})):t.$util.Tips({title:"请填写验证码"}):t.$util.Tips({title:"请输入正确的手机号码!"}):t.$util.Tips({title:"请输入手机号码!"})},code:function(t){var e=this;return(0,o.default)((0,n.default)().mark((function i(){var a;return(0,n.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(a=e,a.phone){i.next=3;break}return i.abrupt("return",a.$util.Tips({title:"请填写手机号码!"}));case 3:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(a.phone)){i.next=5;break}return i.abrupt("return",a.$util.Tips({title:"请输入正确的手机号码!"}));case 5:return e.disabled=!0,i.next=8,(0,d.registerVerify)({phone:a.phone,key:a.key,code:a.captcha,type:"binding",captchaType:"blockPuzzle",captchaVerification:t.captchaVerification}).then((function(t){e.disabled=!1,a.$util.Tips({title:t.message}),a.sendCode()})).catch((function(t){return e.disabled=!1,a.$util.Tips({title:t})}));case 8:case"end":return i.stop()}}),i)})))()},success:function(t){this.$refs.verify.hide(),this.code(t)},handleVerify:function(){return this.phone?/^1(3|4|5|7|8|9|6)\d{9}$/i.test(this.phone)?void this.$refs.verify.show():this.$util.Tips({title:"请输入正确的手机号码!"}):this.$util.Tips({title:"请填写手机号码!"})}}};e.default=h},"1ab3":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{disabled:!1,text:"获取验证码"}},methods:{sendCode:function(){var t=this;if(!this.disabled){this.disabled=!0;var e=60;this.text="剩余 "+e+"s";var i=setInterval((function(){e-=1,e<0&&clearInterval(i),t.text="剩余 "+e+"s",t.text<"剩余 0s"&&(t.disabled=!1,t.text="重新获取")}),1e3)}}}};e.default=a},"1d8c":function(t,e,i){var a=i("53307");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("2d9e0f28",a,!0,{sourceMap:!1,shadowMode:!1})},"204b":function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * <EFBFBD>
|