1 |
- {"version":3,"sources":["webpack:///./components/resetPasswordDialog.vue?c7ad","webpack:///./components/ResetPasswordMail.vue?88af","webpack:///./components/ResetPasswordMail.vue","webpack:///./components/ResetPasswordMail.vue?814a","webpack:///./components/resetPasswordDialog.vue?be68","webpack:///./components/resetPasswordDialog.vue","webpack:///./components/resetPasswordDialog.vue?b37b","webpack:///./components/resetPasswordDialog.vue?f1d8"],"names":["module","exports","props","mailData","component","_vm","_c","_self","staticStyle","_m","_v","_s","name","attrs","Url","email","data","disabledFlag","resetDialogVisible","butonContent","time","timer","watch","handler","newValue","oldValue","test","this","getmailData","immediate","mounted","methods","goBack","$emit","location","origin","AES","encrypt","Date","now","debounceSendEmail","_","debounce","sendEmail","_this","setInterval","resetData","$axios","post","content","$refs","resetPasswordMail","$el","innerHTML","then","res","code","$notify","title","message","type","duration","catch","boolean","arguments","length","undefined","clearInterval","beforeDestroy","on","$event","staticClass","model","value","callback","$$v","expression","directives","rawName","ref","installComponents","ResetPasswordMail","default"],"mappings":"iFACAA,EAAOC,QAAU,CAAC,C,oDCD4O,ECC/O,CACbC,MAAO,CACLC,SAAU,CAAC,I,QCIXC,UAAY,YACd,GDRW,WAAkB,IAAIC,EAAI,KAAKC,EAAGD,EAAIE,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,CAAC,MAAQ,OAAO,mBAAmB,UAAU,MAAQ,UAAU,SAAW,aAAa,CAACF,EAAG,MAAM,CAACE,YAAY,CAAC,MAAQ,QAAQ,aAAa,aAAa,QAAU,YAAY,OAAS,SAAS,mBAAmB,SAAS,CAACF,EAAG,MAAM,CAACE,YAAY,CAAC,mBAAmB,OAAO,OAAS,WAAW,CAACH,EAAII,GAAG,GAAGJ,EAAIK,GAAG,KAAKJ,EAAG,MAAMD,EAAIK,GAAG,KAAKL,EAAII,GAAG,GAAGJ,EAAIK,GAAG,KAAKJ,EAAG,IAAI,CAACD,EAAIK,GAAG,UAAUL,EAAIM,GAAGN,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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!./ResetPasswordMail.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!./ResetPasswordMail.vue?vue&type=script&lang=js\"","\nexport default {\n props: {\n mailData: {},\n },\n};\n","import { render, staticRenderFns } from \"./ResetPasswordMail.vue?vue&type=template&id=5f1ed0ce&scoped=true\"\nimport script from \"./ResetPasswordMail.vue?vue&type=script&lang=js\"\nexport * from \"./ResetPasswordMail.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 \"5f1ed0ce\",\n null\n \n)\n\nexport default component.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!./resetPasswordDialog.vue?vue&type=style&index=0&id=6548d9c2&prod&lang=scss&scoped=true\"","\nimport AES from '~/plugins/AES.js'\nimport _ from 'lodash'\n\nexport default {\n name: 'resetPasswordDialog',\n data() {\n return {\n disabledFlag: false,\n resetDialogVisible: false,\n email: '',\n butonContent: 'SEND RESET EMAIL',\n time: 60,\n timer: null,\n mailData: {\n Url: '',\n name: '',\n email: '',\n },\n }\n },\n watch: {\n email: {\n handler(newValue, oldValue) {\n if (newValue) {\n let reg =\n /^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$/\n if (reg.test(this.email)) {\n this.disabledFlag = false\n } else {\n this.disabledFlag = true\n }\n this.getmailData()\n }\n },\n immediate: true,\n },\n },\n mounted() {\n this.getmailData()\n },\n methods: {\n goBack() {\n this.resetDialogVisible = false\n this.$emit('openLoginDialog')\n },\n getmailData() {\n this.mailData.Url = location.origin + '/setNewPassword'\n this.mailData.name = this.email\n this.mailData.email = AES.encrypt(this.email + '&t='+ Date.now())\n },\n debounceSendEmail:_.debounce(function () {\n this.sendEmail()\n }, 200),\n sendEmail() {\n if (this.email) {\n this.disabledFlag = true\n this.getmailData()\n this.timer = setInterval(() => {\n if (this.time == 0) {\n this.resetData()\n } else {\n this.butonContent = 'Resend Passwords in ' + this.time + ' s'\n this.time--\n }\n }, 1000)\n this.$axios\n .post('/uk-api/uk/resetemail', {\n email: this.email,\n content: this.$refs.resetPasswordMail.$el.innerHTML,\n })\n .then(res => {\n if (res.code == 1) {\n this.resetData()\n this.time = 60\n this.$notify({\n title: 'success',\n message: 'Sending an email successfully',\n type: 'success',\n duration: 3000,\n })\n }\n })\n .catch(() => {\n this.resetData()\n this.time = 60\n // this.$message.error(error.response.data.msg);\n })\n }\n },\n resetData(boolean = false) {\n clearInterval(this.timer)\n this.disabledFlag = boolean\n this.butonContent = 'SEND RESET EMAIL'\n },\n },\n beforeDestroy() {\n clearInterval(this.timer)\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!./resetPasswordDialog.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!./resetPasswordDialog.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./resetPasswordDialog.vue?vue&type=template&id=6548d9c2&scoped=true\"\nimport script from \"./resetPasswordDialog.vue?vue&type=script&lang=js\"\nexport * from \"./resetPasswordDialog.vue?vue&type=script&lang=js\"\nimport style0 from \"./resetPasswordDialog.vue?vue&type=style&index=0&id=6548d9c2&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 \"6548d9c2\",\n null\n \n)\n\nexport default component.exports\n\n/* nuxt-component-imports */\ninstallComponents(component, {ResetPasswordMail: require('/Users/wu67/Projects/uk_front/components/ResetPasswordMail.vue').default})\n"],"sourceRoot":""}
|