chunk-03b2ddff.374dd8f1.js.map 54 KB

1
  1. {"version":3,"sources":["webpack:///./node_modules/@babel/runtime-corejs2/helpers/esm/asyncToGenerator.js","webpack:///./src/views/user/BindingPhone.vue?62b1","webpack:///src/views/user/BindingPhone.vue","webpack:///./src/views/user/BindingPhone.vue?580c","webpack:///./src/views/user/BindingPhone.vue","webpack:///./src/utils/validate.js","webpack:///./node_modules/@babel/runtime-corejs2/core-js/promise.js","webpack:///./node_modules/regenerator-runtime/runtime.js","webpack:///./src/mixins/SendVerifyCode.js"],"names":["__webpack_require__","d","__webpack_exports__","_asyncToGenerator","_core_js_promise__WEBPACK_IMPORTED_MODULE_0__","_core_js_promise__WEBPACK_IMPORTED_MODULE_0___default","n","asyncGeneratorStep","gen","resolve","reject","_next","_throw","key","arg","info","value","error","done","a","then","fn","self","this","args","arguments","apply","err","undefined","render","_vm","_h","$createElement","_c","_self","staticClass","directives","name","rawName","expression","attrs","type","placeholder","domProps","on","input","$event","target","composing","phone","captcha","class","disabled","click","code","_v","_s","text","confirm","staticRenderFns","BindingPhonevue_type_script_lang_js_","components","props","data","mixins","SendVerifyCode","computed","Object","vuex_esm","mounted","methods","_confirm","asyncToGenerator","regeneratorRuntime","mark","_callee","that","_this","wrap","_context","prev","next","$validator","validate","message","t0","abrupt","dialog","user","res","is_bind","$dialog","mes","msg","opts","txt","color","callback","step","success","$router","replace","catch","stop","_code","_callee2","_context2","sendCode","user_BindingPhonevue_type_script_lang_js_","component","componentNormalizer","bindMessage","field","required","opt","length","C_phpstudy_pro_WWW_CRMEB_H5_tee_node_modules_babel_runtime_corejs2_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_3__","url","email","alpha","pattern","alpha_dash","alpha_num","num","chs","chs_alpha","chs_alpha_num","chs_dash","chs_phone","baseAttr","min","max","range","keys","reduce","attr","_attr","C_phpstudy_pro_WWW_CRMEB_H5_tee_node_modules_babel_runtime_corejs2_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__","concat","module","exports","runtime","Op","prototype","hasOwn","hasOwnProperty","$Symbol","Symbol","iteratorSymbol","iterator","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","toStringTag","innerFn","outerFn","tryLocsList","protoGenerator","Generator","generator","create","context","Context","_invoke","makeInvokeMethod","tryCatch","obj","call","GenStateSuspendedStart","GenStateSuspendedYield","GenStateExecuting","GenStateCompleted","ContinueSentinel","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","getProto","getPrototypeOf","NativeIteratorPrototype","values","Gp","defineIteratorMethods","forEach","method","AsyncIterator","invoke","record","result","Promise","__await","unwrapped","previousPromise","enqueue","callInvokeWithMethodAndArg","state","Error","doneResult","delegate","delegateResult","maybeInvokeDelegate","sent","_sent","dispatchException","TypeError","resultName","nextLoc","pushTryEntry","locs","entry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","iterable","iteratorMethod","isNaN","i","constructor","displayName","isGeneratorFunction","genFun","ctor","setPrototypeOf","__proto__","awrap","async","iter","toString","object","reverse","pop","skipTempReset","charAt","slice","rootEntry","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","accidentalStrictMode","Function","run","setInterval","clearInterval"],"mappings":"kHAAAA,EAAAC,EAAAC,EAAA,sBAAAC,IAAA,IAAAC,EAAAJ,EAAA,QAAAK,EAAAL,EAAAM,EAAAF,GAEA,SAAAG,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,GACA,IACA,IAAAC,EAAAP,EAAAK,GAAAC,GACAE,EAAAD,EAAAC,MACG,MAAAC,GAEH,YADAP,EAAAO,GAIAF,EAAAG,KACAT,EAAAO,GAEIX,EAAAc,EAAQV,QAAAO,GAAAI,KAAAT,EAAAC,GAIG,SAAAT,EAAAkB,GACf,kBACA,IAAAC,EAAAC,KACAC,EAAAC,UACA,WAAepB,EAAAc,EAAQ,SAAAV,EAAAC,GACvB,IAAAF,EAAAa,EAA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tD,IAAAb,EAAAzL,KAAA8L,WAAAQ,GACA,GAAAb,EAAAG,eAGA,OAFA5L,KAAAkO,SAAAzC,EAAAQ,WAAAR,EAAAI,UACAG,EAAAP,GACApC,IAKAtE,MAAA,SAAA2G,GACA,QAAAY,EAAAtM,KAAA8L,WAAAlG,OAAA,EAA8C0G,GAAA,IAAQA,EAAA,CACtD,IAAAb,EAAAzL,KAAA8L,WAAAQ,GACA,GAAAb,EAAAC,WAAA,CACA,IAAAvB,EAAAsB,EAAAQ,WACA,aAAA9B,EAAAjJ,KAAA,CACA,IAAAkN,EAAAjE,EAAA5K,IACAyM,EAAAP,GAEA,OAAA2C,GAMA,UAAAxD,MAAA,0BAGAyD,cAAA,SAAAlC,EAAAd,EAAAC,GAaA,OAZAtL,KAAA8K,SAAA,CACAhD,SAAA8B,EAAAuC,GACAd,aACAC,WAGA,SAAAtL,KAAAgK,SAGAhK,KAAAT,IAAAc,GAGAgJ,IAQAhC,EAvrBA,CA8rB4BD,EAAAC,SAG5B,IACAnE,mBAAAoE,EACC,MAAAgH,GAUDC,SAAA,6BAAAA,CAAAjH,uCCptBe3I,EAAA,MACb6D,KADa,WAEX,MAAO,CACLX,UAAU,EACVK,KAAM,UAGVa,QAAS,CACPqC,SADO,WACI,IAAA9B,EAAAtD,KACT,IAAIA,KAAK6B,SAAT,CACA7B,KAAK6B,UAAW,EAChB,IAAI9C,EAAI,GACRiB,KAAKkC,KAAO,MAAQnD,EAAI,IACxB,IAAMyP,EAAMC,YAAY,WACtB1P,GAAQ,EACJA,EAAI,GACN2P,cAAcF,GAEhBlL,EAAKpB,KAAO,MAAQnD,EAAI,IACpBuE,EAAKpB,KAAO,UACdoB,EAAKzB,UAAW,EAChByB,EAAKpB,KAAO,SAEb","file":"h5/js/chunk-03b2ddff.374dd8f1.js","sourcesContent":["import _Promise from \"../../core-js/promise\";\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n _Promise.resolve(value).then(_next, _throw);\n }\n}\n\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new _Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"ChangePassword\"},[_c('div',{staticClass:\"list\"},[_c('div',{staticClass:\"item\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.phone),expression:\"phone\"}],attrs:{\"type\":\"number\",\"placeholder\":\"填写手机号码\"},domProps:{\"value\":(_vm.phone)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.phone=$event.target.value}}})]),_c('div',{staticClass:\"item acea-row row-between-wrapper\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.captcha),expression:\"captcha\"}],staticClass:\"codeIput\",attrs:{\"type\":\"text\",\"placeholder\":\"填写验证码\"},domProps:{\"value\":(_vm.captcha)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.captcha=$event.target.value}}}),_c('button',{staticClass:\"code font-color-red\",class:_vm.disabled === true ? 'on' : '',attrs:{\"disabled\":_vm.disabled},on:{\"click\":_vm.code}},[_vm._v(\"\\n \"+_vm._s(_vm.text)+\"\\n \")])])]),_c('div',{staticClass:\"confirmBnt bg-color-red\",on:{\"click\":_vm.confirm}},[_vm._v(\"确认绑定\")])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"ChangePassword\">\r\n <div class=\"list\">\r\n <div class=\"item\">\r\n <input type=\"number\" placeholder=\"填写手机号码\" v-model=\"phone\" />\r\n </div>\r\n <div class=\"item acea-row row-between-wrapper\">\r\n <input\r\n type=\"text\"\r\n placeholder=\"填写验证码\"\r\n class=\"codeIput\"\r\n v-model=\"captcha\"\r\n />\r\n <button\r\n class=\"code font-color-red\"\r\n :disabled=\"disabled\"\r\n :class=\"disabled === true ? 'on' : ''\"\r\n @click=\"code\"\r\n >\r\n {{ text }}\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"confirmBnt bg-color-red\" @click=\"confirm\">确认绑定</div>\r\n </div>\r\n</template>\r\n<script>\r\nimport { mapGetters } from \"vuex\";\r\nimport sendVerifyCode from \"@mixins/SendVerifyCode\";\r\nimport { required, alpha_num, chs_phone } from \"@utils/validate\";\r\nimport { validatorDefaultCatch } from \"@utils/dialog\";\r\nimport { registerVerify, bindingPhone } from \"@api/user\";\r\n\r\nexport default {\r\n name: \"BindingPhone\",\r\n components: {},\r\n props: {},\r\n data: function() {\r\n return {\r\n captcha: \"\",\r\n phone: \"\" //手机号\r\n };\r\n },\r\n mixins: [sendVerifyCode],\r\n computed: mapGetters([\"userInfo\"]),\r\n mounted: function() {},\r\n methods: {\r\n async confirm() {\r\n let that = this;\r\n const { phone, captcha } = that;\r\n try {\r\n await that\r\n .$validator({\r\n phone: [\r\n chs_phone(chs_phone.message(\"手机号码\")),\r\n alpha_num(alpha_num.message())\r\n ],\r\n captcha: [\r\n required(required.message(\"验证码\")),\r\n alpha_num(alpha_num.message(\"验证码\"))\r\n ]\r\n })\r\n .validate({ phone, captcha });\r\n } catch (e) {\r\n return validatorDefaultCatch(e);\r\n }\r\n bindingPhone({\r\n phone: this.phone,\r\n captcha: this.captcha\r\n })\r\n .then(res => {\r\n if (res.data !== undefined && res.data.is_bind) {\r\n that.$dialog.confirm({\r\n mes: res.msg,\r\n opts: [\r\n {\r\n txt: \"确认绑定\",\r\n color: false,\r\n callback: () => {\r\n bindingPhone({\r\n phone: this.phone,\r\n captcha: this.captcha,\r\n step: 1\r\n })\r\n .then(res => {\r\n that.$dialog.success(res.msg).then(() => {\r\n that.$router.replace({ name: \"PersonalData\" });\r\n });\r\n })\r\n .catch(res => {\r\n that.$dialog.error(res.msg).then(() => {\r\n that.$router.replace({ name: \"PersonalData\" });\r\n });\r\n });\r\n }\r\n },\r\n {\r\n txt: \"取消\",\r\n color: false,\r\n callback: () => {\r\n that.$dialog.error(\"已取消绑定\").then(() => {\r\n that.$router.replace({ name: \"PersonalData\" });\r\n });\r\n }\r\n }\r\n ]\r\n });\r\n } else {\r\n that.$dialog.success(res.msg).then(() => {\r\n that.$router.replace({ name: \"PersonalData\" });\r\n });\r\n }\r\n })\r\n .catch(res => {\r\n that.$dialog.error(res.msg);\r\n });\r\n },\r\n async code() {\r\n let that = this;\r\n const { phone } = that;\r\n try {\r\n await that\r\n .$validator({\r\n phone: [\r\n required(required.message(\"手机号码\")),\r\n chs_phone(chs_phone.message())\r\n ]\r\n })\r\n .validate({ phone });\r\n } catch (e) {\r\n return validatorDefaultCatch(e);\r\n }\r\n\r\n registerVerify({ phone: phone })\r\n .then(res => {\r\n that.$dialog.success(res.msg);\r\n that.sendCode();\r\n })\r\n .catch(res => {\r\n that.$dialog.error(res.msg);\r\n });\r\n }\r\n }\r\n};\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BindingPhone.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BindingPhone.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./BindingPhone.vue?vue&type=template&id=2799fe93&\"\nimport script from \"./BindingPhone.vue?vue&type=script&lang=js&\"\nexport * from \"./BindingPhone.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","const bindMessage = (fn, message) => {\r\n fn.message = field => message.replace(\"%s\", field || \"\");\r\n};\r\n\r\nexport function required(message, opt = {}) {\r\n return {\r\n required: true,\r\n message,\r\n type: \"string\",\r\n ...opt\r\n };\r\n}\r\n\r\nbindMessage(required, \"请输入%s\");\r\n\r\nexport function url(message, opt = {}) {\r\n return {\r\n type: \"url\",\r\n message,\r\n ...opt\r\n };\r\n}\r\n\r\nbindMessage(url, \"请输入正确的链接\");\r\n\r\nexport function email(message, opt = {}) {\r\n return {\r\n type: \"email\",\r\n message,\r\n ...opt\r\n };\r\n}\r\n\r\nbindMessage(email, \"请输入正确的邮箱地址\");\r\n\r\n/**\r\n * 验证字段必须完全由字母构成。\r\n *\r\n * @param message\r\n * @returns {*}\r\n */\r\nexport function alpha(message) {\r\n return attrs.pattern(/^[\\w]+$/, message);\r\n}\r\n\r\nbindMessage(alpha, \"%s必须是字母\");\r\n\r\n/**\r\n * 只能包含由字母、数字,以及 - 和 _\r\n *\r\n * @param message\r\n * @returns {*}\r\n */\r\nexport function alpha_dash(message) {\r\n return attrs.pattern(/^[\\w\\d_-]+$/, message);\r\n}\r\n\r\nbindMessage(alpha_dash, \"%s只能包含由字母、数字,以及 - 和 _\");\r\n\r\n/**\r\n * 必须是完全是字母、数字\r\n *\r\n * @param message\r\n * @returns {*}\r\n */\r\nexport function alpha_num(message) {\r\n return attrs.pattern(/^[\\w\\d]+$/, message);\r\n}\r\n\r\nbindMessage(alpha_num, \"%s只能包含字母、数字\");\r\n/**\r\n * 正确的金额\r\n *\r\n * @param message\r\n * @returns {*}\r\n */\r\nexport function num(message) {\r\n return attrs.pattern(\r\n /(^[1-9]([0-9]+)?(\\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\\.[0-9]([0-9])?$)/,\r\n message\r\n );\r\n}\r\n\r\nbindMessage(num, \"%s格式不正确\");\r\n\r\n/**\r\n * 只能是汉字\r\n * @param message\r\n * @returns {*}\r\n */\r\nexport function chs(message) {\r\n return attrs.pattern(/^[\\u4e00-\\u9fa5]+$/, message);\r\n}\r\n\r\nbindMessage(chs, \"%s只能是汉字\");\r\n\r\n/**\r\n * 只能包含汉字、字母\r\n * @param message\r\n * @returns {*}\r\n */\r\nexport function chs_alpha(message) {\r\n return attrs.pattern(/^[\\u4e00-\\u9fa5\\w]+$/, message);\r\n}\r\n\r\nbindMessage(chs_alpha, \"%s只能包含汉字、字母\");\r\n\r\n/**\r\n * 只能包含汉字、字母和数字\r\n * @param message\r\n * @returns {*}\r\n */\r\nexport function chs_alpha_num(message) {\r\n return attrs.pattern(/^[\\u4e00-\\u9fa5\\w\\d]+$/, message);\r\n}\r\n\r\nbindMessage(chs_alpha_num, \"%s只能包含汉字、字母和数字\");\r\n\r\n/**\r\n * 只能包含由汉字、字母、数字,以及 - 和 _\r\n * @param message\r\n * @returns {*}\r\n */\r\nexport function chs_dash(message) {\r\n return attrs.pattern(/^[\\u4e00-\\u9fa5\\w\\d-_]+$/, message);\r\n}\r\n\r\nbindMessage(chs_dash, \"%s只能包含由汉字、字母、数字,以及 - 和 _\");\r\n\r\n/**\r\n * 手机号验证\r\n * @param message\r\n * @returns {*}\r\n */\r\nexport function chs_phone(message) {\r\n return attrs.pattern(/^1(3|4|5|7|8|9|6)\\d{9}$/i, message);\r\n}\r\nbindMessage(chs_phone, \"请输入正确的手机号码\");\r\n\r\nconst baseAttr = {\r\n min: \"%s最小长度为:min\",\r\n max: \"%s最大长度为:max\",\r\n length: \"%s长度必须为:length\",\r\n range: \"%s长度为:range\",\r\n pattern: \"$s格式错误\"\r\n};\r\n\r\nconst attrs = Object.keys(baseAttr).reduce((attrs, key) => {\r\n attrs[key] = (attr, message = \"\", opt = {}) => {\r\n const _attr =\r\n key === \"range\" ? { min: attr[0], max: attr[1] } : { [key]: attr };\r\n\r\n return {\r\n message: message.replace(\r\n `:${key}`,\r\n key === \"range\" ? `${attr[0]}-${attr[1]}` : attr\r\n ),\r\n type: \"string\",\r\n ..._attr,\r\n ...opt\r\n };\r\n };\r\n bindMessage(attrs[key], baseAttr[key]);\r\n return attrs;\r\n}, {});\r\n\r\nexport default attrs;\r\n","module.exports = require(\"core-js/library/fn/promise\");","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunctionPrototype[toStringTagSymbol] =\n GeneratorFunction.displayName = \"GeneratorFunction\";\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n prototype[method] = function(arg) {\n return this._invoke(method, arg);\n };\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n if (!(toStringTagSymbol in genFun)) {\n genFun[toStringTagSymbol] = \"GeneratorFunction\";\n }\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return Promise.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return Promise.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new Promise(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList) {\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList)\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n Gp[toStringTagSymbol] = \"Generator\";\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n}\n","export default {\r\n data() {\r\n return {\r\n disabled: false,\r\n text: \"获取验证码\"\r\n };\r\n },\r\n methods: {\r\n sendCode() {\r\n if (this.disabled) return;\r\n this.disabled = true;\r\n let n = 60;\r\n this.text = \"剩余 \" + n + \"s\";\r\n const run = setInterval(() => {\r\n n = n - 1;\r\n if (n < 0) {\r\n clearInterval(run);\r\n }\r\n this.text = \"剩余 \" + n + \"s\";\r\n if (this.text < \"剩余 \" + 0 + \"s\") {\r\n this.disabled = false;\r\n this.text = \"重新获取\";\r\n }\r\n }, 1000);\r\n }\r\n }\r\n};\r\n"],"sourceRoot":""}