1 line
86 KiB
JavaScript
1 line
86 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-plant_grass-index","pages-plantGrass-plant_featured-index~pages-plantGrass-plant_search_list-index~pages-plantGrass-plan~9cdfefc2","pages-plantGrass-plant_detail-index~pages-short_video-nvueSwiper-index"],{"041a":function(t,e,i){"use strict";var a=i("96a6"),n=i.n(a);n.a},"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")),s=a(i("9b1b")),r=a(i("1ab3")),c=i("02aa"),l=i("672a"),d=i("8f59"),u=i("96e0"),f=a(i("283c")),p={props:{isCommuity:{type:Boolean,default:!1}},mixins:[r.default],components:{Verify:f.default},data:function(){return{phone:"",captcha:"",key:"",codeVal:"",popup:{show:!1}}},computed:(0,s.default)((0,s.default)({},(0,d.mapGetters)(["isLogin","viewColor"])),(0,u.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,c.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,c.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,l.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=p},"082b":function(t,e,i){var a=i("2876");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("6573d506",a,!0,{sourceMap:!1,shadowMode:!1})},"17be":function(t,e,i){"use strict";var a=i("e613"),n=i.n(a);n.a},"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},"1c8d":function(t,e,i){"use strict";i.r(e);var a=i("d8fa"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},"1d7e":function(t,e,i){"use strict";i.r(e);var a=i("8e2b"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["
|