You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
16 KiB
1 line
16 KiB
1 year ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-plantGrass-plant_detail-index~pages-short_video-nvueSwiper-index"],{"0b7d":function(t,i,e){"use strict";e.r(i);var n=e("9aa8"),a=e("852b");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(o);e("72ca");var c=e("f0c5"),s=Object(c["a"])(a["default"],n["b"],n["c"],!1,null,"1129b05c",null,!1,n["a"],void 0);i["default"]=s.exports},"0e37":function(t,i,e){"use strict";e.r(i);var n=e("4f7c"),a=e("5094");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(o);e("c2fc");var c=e("f0c5"),s=Object(c["a"])(a["default"],n["b"],n["c"],!1,null,"3e7d9b82",null,!1,n["a"],void 0);i["default"]=s.exports},"26b3":function(t,i,e){"use strict";e("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n={data:function(){return{disabled:!1,text:"获取验证码"}},methods:{sendCode:function(){var t=this;if(!this.disabled){this.disabled=!0;var i=60;this.text="剩余 "+i+"s";var e=setInterval((function(){i-=1,i<0&&clearInterval(e),t.text="剩余 "+i+"s",t.text<"剩余 0s"&&(t.disabled=!1,t.text="重新获取")}),1e3)}}}};i.default=n},"29ce":function(t,i,e){var n=e("54f5");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=e("4f06").default;a("55c482e6",n,!0,{sourceMap:!1,shadowMode:!1})},"44c1":function(t,i,e){"use strict";e("7a82");var n=e("4ea4").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=n(e("c7eb")),o=n(e("1da1"));e("ac1f"),e("00b4");var c=n(e("26b3")),s=e("ef5b"),r=e("c6c3"),d=e("26cb"),u=n(e("025b")),l={props:{isCommuity:{type:Boolean,default:!1}},mixins:[c.default],components:{Verify:u.default},data:function(){return{phone:"",captcha:"",isAuto:!1,isShowAuth:!1,key:"",codeVal:"",popup:{show:!1}}},computed:(0,d.mapGetters)(["isLogin","viewColor"]),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,s.bindingPhone)({phone:t.phone,sms_code:t.captcha}).then((function(i){return void 0!==i.data&&i.data.is_bind?uni.showModal({title:"是否绑定手机号",content:i.msg,confirmText:"绑定",success:function(i){if(i.confirm)(0,s.bindingPhone)({phone:t.phone,captcha:t.captcha,step:1}).then((function(i){return t.$emit("close"),t.$util.Tips({title:i.msg,icon:"success"})})).catch((function(i){return t.$util.Tips({title:i})}));else if(i.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(i){return t.$util.Tips({title:i})})):t.$util.Tips({title:"请填写验证码"}):t.$util.Tips({title:"请输入正确的手机号码!"}):t.$util.Tips({title:"请输入手机号码!"})},code:function(t){var i=this;return(0,o.default)((0,a.default)().mark((function e(){var n;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=i,n.phone){e.next=3;break}return e.abrupt("return",n.$util.Tips({title:"请填写手机号码!"}));case 3:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(n.phone)){e.next=5;break}return e.abrupt("return",n.$util.Tips({title:"请输入正确的手机号码!"}));case 5:return i.disabled=!0,e.next=8,(0,r.registerVerify)({phone:n.phone,key:n.key,code:n.captcha,type:"binding",captchaType:"blockPuzzle",captchaVerification:t.captchaVerification}).then((function(t){i.disabled=!1,n.$util.Tips({title:t.msg}),n.sendCode()})).catch((function(t){return i.disabled=!1,n.$util.Tips({title:t})}));case 8:case"end":return e.stop()}}),e)})))()},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:"请填写手机号码!"})}}};i.default=l},"4f7c":function(t,i,e){"use strict";e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return
|