pages-bind_mobile-bind_mobile.425899a4.js 5.9 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-bind_mobile-bind_mobile"],{"0a14":function(e,t,i){"use strict";i.r(t);var n=i("3aae"),o=i.n(n);for(var d in n)["default"].indexOf(d)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(d);t["default"]=o.a},"30ed":function(e,t,i){var n=i("c86c");t=n(!1),t.push([e.i,"@charset \"UTF-8\";\n/* 颜色变量 */\n/** S Font's size **/\n/** E Font's size **/[data-v-759dfcf5]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}uni-page-body[data-v-759dfcf5]{background:#fff;padding:0}body.?%PAGE?%[data-v-759dfcf5]{background:#fff}.bind-mobile[data-v-759dfcf5]{padding:%?20?% %?30?%;text-align:center}.bind-mobile .avatar[data-v-759dfcf5]{margin:%?200?% 0 %?60?%;display:inline-block;width:%?120?%;height:%?120?%;border-radius:50%;border:1px solid #eee;overflow:hidden}.bind-mobile .input-wrap .input[data-v-759dfcf5]{padding-top:%?20?%}.bind-mobile .sms-btn[data-v-759dfcf5]{text-align:center;border:1px solid;width:%?176?%;height:%?60?%;line-height:%?60?%;border-radius:%?60?%}.red_theme .bind-mobile .sms-btn[data-v-759dfcf5]{color:#ff2c3c}.orange_theme .bind-mobile .sms-btn[data-v-759dfcf5]{color:#f7971e}.pink_theme .bind-mobile .sms-btn[data-v-759dfcf5]{color:#fa444d}.gold_theme .bind-mobile .sms-btn[data-v-759dfcf5]{color:#e0a356}.blue_theme .bind-mobile .sms-btn[data-v-759dfcf5]{color:#2f80ed}.green_theme .bind-mobile .sms-btn[data-v-759dfcf5]{color:#2ec840}.red_theme .bind-mobile .sms-btn[data-v-759dfcf5]{border-color:#ff2c3c}.orange_theme .bind-mobile .sms-btn[data-v-759dfcf5]{border-color:#f7971e}.pink_theme .bind-mobile .sms-btn[data-v-759dfcf5]{border-color:#fa444d}.gold_theme .bind-mobile .sms-btn[data-v-759dfcf5]{border-color:#e0a356}.blue_theme .bind-mobile .sms-btn[data-v-759dfcf5]{border-color:#2f80ed}.green_theme .bind-mobile .sms-btn[data-v-759dfcf5]{border-color:#2ec840}.bind-mobile .confirm-btn[data-v-759dfcf5]{margin-top:%?80?%}.red_theme .bind-mobile .confirm-btn[data-v-759dfcf5]{background-color:#ff2c3c}.orange_theme .bind-mobile .confirm-btn[data-v-759dfcf5]{background-color:#f7971e}.pink_theme .bind-mobile .confirm-btn[data-v-759dfcf5]{background-color:#fa444d}.gold_theme .bind-mobile .confirm-btn[data-v-759dfcf5]{background-color:#e0a356}.blue_theme .bind-mobile .confirm-btn[data-v-759dfcf5]{background-color:#2f80ed}.green_theme .bind-mobile .confirm-btn[data-v-759dfcf5]{background-color:#2ec840}.bind-mobile .bind-btn[data-v-759dfcf5]{margin-top:%?80?%;background:#09bb07}",""]),e.exports=t},"3aae":function(e,t,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("5c47"),i("a1c1"),i("45da");var o=n(i("9b1b")),d=i("e585"),a=i("8f59"),c=(i("bb87"),n(i("00b8"))),r=i("30a2"),f={data:function(){return{mobile:"",code:"",codeTips:"",wxCode:"",isBind:!1}},methods:(0,o.default)((0,o.default)({},(0,a.mapMutations)(["logout"])),{},{codeChange:function(e){this.codeTips=e},bindMobile:function(){var e=this,t=this.mobile,i=this.code;t?i?(0,d.apiBindMobile)({mobile:t,code:i}).then((function(t){e.bindSuccess()})):this.$toast({title:"请输入验证码"}):this.$toast({title:"请输入手机号"})},sendSMS:function(){var e=this;this.$refs.uCode.canGetCode&&(this.mobile?(0,d.apiBindMobileCaptcha)({mobile:this.mobile}).then((function(t){e.$refs.uCode.start()})):this.$toast({title:"请输入手机号"}))},bindSuccess:function(){var e=this;this.isBind=!0;this.$Route.query.type;setTimeout((function(){var t=getCurrentPages().length;t>1?e.$Router.back(1,{success:function(){var e=currentPage(),t=e.onLoad,i=e.options;t&&t(i)}}):c.default.get(r.BACK_URL)?e.$Router.replace(c.default.get(r.BACK_URL)):e.$Router.replaceAll("/pages/index/index")}),1500)}}),computed:(0,o.default)({},(0,a.mapGetters)(["appConfig"])),onUnload:function(){this.isBind||this.logout()}};t.default=f},"818a":function(e,t,i){"use strict";i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return d})),i.d(t,"a",(function(){return n}));var n={uField:i("d74b").default,uVerificationCode:i("98f4").default},o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"pages",class:e.themeName},[i("v-uni-view",{staticClass:"bind-mobile"},[i("v-uni-view",[i("v-uni-view",{staticClass:"input-wrap"},[i("v-uni-view",{staticClass:"input"},[i("u-field",{attrs:{"label-width":"160",label:"手机号",placeholder:"请输入手机号","input-border":!1},model:{value:e.mobile,callback:function(t){e.mobile=t},expression:"mobile"}})],1),i("v-uni-view",{staticClass:"input"},[i("u-field",{attrs:{"label-width":"160",label:"短信验证码",placeholder:"请输入验证码","input-border":!1},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}},[i("v-uni-view",{attrs:{slot:"right"},slot:"right"},[i("v-uni-view",{staticClass:"sms-btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.sendSMS.apply(void 0,arguments)}}},[i("u-verification-code",{ref:"uCode",attrs:{"unique-key":"login"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.codeChange.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"xs"},[e._v(e._s(e.codeTips))])],1)],1)],1)],1)],1),i("v-uni-button",{staticClass:"confirm-btn white br60",attrs:{size:"lg"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.bindMobile.apply(void 0,arguments)}}},[e._v("确定")])],1)],1)],1)},d=[]},d5c63:function(e,t,i){"use strict";i.r(t);var n=i("818a"),o=i("0a14");for(var d in o)["default"].indexOf(d)<0&&function(e){i.d(t,e,(function(){return o[e]}))}(d);i("ffed");var a=i("828b"),c=Object(a["a"])(o["default"],n["b"],n["c"],!1,null,"759dfcf5",null,!1,n["a"],void 0);t["default"]=c.exports},e402:function(e,t,i){var n=i("30ed");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=i("967d").default;o("55821600",n,!0,{sourceMap:!1,shadowMode:!1})},ffed:function(e,t,i){"use strict";var n=i("e402"),o=i.n(n);o.a}}]);