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 lines
5.2 KiB
1 lines
5.2 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-phone"],{"1bbf":function(e,t,n){var r=n("8a5a");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=n("4f06").default;a("bef621fa",r,!0,{sourceMap:!1,shadowMode:!1})},5562:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"mine-pages-phone flex-center flex-column"},[n("v-uni-view",{staticClass:"title c-black"},[e._v("请输入手机号")]),n("v-uni-view",{staticClass:"confirm-btn radius-16"},[n("v-uni-input",{staticClass:"item-input flex-y-center pl-lg pr-lg f-sm-title c-title",attrs:{type:"number","placeholder-class":"c-placeholder",placeholder:e.rule[0].errorMsg},model:{value:e.subForm.phone,callback:function(t){e.$set(e.subForm,"phone",t)},expression:"subForm.phone"}})],1),n("v-uni-view",{staticClass:"confirm-btn flex-center f-sm-title text-bold c-base radius-16",style:{background:e.subForm.phone.length>0?e.primaryColor:"#CCE9DD"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.submit.apply(void 0,arguments)}}},[e._v("下一步")])],1)},a=[]},"8a5a":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.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/* 文章场景相关 */uni-page-body[data-v-787b876a]{background:#fff}body.?%PAGE?%[data-v-787b876a]{background:#fff}.mine-pages-phone .title[data-v-787b876a]{font-size:%?54?%;margin:%?80?% 0}.mine-pages-phone .confirm-btn[data-v-787b876a]{width:%?630?%;height:%?110?%;background:#f7f7f7;margin-top:%?40?%}.mine-pages-phone .confirm-btn .item-input[data-v-787b876a]{height:%?110?%}',""]),e.exports=t},ad60:function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("d81d");var a=r(n("5530")),o=r(n("c7eb")),i=r(n("1da1")),u=n("26cb"),s={data:function(){return{isLoad:!1,options:{},subForm:{phone:""},rule:[{name:"phone",checkType:"isMobile",errorMsg:"请输入手机号",regText:"手机号"}],lockTap:!1}},computed:(0,u.mapState)({primaryColor:function(e){return e.config.configInfo.primaryColor},subColor:function(e){return e.config.configInfo.subColor}}),onLoad:function(e){var t=this;return(0,i.default)((0,o.default)().mark((function e(){return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$util.setNavigationBarColor({bg:t.primaryColor});case 1:case"end":return e.stop()}}),e)})))()},methods:(0,a.default)((0,a.default)((0,a.default)({},(0,u.mapActions)(["getUserInfo"])),(0,u.mapMutations)(["updateUserItem"])),{},{initIndex:function(){return(0,i.default)((0,o.default)().mark((function e(){return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()},validate:function(e){var t=new this.$util.Validate;this.rule.map((function(n){var r=n.name;t.add(e[r],n)}));var n=t.start();return n},submit:function(){var e=this;return(0,i.default)((0,o.default)().mark((function t(){var n,r;return(0,o.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.$util.deepCopy(e.subForm),r=e.validate(n),!r){t.next=5;break}return e.$util.showToast({title:r}),t.abrupt("return");case 5:if(!e.lockTap){t.next=7;break}return t.abrupt("return");case 7:return e.lockTap=!0,e.$util.showLoading(),t.prev=9,t.next=12,e.$api.user.sendShortMsg(n);case 12:e.$util.hideAll(),e.lockTap=!1,setTimeout((function(){e.$util.goUrl({url:"/user/pages/phone-code?phone=".concat(n.phone)})}),1e3),t.next=20;break;case 17:t.prev=17,t.t0=t["catch"](9),setTimeout((function(){e.lockTap=!1,e.$util.hideAll()}),2e3);case 20:case"end":return t.stop()}}),t,null,[[9,17]])})))()}})};t.default=s},bc00:function(e,t,n){"use strict";n.r(t);var r=n("5562"),a=n("e35b");for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("e0ee");var i=n("f0c5"),u=Object(i["a"])(a["default"],r["b"],r["c"],!1,null,"787b876a",null,!1,r["a"],void 0);t["default"]=u.exports},e0ee:function(e,t,n){"use strict";var r=n("1bbf"),a=n.n(r);a.a},e35b:function(e,t,n){"use strict";n.r(t);var r=n("ad60"),a=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t["default"]=a.a}}]); |