phonebinding.e996a7a2ad9ac1f5fb0b.js 5.1 KB

1
  1. webpackJsonp([11],{117:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{telphone:""},data:function(){return{msg:"获取验证码",user:JSON.parse(localStorage.getItem("user")),disableds:!1}},computed:{dis:function(e){return e}},methods:{ok:function(){},click:function(){this.getCode(this.telphone)},getCode:function(e){var t=this;this.disableds=!0,this.$http.get(HTTPS+"work/Public/?service=User.verificationCodeByPhone&telphone="+e+"&token="+this.user.token,{timeout:3e4}).then(function(e){if(200==e.body.ret){t.msg=59;var u=setInterval(function(){0==--t.msg&&(clearInterval(u),t.msg="获取验证码",t.disableds=!1)},1e3);mui.toast("获取验证码成功")}else mui.toast(resMsg(e.body.msg)),t.disableds=!1},function(e){t.disableds=!1,toast("网络连接失败")})}}}},142:function(e,t){},151:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,u=e._self._c||t;return u("button",{staticClass:"count",attrs:{disabled:e.disableds},on:{click:e.click}},[e._v(e._s(e.msg)),"number"==typeof e.msg?u("span",[e._v("s后重试")]):e._e()])},staticRenderFns:[]}},157:function(e,t,u){function n(e){u(142)}var o=u(0)(u(117),u(151),n,null,null);e.exports=o.exports},192:function(e,t,u){function n(e){u(303)}var o=u(0)(u(234),u(346),n,null,null);e.exports=o.exports},210:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(1),o=u(192),s=u.n(o),i=u(2);n.default.config.productionTip=!1,n.default.use(i.a),window.HTTPS="https://devel.skylinuav.com/",new n.default({el:"#app",template:"<App/>",components:{App:s.a}})},221:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{value:"",inType:"",placeholder:""},data:function(){return{value1:""}},methods:{},mounted:function(){this.value1=this.value},components:{},watch:{value:function(e){this.value1=e},value1:function(e){var t=/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|[\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|[\ud83c[\ude32-\ude3a]|[\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g;t.test(e)&&(this.value1=e.replace(t,""),this.$emit("input",e.replace(t,"")))}},filters:{}}},234:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(367),o=u.n(n),s=u(157),i=u.n(s);t.default={components:{winput:o.a,countDown:i.a},data:function(){return{time:"",telphone:"",code:"",user:JSON.parse(localStorage.getItem("user"))}},methods:{bingingPhone:function(){var e=this;if(""==this.telphone)return void toast("请输入手机号");if(""==this.code)return void toast("请输入验证码");try{this.$http.get(HTTPS+"work/Public/?service=User.loginWithWechat&wechatId="+this.user.unionid+"&wechatCode="+this.user.code+"&telphoneCode="+this.code+"&telphone="+this.telphone,{timeout:3e4}).then(function(t){200==t.body.ret?(toast("手机号码绑定成功"),e.$router.go(-1)):toast(resMsg(t.body.msg))},function(e){toast("网络连接失败")})}catch(e){alert(e)}}},watch:{}}},303:function(e,t){},307:function(e,t){},346:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,u=e._self._c||t;return u("div",{staticClass:"page history rephone",attrs:{id:"rephone"}},[u("div",{staticClass:"scroll"},[u("div",{staticClass:"bx"},[u("div",{staticClass:"add-item vux-1px-b"},[u("div"),e._v(" "),u("div",[e._v("手机")]),e._v(" "),u("div",[u("input",{directives:[{name:"model",rawName:"v-model",value:e.telphone,expression:"telphone"}],attrs:{type:"tel",placeholder:"请填写手机号码"},domProps:{value:e.telphone},on:{input:function(t){t.target.composing||(e.telphone=t.target.value)}}})]),e._v(" "),u("div")])]),e._v(" "),u("div",{staticClass:"bx "},[u("div",{staticClass:"add-item "},[u("div"),e._v(" "),u("div",[e._v("验证码")]),e._v(" "),u("div",[u("input",{directives:[{name:"model",rawName:"v-model",value:e.code,expression:"code"}],attrs:{type:"",placeholder:"请填写验证码"},domProps:{value:e.code},on:{input:function(t){t.target.composing||(e.code=t.target.value)}}})]),e._v(" "),u("div",[u("countDown",{attrs:{telphone:e.telphone}})],1)])]),e._v(" "),u("div",{staticClass:"button"},[u("button",{staticClass:"bm",on:{click:e.bingingPhone}},[e._v("提交")])])])])},staticRenderFns:[]}},351:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,u=e._self._c||t;return u("div",[u("input",{directives:[{name:"model",rawName:"v-model",value:e.value1,expression:"value1"}],ref:"input",attrs:{type:"text",placeholder:e.placeholder},domProps:{value:e.value1},on:{input:function(t){t.target.composing||(e.value1=t.target.value)}}})])},staticRenderFns:[]}},367:function(e,t,u){function n(e){u(307)}var o=u(0)(u(221),u(351),n,null,null);e.exports=o.exports},9:function(e,t){}},[210]);