1 |
- {"version":3,"sources":["webpack:///./node_modules/core-js/internals/create-html.js","webpack:///./node_modules/core-js/internals/string-html-forced.js","webpack:///./node_modules/core-js/modules/es.string.link.js","webpack:///./components/PcGlobalForm.vue?a66e","webpack:///./components/PcGlobalForm.vue?e610","webpack:///./components/loginDialog.vue?b12a","webpack:///./components/PcGlobalForm.vue?b95a","webpack:///./components/PcGlobalForm.vue","webpack:///./components/PcGlobalForm.vue?eeb0","webpack:///./node_modules/js-base64/base64.mjs","webpack:///./components/loginDialog.vue?1cf5","webpack:///./components/loginDialog.vue","webpack:///./components/loginDialog.vue?f5b8","webpack:///./components/loginDialog.vue?0e0b"],"names":["uncurryThis","requireObjectCoercible","toString","quot","replace","module","exports","string","tag","attribute","value","S","p1","fails","METHOD_NAME","test","toLowerCase","split","length","$","createHTML","target","proto","forced","forcedStringHTMLMethod","link","url","this","name","props","showDeleteBtn","type","Boolean","default","showLoginBtn","showRegisterBtn","formConfig","Array","required","formData","Object","rules","submitLoading","data","flag","methods","submit","_this","$refs","ruleForm","validate","valid","console","log","$emit","close","showPassword","component","_vm","_c","_self","staticClass","ref","attrs","_l","item","key","label","prop","style","width","disabled","placeholder","on","$event","change","model","callback","$$v","$set","expression","_e","_v","staticStyle","slot","maxlength","rows","showWordLimit","multiple","selectList","option","id","parseInt","radios","radio","checkboxs","_s","_t","slotName","nativeOn","apply","arguments","version","VERSION","_hasBuffer","Buffer","_TD","TextDecoder","undefined","_TE","TextEncoder","b64chs","prototype","slice","call","b64tab","a","tab","forEach","c","i","b64re","_fromCC","String","fromCharCode","bind","_U8Afrom","Uint8Array","from","it","_mkUriSafe","src","m0","_tidyB64","s","btoaPolyfill","bin","u32","c0","c1","c2","asc","pad","charCodeAt","TypeError","substring","_btoa","btoa","_fromUint8Array","u8a","strs","l","push","subarray","join","fromUint8Array","urlsafe","cb_utob","cc","re_utob","utob","u","_encode","encode","encodeURI","re_btou","cb_btou","cccc","offset","btou","b","atobPolyfill","u24","r1","r2","charAt","_atob","atob","_toUint8Array","map","toUint8Array","_unURI","_decode","decode","isValid","_noEnum","v","enumerable","writable","configurable","extendString","_add","body","defineProperty","extendUint8Array","extendBuiltins","gBase64","fromBase64","toBase64","encodeURL","Base64","require","components","GlobalForm","dialogXXSuccess","xxContentVisible","xxContent","isRemember","activeName","loginData","email","password","registData","loginFormConfig","autoInput","registFormConfig","long","loginRules","message","trigger","min","max","registRules","confirm_password","company","contacts","last_name","phone","autoComplete","selectAddress","computed","_objectSpread","mapState","dialogWidth","watch","dialogVisible","document","addEventListener","onEnterClick","removeEventListener","window","google","initGoogleMapAutoComplete","getAddrByLocation","setTimeout","mounted","getCookie","mapMutations","e","keyCode","loginForm","registForm","checkRegisterForm","_this2","setCookie","login","regist","_this3","$store","dispatch","then","res","code","closeDialog","$confirm","msg","confirmButtonText","showCancelButton","center","catch","_this4","assign","address","$axios","method","registerEmail","response","_this5","get","error","$message","resetPassword","resetPasswordDialog","resetDialogVisible","openLoginDialog","openDialog","days","date","Date","setTime","getTime","cookie","toGMTString","arr","arr2","toSignatureLink","_this$config$configIn","config","configInfo","open","maps","places","Autocomplete","getElementById","types","componentRestrictions","country","fields","addListener","onPlaceChange","_this6","getPlace","isArray","address_components","includes","long_name","short_name","onInputChange","attr","_this7","navigator","geolocation","location","lat","lng","getCurrentPosition","position","coords","latitude","longitude","Geocoder","geocode","_response$results","results","_vm$config$configInfo","_vm$config$configInfo2","scopedSlots","_u","fn","proxy","image","class","pointer","$e"],"mappings":"8FACA,IAAIA,EAAc,EAAQ,GACtBC,EAAyB,EAAQ,IACjCC,EAAW,EAAQ,IAEnBC,EAAO,KACPC,EAAUJ,EAAY,GAAGI,SAI7BC,EAAOC,QAAU,SAAUC,EAAQC,EAAKC,EAAWC,GACjD,IAAIC,EAAIT,EAASD,EAAuBM,IACpCK,EAAK,IAAMJ,EAEf,MADkB,KAAdC,IAAkBG,GAAM,IAAMH,EAAY,KAAOL,EAAQF,EAASQ,GAAQP,EAAM,UAAY,KACzFS,EAA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A0BsB,YAAY,CAAC,YAAY,OAAO,OAAS,UAAU,MAAQ,QAAQpB,MAAM,CAAC,KAAO,UAAUU,GAAG,CAAC,MAAQ,SAASC,GAAQhB,EAAIF,cAAe,CAAI,GAAG4B,KAAK,UAAU,CAAC1B,EAAIwB,GAAG,SAAwOvB,EAAG,WAAW,CAACI,MAAM,CAAC,GAAKE,EAAKG,KAAO,UAAUK,GAAG,CAAC,OAAS,SAAA8Q,GAAE,OAAI7R,EAAImQ,cAAc0B,EAAItR,EAAKG,KAAK,GAAEQ,MAAM,CAAClE,MAAOgD,EAAI0J,WAAWnJ,EAAKG,MAAOS,SAAS,SAAUC,GAAMpB,EAAIqB,KAAKrB,EAAI0J,WAAYnJ,EAAKG,KAAMU,EAAI,EAAEE,WAAW,4BAA4B,EAAE,IAAG,GAAGtB,EAAIwB,GAAG,KAAKvB,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,YAAY,CAACI,MAAM,CAAC,QAAUL,EAAIhB,eAAe+B,GAAG,CAAC,MAAQf,EAAIkM,oBAAoB,CAAClM,EAAIwB,GAAG,eAAe,GAAGxB,EAAIwB,GAAG,KAAKvB,EAAG,IAAI,CAACE,YAAY,gBAAgB,CAACH,EAAIwB,GAAG,iBAAiB,QAAQ,IAAI,GAAGxB,EAAIwB,GAAG,KAAKvB,EAAG,sBAAsB,CAACG,IAAI,sBAAsBW,GAAG,CAAC,gBAAkBf,EAAIkO,mBAAmBlO,EAAIwB,GAAG,KAAKvB,EAAG,oBAAoB,CAACI,MAAM,CAAC,QAAUL,EAAImJ,iBAAiB,QAAUnJ,EAAIoJ,WAAWrI,GAAG,CAAC,iBAAiB,SAASC,GAAQhB,EAAImJ,iBAAiBnI,CAAM,MAAM,EAC/hD,GACsB,IEOpB,EACA,KACA,WACA,MAIa,UAAAjB,U","file":"b9fb00a.js","sourcesContent":["'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\n\nvar quot = /\"/g;\nvar replace = uncurryThis(''.replace);\n\n// `CreateHTML` abstract operation\n// https://tc39.es/ecma262/#sec-createhtml\nmodule.exports = function (string, tag, attribute, value) {\n var S = toString(requireObjectCoercible(string));\n var p1 = '<' + tag;\n if (attribute !== '') p1 += ' ' + attribute + '=\"' + replace(toString(value), quot, '"') + '\"';\n return p1 + '>' + S + '</' + tag + '>';\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\n// check the existence of a method, lowercase\n// of a tag and escaping quotes in arguments\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n var test = ''[METHOD_NAME]('\"');\n return test !== test.toLowerCase() || test.split('\"').length > 3;\n });\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar createHTML = require('../internals/create-html');\nvar forcedStringHTMLMethod = require('../internals/string-html-forced');\n\n// `String.prototype.link` method\n// https://tc39.es/ecma262/#sec-string.prototype.link\n$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('link') }, {\n link: function link(url) {\n return createHTML(this, 'a', 'href', url);\n }\n});\n","// extracted by extract-css-chunks-webpack-plugin\nmodule.exports = {};","export * from \"-!../node_modules/extract-css-chunks-webpack-plugin/dist/loader.js??ref--7-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/dist/cjs.js??ref--7-oneOf-1-2!../node_modules/sass-loader/dist/cjs.js??ref--7-oneOf-1-3!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./PcGlobalForm.vue?vue&type=style&index=0&id=4b4d0fec&prod&lang=scss&scope=true\"","// extracted by extract-css-chunks-webpack-plugin\nmodule.exports = {};","import mod from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./PcGlobalForm.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./PcGlobalForm.vue?vue&type=script&lang=js\"","\nexport default {\n name: \"GlobalForm\",\n props: {\n showDeleteBtn: {\n type: Boolean,\n default: true,\n },\n showLoginBtn: {\n type: Boolean,\n default: true,\n },\n showRegisterBtn: {\n type: Boolean,\n default: true,\n },\n // 表单配置\n formConfig: {\n type: Array,\n required: true,\n },\n // 表单数据\n formData: {\n type: Object,\n required: true,\n },\n // 表单规则\n rules: {\n type: Object,\n },\n submitLoading: {\n type: Boolean,\n },\n },\n data() {\n return {\n flag: false,\n };\n },\n methods: {\n submit() {\n this.$refs.ruleForm.validate((valid) => {\n if (valid) {\n this.$emit(\"handleSubmit\");\n } else {\n console.log(\"error submit!!\");\n return false;\n }\n });\n },\n close() {\n this.$emit(\"handleClose\");\n },\n showPassword() {\n this.flag = !this.flag;\n },\n },\n};\n","import { render, staticRenderFns } from \"./PcGlobalForm.vue?vue&type=template&id=4b4d0fec\"\nimport script from \"./PcGlobalForm.vue?vue&type=script&lang=js\"\nexport * from \"./PcGlobalForm.vue?vue&type=script&lang=js\"\nimport style0 from \"./PcGlobalForm.vue?vue&type=style&index=0&id=4b4d0fec&prod&lang=scss&scope=true\"\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","/**\n * base64.ts\n *\n * Licensed under the BSD 3-Clause License.\n * http://opensource.org/licenses/BSD-3-Clause\n *\n * References:\n * http://en.wikipedia.org/wiki/Base64\n *\n * @author Dan Kogai (https://github.com/dankogai)\n */\nconst version = '3.7.7';\n/**\n * @deprecated use lowercase `version`.\n */\nconst VERSION = version;\nconst _hasBuffer = typeof Buffer === 'function';\nconst _TD = typeof TextDecoder === 'function' ? new TextDecoder() : undefined;\nconst _TE = typeof TextEncoder === 'function' ? new TextEncoder() : undefined;\nconst b64ch = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\nconst b64chs = Array.prototype.slice.call(b64ch);\nconst b64tab = ((a) => {\n let tab = {};\n a.forEach((c, i) => tab[c] = i);\n return tab;\n})(b64chs);\nconst b64re = /^(?:[A-Za-z\\d+\\/]{4})*?(?:[A-Za-z\\d+\\/]{2}(?:==)?|[A-Za-z\\d+\\/]{3}=?)?$/;\nconst _fromCC = String.fromCharCode.bind(String);\nconst _U8Afrom = typeof Uint8Array.from === 'function'\n ? Uint8Array.from.bind(Uint8Array)\n : (it) => new Uint8Array(Array.prototype.slice.call(it, 0));\nconst _mkUriSafe = (src) => src\n .replace(/=/g, '').replace(/[+\\/]/g, (m0) => m0 == '+' ? '-' : '_');\nconst _tidyB64 = (s) => s.replace(/[^A-Za-z0-9\\+\\/]/g, '');\n/**\n * polyfill version of `btoa`\n */\nconst btoaPolyfill = (bin) => {\n // console.log('polyfilled');\n let u32, c0, c1, c2, asc = '';\n const pad = bin.length % 3;\n for (let i = 0; i < bin.length;) {\n if ((c0 = bin.charCodeAt(i++)) > 255 ||\n (c1 = bin.charCodeAt(i++)) > 255 ||\n (c2 = bin.charCodeAt(i++)) > 255)\n throw new TypeError('invalid character found');\n u32 = (c0 << 16) | (c1 << 8) | c2;\n asc += b64chs[u32 >> 18 & 63]\n + b64chs[u32 >> 12 & 63]\n + b64chs[u32 >> 6 & 63]\n + b64chs[u32 & 63];\n }\n return pad ? asc.slice(0, pad - 3) + \"===\".substring(pad) : asc;\n};\n/**\n * does what `window.btoa` of web browsers do.\n * @param {String} bin binary string\n * @returns {string} Base64-encoded string\n */\nconst _btoa = typeof btoa === 'function' ? (bin) => btoa(bin)\n : _hasBuffer ? (bin) => Buffer.from(bin, 'binary').toString('base64')\n : btoaPolyfill;\nconst _fromUint8Array = _hasBuffer\n ? (u8a) => Buffer.from(u8a).toString('base64')\n : (u8a) => {\n // cf. https://stackoverflow.com/questions/12710001/how-to-convert-uint8-array-to-base64-encoded-string/12713326#12713326\n const maxargs = 0x1000;\n let strs = [];\n for (let i = 0, l = u8a.length; i < l; i += maxargs) {\n strs.push(_fromCC.apply(null, u8a.subarray(i, i + maxargs)));\n }\n return _btoa(strs.join(''));\n };\n/**\n * converts a Uint8Array to a Base64 string.\n * @param {boolean} [urlsafe] URL-and-filename-safe a la RFC4648 §5\n * @returns {string} Base64 string\n */\nconst fromUint8Array = (u8a, urlsafe = false) => urlsafe ? _mkUriSafe(_fromUint8Array(u8a)) : _fromUint8Array(u8a);\n// This trick is found broken https://github.com/dankogai/js-base64/issues/130\n// const utob = (src: string) => unescape(encodeURIComponent(src));\n// reverting good old fationed regexp\nconst cb_utob = (c) => {\n if (c.length < 2) {\n var cc = c.charCodeAt(0);\n return cc < 0x80 ? c\n : cc < 0x800 ? (_fromCC(0xc0 | (cc >>> 6))\n + _fromCC(0x80 | (cc & 0x3f)))\n : (_fromCC(0xe0 | ((cc >>> 12) & 0x0f))\n + _fromCC(0x80 | ((cc >>> 6) & 0x3f))\n + _fromCC(0x80 | (cc & 0x3f)));\n }\n else {\n var cc = 0x10000\n + (c.charCodeAt(0) - 0xD800) * 0x400\n + (c.charCodeAt(1) - 0xDC00);\n return (_fromCC(0xf0 | ((cc >>> 18) & 0x07))\n + _fromCC(0x80 | ((cc >>> 12) & 0x3f))\n + _fromCC(0x80 | ((cc >>> 6) & 0x3f))\n + _fromCC(0x80 | (cc & 0x3f)));\n }\n};\nconst re_utob = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFFF]|[^\\x00-\\x7F]/g;\n/**\n * @deprecated should have been internal use only.\n * @param {string} src UTF-8 string\n * @returns {string} UTF-16 string\n */\nconst utob = (u) => u.replace(re_utob, cb_utob);\n//\nconst _encode = _hasBuffer\n ? (s) => Buffer.from(s, 'utf8').toString('base64')\n : _TE\n ? (s) => _fromUint8Array(_TE.encode(s))\n : (s) => _btoa(utob(s));\n/**\n * converts a UTF-8-encoded string to a Base64 string.\n * @param {boolean} [urlsafe] if `true` make the result URL-safe\n * @returns {string} Base64 string\n */\nconst encode = (src, urlsafe = false) => urlsafe\n ? _mkUriSafe(_encode(src))\n : _encode(src);\n/**\n * converts a UTF-8-encoded string to URL-safe Base64 RFC4648 §5.\n * @returns {string} Base64 string\n */\nconst encodeURI = (src) => encode(src, true);\n// This trick is found broken https://github.com/dankogai/js-base64/issues/130\n// const btou = (src: string) => decodeURIComponent(escape(src));\n// reverting good old fationed regexp\nconst re_btou = /[\\xC0-\\xDF][\\x80-\\xBF]|[\\xE0-\\xEF][\\x80-\\xBF]{2}|[\\xF0-\\xF7][\\x80-\\xBF]{3}/g;\nconst cb_btou = (cccc) => {\n switch (cccc.length) {\n case 4:\n var cp = ((0x07 & cccc.charCodeAt(0)) << 18)\n | ((0x3f & cccc.charCodeAt(1)) << 12)\n | ((0x3f & cccc.charCodeAt(2)) << 6)\n | (0x3f & cccc.charCodeAt(3)), offset = cp - 0x10000;\n return (_fromCC((offset >>> 10) + 0xD800)\n + _fromCC((offset & 0x3FF) + 0xDC00));\n case 3:\n return _fromCC(((0x0f & cccc.charCodeAt(0)) << 12)\n | ((0x3f & cccc.charCodeAt(1)) << 6)\n | (0x3f & cccc.charCodeAt(2)));\n default:\n return _fromCC(((0x1f & cccc.charCodeAt(0)) << 6)\n | (0x3f & cccc.charCodeAt(1)));\n }\n};\n/**\n * @deprecated should have been internal use only.\n * @param {string} src UTF-16 string\n * @returns {string} UTF-8 string\n */\nconst btou = (b) => b.replace(re_btou, cb_btou);\n/**\n * polyfill version of `atob`\n */\nconst atobPolyfill = (asc) => {\n // console.log('polyfilled');\n asc = asc.replace(/\\s+/g, '');\n if (!b64re.test(asc))\n throw new TypeError('malformed base64.');\n asc += '=='.slice(2 - (asc.length & 3));\n let u24, bin = '', r1, r2;\n for (let i = 0; i < asc.length;) {\n u24 = b64tab[asc.charAt(i++)] << 18\n | b64tab[asc.charAt(i++)] << 12\n | (r1 = b64tab[asc.charAt(i++)]) << 6\n | (r2 = b64tab[asc.charAt(i++)]);\n bin += r1 === 64 ? _fromCC(u24 >> 16 & 255)\n : r2 === 64 ? _fromCC(u24 >> 16 & 255, u24 >> 8 & 255)\n : _fromCC(u24 >> 16 & 255, u24 >> 8 & 255, u24 & 255);\n }\n return bin;\n};\n/**\n * does what `window.atob` of web browsers do.\n * @param {String} asc Base64-encoded string\n * @returns {string} binary string\n */\nconst _atob = typeof atob === 'function' ? (asc) => atob(_tidyB64(asc))\n : _hasBuffer ? (asc) => Buffer.from(asc, 'base64').toString('binary')\n : atobPolyfill;\n//\nconst _toUint8Array = _hasBuffer\n ? (a) => _U8Afrom(Buffer.from(a, 'base64'))\n : (a) => _U8Afrom(_atob(a).split('').map(c => c.charCodeAt(0)));\n/**\n * converts a Base64 string to a Uint8Array.\n */\nconst toUint8Array = (a) => _toUint8Array(_unURI(a));\n//\nconst _decode = _hasBuffer\n ? (a) => Buffer.from(a, 'base64').toString('utf8')\n : _TD\n ? (a) => _TD.decode(_toUint8Array(a))\n : (a) => btou(_atob(a));\nconst _unURI = (a) => _tidyB64(a.replace(/[-_]/g, (m0) => m0 == '-' ? '+' : '/'));\n/**\n * converts a Base64 string to a UTF-8 string.\n * @param {String} src Base64 string. Both normal and URL-safe are supported\n * @returns {string} UTF-8 string\n */\nconst decode = (src) => _decode(_unURI(src));\n/**\n * check if a value is a valid Base64 string\n * @param {String} src a value to check\n */\nconst isValid = (src) => {\n if (typeof src !== 'string')\n return false;\n const s = src.replace(/\\s+/g, '').replace(/={0,2}$/, '');\n return !/[^\\s0-9a-zA-Z\\+/]/.test(s) || !/[^\\s0-9a-zA-Z\\-_]/.test(s);\n};\n//\nconst _noEnum = (v) => {\n return {\n value: v, enumerable: false, writable: true, configurable: true\n };\n};\n/**\n * extend String.prototype with relevant methods\n */\nconst extendString = function () {\n const _add = (name, body) => Object.defineProperty(String.prototype, name, _noEnum(body));\n _add('fromBase64', function () { return decode(this); });\n _add('toBase64', function (urlsafe) { return encode(this, urlsafe); });\n _add('toBase64URI', function () { return encode(this, true); });\n _add('toBase64URL', function () { return encode(this, true); });\n _add('toUint8Array', function () { return toUint8Array(this); });\n};\n/**\n * extend Uint8Array.prototype with relevant methods\n */\nconst extendUint8Array = function () {\n const _add = (name, body) => Object.defineProperty(Uint8Array.prototype, name, _noEnum(body));\n _add('toBase64', function (urlsafe) { return fromUint8Array(this, urlsafe); });\n _add('toBase64URI', function () { return fromUint8Array(this, true); });\n _add('toBase64URL', function () { return fromUint8Array(this, true); });\n};\n/**\n * extend Builtin prototypes with relevant methods\n */\nconst extendBuiltins = () => {\n extendString();\n extendUint8Array();\n};\nconst gBase64 = {\n version: version,\n VERSION: VERSION,\n atob: _atob,\n atobPolyfill: atobPolyfill,\n btoa: _btoa,\n btoaPolyfill: btoaPolyfill,\n fromBase64: decode,\n toBase64: encode,\n encode: encode,\n encodeURI: encodeURI,\n encodeURL: encodeURI,\n utob: utob,\n btou: btou,\n decode: decode,\n isValid: isValid,\n fromUint8Array: fromUint8Array,\n toUint8Array: toUint8Array,\n extendString: extendString,\n extendUint8Array: extendUint8Array,\n extendBuiltins: extendBuiltins\n};\n// makecjs:CUT //\nexport { version };\nexport { VERSION };\nexport { _atob as atob };\nexport { atobPolyfill };\nexport { _btoa as btoa };\nexport { btoaPolyfill };\nexport { decode as fromBase64 };\nexport { encode as toBase64 };\nexport { utob };\nexport { encode };\nexport { encodeURI };\nexport { encodeURI as encodeURL };\nexport { btou };\nexport { decode };\nexport { isValid };\nexport { fromUint8Array };\nexport { toUint8Array };\nexport { extendString };\nexport { extendUint8Array };\nexport { extendBuiltins };\n// and finally,\nexport { gBase64 as Base64 };\n","export * from \"-!../node_modules/extract-css-chunks-webpack-plugin/dist/loader.js??ref--7-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/dist/cjs.js??ref--7-oneOf-1-2!../node_modules/sass-loader/dist/cjs.js??ref--7-oneOf-1-3!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./loginDialog.vue?vue&type=style&index=0&id=150730d4&prod&lang=scss&scoped=true\"","\nimport { mapState, mapMutations } from 'vuex'\nimport GlobalForm from '../components/PcGlobalForm.vue'\nimport dialogXXSuccess from './DIalogXXSuccess.vue'\nconst Base64 = require('js-base64').Base64\nexport default {\n name: 'LoginDialog',\n components: { GlobalForm, 'dialog-XX-success': dialogXXSuccess },\n data() {\n return {\n showPassword: false,\n xxContentVisible: false,\n xxContent: 'success',\n isRemember: false,\n showDeleteBtn: false,\n activeName: 'first',\n submitLoading: false,\n loginData: {\n email: '',\n password: '',\n },\n registData: {},\n // 表单配置\n loginFormConfig: [\n {\n autoInput: true,\n prop: 'email',\n type: 'input',\n placeholder: 'User Name',\n },\n {\n prop: 'password',\n type: 'password',\n placeholder: 'Password',\n },\n {\n type: 'slot',\n slotName: 'checkbox',\n },\n ],\n registFormConfig: [\n {\n long: true,\n prop: 'email',\n type: 'input',\n placeholder: 'Email',\n },\n {\n long: true,\n prop: 'password',\n type: 'password',\n placeholder: 'Password',\n },\n {\n long: true,\n prop: 'confirm_password',\n type: 'password',\n placeholder: 'Comfirm Password',\n },\n {\n prop: 'contacts',\n type: 'input',\n placeholder: 'First Name',\n },\n {\n prop: 'last_name',\n type: 'input',\n placeholder: 'Last Name',\n },\n {\n long: true,\n prop: 'company',\n type: 'input',\n placeholder: 'Company Name',\n },\n {\n prop: 'phone',\n type: 'input',\n placeholder: 'Phone No',\n },\n {\n prop: 'url',\n type: 'input',\n placeholder: 'Website',\n },\n {\n long: true,\n prop: 'address',\n type: 'input',\n placeholder: 'Address',\n },\n {\n prop: 'state',\n type: 'input',\n placeholder: 'State',\n },\n {\n prop: 'postcode',\n type: 'input',\n placeholder: 'Post Code',\n },\n ],\n // 表单规则\n loginRules: {\n email: [\n {\n required: true,\n message: 'Please enter the correct email',\n trigger: 'blur',\n },\n ],\n password: [\n {\n required: true,\n message: 'The password length only allows 6-16 bits',\n trigger: 'blur',\n min: 6,\n max: 16,\n },\n ],\n },\n registRules: {\n email: [\n {\n required: true,\n message: 'Please enter your email address',\n trigger: 'blur',\n },\n ],\n password: [\n {\n required: true,\n message: 'The password length only allows 6-16 bits',\n trigger: 'blur',\n min: 6,\n max: 16,\n },\n ],\n confirm_password: [\n {\n required: true,\n message: 'The password length only allows 6-16 bits',\n trigger: 'blur',\n min: 6,\n max: 16,\n },\n ],\n company: [\n {\n required: true,\n message: 'Please enter your company name',\n trigger: 'blur',\n },\n ],\n contacts: [\n {\n required: true,\n message: 'Please enter your contact person',\n trigger: 'blur',\n },\n ],\n last_name: [\n {\n required: true,\n message: 'Please enter your contact person',\n trigger: 'blur',\n },\n ],\n phone: [\n {\n required: true,\n message: 'Please enter your phone number',\n trigger: 'blur',\n },\n ],\n },\n autoComplete: null,\n // 记录谷歌地图API选择地点后拿到的地址名. 这个不能直接更新到registeData上, 不然输入框内容会再次变化.\n selectAddress: '',\n }\n },\n computed: {\n ...mapState(['dialogVisible', 'config']),\n dialogWidth() {\n return this.activeName === 'first' ? '506px' : '1108px'\n },\n },\n watch: {\n dialogVisible(value) {\n if (value) {\n document.addEventListener('keydown', this.onEnterClick)\n } else {\n document.removeEventListener('keydown', this.onEnterClick)\n }\n },\n activeName() {\n if (this.activeName === 'second' && this.autoComplete === null) {\n if (window.google) {\n this.initGoogleMapAutoComplete()\n this.getAddrByLocation()\n } else {\n setTimeout(() => {\n this.initGoogleMapAutoComplete()\n this.getAddrByLocation()\n }, 1500)\n }\n }\n },\n },\n mounted() {\n this.getCookie()\n },\n methods: {\n ...mapMutations(['closeDialog', 'openDialog']),\n onEnterClick(e) {\n if (e.keyCode === 13) {\n console.log('enter')\n let target = this.$refs.loginForm\n if (this.activeName === 'first') {\n // do nothing. login form\n }\n if (this.activeName === 'second') {\n target = this.$refs.registForm\n }\n if (typeof target.submit === 'function') {\n target.submit()\n }\n }\n },\n checkRegisterForm() {\n this.$refs.registForm.validate(valid => {\n if (valid) {\n this.submit()\n }\n })\n },\n submit() {\n if (this.activeName === 'first') {\n if (this.isRemember) {\n const password = Base64.encode(this.loginData.password)\n this.setCookie(this.loginData.email, password, 7)\n } else {\n this.setCookie('', '', -1)\n }\n this.login()\n } else if (this.activeName === 'second') {\n this.regist()\n }\n },\n login() {\n this.$store\n .dispatch('login', this.loginData)\n .then(res => {\n if (res.code == 1) {\n setTimeout(() => {\n this.closeDialog()\n }, 200)\n this.xxContentVisible = true\n this.xxContent = 'Login Successful'\n this.submitLoading = false\n\n // this.$confirm(\"Login Successful\", {\n // confirmButtonText: \"OK\",\n // confirmButtonClass: 'confirmBtn',\n // showCancelButton: false,\n // showClose: false,\n // type: \"success\",\n // center: true,\n // lockScroll: false,\n // }).then(() => {\n // });\n } else if (res.code == 10100) {\n this.$confirm(res.msg, {\n confirmButtonText: 'OK',\n showCancelButton: false,\n type: 'error',\n center: true,\n })\n }\n })\n .catch(() => {\n this.closeDialog()\n })\n },\n regist() {\n this.submitLoading = true\n const formData = Object.assign({}, this.registData)\n if (this.selectAddress && this.selectAddress.length) {\n formData.address = this.selectAddress\n }\n this.$axios({\n url: '/au/register',\n method: 'post',\n data: formData,\n })\n .then(res => {\n if (res.code == 1) {\n this.closeDialog()\n this.submitLoading = false\n this.xxContentVisible = true\n this.xxContent =\n \"We've received your login request. Someone will be in touch shortly to confirm.\"\n this.registerEmail()\n }\n })\n .catch(e => {\n const res = e.response.data\n if (res.code === 10100) {\n this.$confirm(res.msg + ', please click OK to jump to login.', {\n confirmButtonText: 'OK',\n showCancelButton: false,\n type: 'error',\n center: true,\n }).then(() => {\n this.submitLoading = false\n this.activeName = 'first'\n })\n }\n })\n },\n registerEmail() {\n this.$axios\n .get('/member/register_email?email=' + this.registData.email)\n .then(res => {})\n .catch(error => {\n this.$message.error(error.response.data.msg)\n })\n },\n close() {\n this.closeDialog()\n this.registData = {}\n },\n resetPassword() {\n this.closeDialog()\n this.$refs.resetPasswordDialog.resetDialogVisible = true\n },\n openLoginDialog() {\n this.openDialog()\n },\n // 设置cookie\n setCookie(email, password, days) {\n const date = new Date()\n date.setTime(date.getTime() + 24 * 60 * 60 * 1000 * days)\n document.cookie =\n 'email' + '=' + email + ';path=/;expires=' + date.toGMTString()\n document.cookie =\n 'password' + '=' + password + ';path=/;expires=' + date.toGMTString()\n },\n\n // 读取cookie 将用户名和密码回显到input框中\n getCookie() {\n if (document.cookie.length > 0) {\n const arr = document.cookie.split('; ')\n for (let i = 0; i < arr.length; i++) {\n const arr2 = arr[i].split('=')\n if (arr2[0] === 'email') {\n this.loginData.email = arr2[1]\n } else if (arr2[0] === 'password') {\n this.loginData.password = Base64.decode(arr2[1])\n this.isRemember = true\n }\n }\n }\n },\n toSignatureLink() {\n const link = this.config.configInfo?.link || ''\n if (link) {\n window.open(link, '_blank')\n }\n },\n initGoogleMapAutoComplete() {\n // console.log(window.google.maps, 'maps')\n // https://developers.google.com/maps/documentation/javascript/place-autocomplete\n this.autoComplete = new window.google.maps.places.Autocomplete(\n document.getElementById('address_input'),\n {\n types: ['address'],\n componentRestrictions: {\n country: ['AU'],\n },\n // 如果不知道需要什么字段, 可以查文档, 或给'all'或不传fields参数, 然后从返回结果里面找出需要数据的字段名, 填到这里\n fields: [\n 'address_components',\n 'place_id',\n 'name',\n 'formatted_address',\n ],\n }\n )\n\n this.autoComplete.addListener('place_changed', this.onPlaceChange)\n },\n onPlaceChange() {\n const data = this.autoComplete.getPlace()\n\n if (Array.isArray(data.address_components)) {\n data.address_components.forEach(i => {\n if (i.types.includes('postal_code')) {\n this.$set(this.registData, 'postcode', i.long_name || i.short_name)\n }\n if (i.types.includes('administrative_area_level_1')) {\n this.$set(this.registData, 'state', i.short_name || i.long_name)\n }\n })\n }\n this.selectAddress = data.name || this.registData.address\n },\n onInputChange(value, attr) {\n if (attr === 'address') {\n // 地址输入变更时, 清空这个值, 避免手动输入地址又不选的时候, 这个变量保存了上一次选地址时留下的数据.\n this.selectAddress = ''\n }\n },\n getAddrByLocation() {\n if (navigator.geolocation) {\n let location = {\n lat: 0,\n lng: 0,\n }\n navigator.geolocation.getCurrentPosition(\n position => {\n location = {\n lat: position.coords.latitude,\n lng: position.coords.longitude,\n }\n console.log(location, 'position')\n const geocoder = new window.google.maps.Geocoder()\n geocoder.geocode({ location }).then(response => {\n console.log(response, 'response')\n if (response.results?.length) {\n response.results[0].address_components.forEach(i => {\n if (i.types.includes('postal_code')) {\n this.$set(\n this.registData,\n 'postcode',\n i.long_name || i.short_name\n )\n }\n if (i.types.includes('administrative_area_level_1')) {\n this.$set(\n this.registData,\n 'state',\n i.short_name || i.long_name\n )\n }\n if (i.types.includes('route')) {\n this.$set(\n this.registData,\n 'address',\n i.short_name || i.long_name\n )\n }\n this.selectAddress = i.short_name || i.long_name\n })\n }\n })\n },\n error => {\n console.log(error, 'get location error')\n }\n )\n }\n },\n },\n}\n","import mod from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./loginDialog.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./loginDialog.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./loginDialog.vue?vue&type=template&id=150730d4&scoped=true\"\nimport script from \"./loginDialog.vue?vue&type=script&lang=js\"\nexport * from \"./loginDialog.vue?vue&type=script&lang=js\"\nimport style0 from \"./loginDialog.vue?vue&type=style&index=0&id=150730d4&prod&lang=scss&scoped=true\"\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 \"150730d4\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
|