123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/set/phone" ], {
- 133: function(n, t, e) {
- (function(n) {
- function t(n) {
- return n && n.__esModule ? n : {
- default: n
- };
- }
- e(4), t(e(2)), n(t(e(134)).default);
- }).call(this, e(1).createPage);
- },
- 134: function(n, t, e) {
- e.r(t);
- var o = e(135), r = e(137);
- for (var c in r) "default" !== c && function(n) {
- e.d(t, n, function() {
- return r[n];
- });
- }(c);
- e(139);
- var i = e(13), u = Object(i.default)(r.default, o.render, o.staticRenderFns, !1, null, null, null, !1, o.components, void 0);
- u.options.__file = "pages/set/phone.vue", t.default = u.exports;
- },
- 135: function(n, t, e) {
- e.r(t);
- var o = e(136);
- e.d(t, "render", function() {
- return o.render;
- }), e.d(t, "staticRenderFns", function() {
- return o.staticRenderFns;
- }), e.d(t, "recyclableRender", function() {
- return o.recyclableRender;
- }), e.d(t, "components", function() {
- return o.components;
- });
- },
- 136: function(n, t, e) {
- e.r(t), e.d(t, "render", function() {
- return o;
- }), e.d(t, "staticRenderFns", function() {
- return c;
- }), e.d(t, "recyclableRender", function() {
- return r;
- }), e.d(t, "components", function() {});
- var o = function() {
- var n = this;
- n.$createElement;
- n._self._c, n._isMounted || (n.e0 = function(t) {
- !n.loding && n.confirm();
- });
- }, r = !1, c = [];
- o._withStripped = !0;
- },
- 137: function(n, t, e) {
- e.r(t);
- var o = e(138), r = e.n(o);
- for (var c in o) "default" !== c && function(n) {
- e.d(t, n, function() {
- return o[n];
- });
- }(c);
- t.default = r.a;
- },
- 138: function(n, t, e) {
- (function(n) {
- function o(n, t) {
- var e = Object.keys(n);
- if (Object.getOwnPropertySymbols) {
- var o = Object.getOwnPropertySymbols(n);
- t && (o = o.filter(function(t) {
- return Object.getOwnPropertyDescriptor(n, t).enumerable;
- })), e.push.apply(e, o);
- }
- return e;
- }
- function r(n, t, e) {
- return t in n ? Object.defineProperty(n, t, {
- value: e,
- enumerable: !0,
- configurable: !0,
- writable: !0
- }) : n[t] = e, n;
- }
- Object.defineProperty(t, "__esModule", {
- value: !0
- }), t.default = void 0;
- var c = e(37), i = e(6), u = e(46), a = {
- data: function() {
- return {
- time: "",
- countDown: 0,
- account: "",
- captcha: "",
- password: "",
- loding: !1,
- show: !0
- };
- },
- watch: {
- countDown: function(n) {
- 0 == n && clearInterval(this.time);
- }
- },
- computed: function(n) {
- for (var t = 1; t < arguments.length; t++) {
- var e = null != arguments[t] ? arguments[t] : {};
- t % 2 ? o(Object(e), !0).forEach(function(t) {
- r(n, t, e[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(e)) : o(Object(e)).forEach(function(t) {
- Object.defineProperty(n, t, Object.getOwnPropertyDescriptor(e, t));
- });
- }
- return n;
- }({}, (0, i.mapState)("user", [ "userInfo" ])),
- onLoad: function() {
- null == this.userInfo.phone ? this.account = "" : (this.account = this.userInfo.phone,
- this.show = !1);
- },
- methods: {
- verification: function() {
- var n = this;
- if ("" != this.account) {
- if (/(^1[1|2|3|4|5|6|7|8|9][0-9]{9}$)/.test(this.account)) return !(n.countDown > 0) && (n.countDown = 60,
- n.time = setInterval(function() {
- n.countDown--;
- }, 1e3), void (0, c.verify)({
- phone: n.account,
- type: "BDING_CODE"
- }).then(function(n) {
- n.data;
- }).catch(function(n) {
- console.log(n);
- }));
- this.$api.msg("请输入正确的手机号");
- } else this.$api.msg("请输入电话号码");
- },
- confirm: function(t) {
- var e = this;
- this.loding = !0, (0, u.binding)({
- phone: this.account,
- captcha: this.captcha
- }).then(function(t) {
- t.data, e.loding = !1, e.$api.msg("绑定成功!"), setTimeout(function() {
- n.switchTab({
- url: "/pages/user/user"
- });
- }, 1e3);
- }).catch(function(n) {
- e.loding = !1, console.log(n);
- });
- }
- }
- };
- t.default = a;
- }).call(this, e(1).default);
- },
- 139: function(n, t, e) {
- e.r(t);
- var o = e(140), r = e.n(o);
- for (var c in o) "default" !== c && function(n) {
- e.d(t, n, function() {
- return o[n];
- });
- }(c);
- t.default = r.a;
- },
- 140: function(n, t, e) {}
- }, [ [ 133, "common/runtime", "common/vendor" ] ] ]);
|