连云港陪玩陪聊
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.
 
 
 
 
 
 
chunwan/unpackage/dist/build/web/static/js/pages-users-renzheng-phone....

1 lines
6.4 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-renzheng-phone"],{"0f19":function(t,n,e){"use strict";var o=e("586e"),i=e.n(o);i.a},"353a":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){}));var o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",{staticClass:"phone"},[e("v-uni-view",{staticClass:"titlle"},[t._v("提示:")]),e("v-uni-view",{staticClass:"tips"},[t._v("请输入登录APP的手机号进行认证")]),e("v-uni-view",{staticClass:"phone-bd"},[e("v-uni-view",{staticClass:"item"},[e("v-uni-view",{staticClass:"txt"},[t._v("手机号")]),e("v-uni-input",{attrs:{placeholder:"请输入手机号",type:"number"},model:{value:t.phone,callback:function(n){t.phone=n},expression:"phone"}})],1),e("v-uni-view",{staticClass:"item"},[e("v-uni-view",{staticClass:"txt"},[t._v("验证码")]),e("v-uni-input",{attrs:{placeholder:"请输入短信验证码",type:"number"},model:{value:t.code,callback:function(n){t.code=n},expression:"code"}}),e("v-uni-view",{staticClass:"code",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.sendCode()}}},[t._v(t._s(60==t.count?"获取验证码":t.count+"s"))])],1)],1),e("v-uni-view",{staticClass:"phone-fd"},[e("v-uni-view",{staticClass:"btn",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.toReg()}}},[t._v("确定")])],1)],1)},i=[]},"3c34":function(t,n,e){"use strict";e.r(n);var o=e("e6c0"),i=e.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a},"586e":function(t,n,e){var o=e("cafa");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=e("967d").default;i("05564430",o,!0,{sourceMap:!1,shadowMode:!1})},c913:function(t,n,e){"use strict";e.r(n);var o=e("353a"),i=e("3c34");for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e("0f19");var r=e("828b"),s=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"f216995a",null,!1,o["a"],void 0);n["default"]=s.exports},cafa:function(t,n,e){var o=e("c86c");n=o(!1),n.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.phone[data-v-f216995a]{padding:%?25?%;overflow:hidden}.phone .title[data-v-f216995a]{color:#222;font-weight:500;font-size:%?30?%}.phone .tips[data-v-f216995a]{font-weight:500;font-size:%?24?%;color:#999;margin-top:%?20?%}.phone-fd[data-v-f216995a]{width:100%;position:fixed;left:0;bottom:%?50?%;z-index:22}.phone-fd .btn[data-v-f216995a]{width:%?700?%;line-height:%?98?%;background:linear-gradient(0deg,#000,#3d3b38);border-radius:%?98?%;font-weight:400;font-size:%?34?%;text-align:center;color:#fff;margin:0 auto}.phone-bd[data-v-f216995a]{width:100%;overflow:hidden;background:#fff;padding:0 %?30?%;box-sizing:border-box;border-radius:%?20?%;margin-top:%?30?%}.phone-bd .item[data-v-f216995a]{display:flex;align-items:center;border-top:1px solid #eaeaea;padding:%?50?% 0 %?30?%}.phone-bd .item[data-v-f216995a]:first-child{border-top-color:#fff}.phone-bd .item uni-input[data-v-f216995a]{flex:1;font-weight:400;font-size:%?30?%;color:#333;margin-left:%?30?%}.phone-bd .item .code[data-v-f216995a]{width:%?170?%;line-height:%?60?%;background:#000;border-radius:%?60?%;text-align:center;font-weight:500;font-size:%?26?%;color:#fff}',""]),t.exports=n},e6c0:function(t,n,e){"use strict";e("6a54");var o=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("5c47"),e("0506");var i=o(e("2634")),a=o(e("2fdc")),r=null,s={data:function(){return{phone:"",code:"",count:60,isClikc:!0}},methods:{sendCode:function(){var t=this;return(0,a.default)((0,i.default)().mark((function n(){var e,o,a;return(0,i.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e=t,e.phone){n.next=4;break}return uni.showToast({icon:"none",position:"bottom",title:"手机号不能为空!"}),n.abrupt("return");case 4:if(/^1[3456789]\d{9}$/.test(e.phone)){n.next=7;break}return uni.showToast({title:"手机号格式不能为空!",position:"bottom",icon:"none"}),n.abrupt("return");case 7:if(0!=e.isClick){n.next=9;break}return n.abrupt("return");case 9:return n.next=11,e.$api.sendSmsCode({phone:e.phone});case 11:o=n.sent,a=o.code,o.data,o.msg,200==a?(e.isClick=!1,r=setInterval((function(){0==e.count?(clearInterval(r),e.count=60,e.isClick=!0):e.count--}),1e3),uni.showToast({icon:"none",position:"bottom",title:"发送成功"})):e.isClick=!0;case 16:case"end":return n.stop()}}),n)})))()},toReg:function(){var t=this;return(0,a.default)((0,i.default)().mark((function n(){var e,o,a,r;return(0,i.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e=t,e.phone){n.next=4;break}return uni.showToast({icon:"none",position:"bottom",title:"手机号不能为空!"}),n.abrupt("return");case 4:if(/^1[3456789]\d{9}$/.test(e.phone)){n.next=7;break}return uni.showToast({title:"手机号格式不能为空!",position:"bottom",icon:"none"}),n.abrupt("return");case 7:if(e.code){n.next=10;break}return uni.showToast({icon:"none",position:"bottom",title:"验证码不能为空!"}),n.abrupt("return");case 10:return n.next=12,t.$api.phoneAuth({userId:uni.getStorageSync("userInfo").id,code:t.code,phone:t.phone});case 12:o=n.sent,a=o.code,o.data,r=o.msg,200==a?(uni.showToast({title:"提交成功"}),setTimeout((function(){uni.navigateBack({delta:1})}),2e3)):uni.showToast({icon:"none",position:"bottom",title:r});case 17:case"end":return n.stop()}}),n)})))()}}};n.default=s}}]);