/
home
/
maktab
/
admin
/
js
/
File Upload :
llllll
Current File: /home/maktab/admin/js/chunk-40cd612d.495a6aef.js.map
{"version":3,"sources":["webpack:///./src/views/auth/Login.vue?cc4e","webpack:///src/views/auth/Login.vue","webpack:///./src/views/auth/Login.vue?5f6d","webpack:///./src/views/auth/Login.vue","webpack:///./src/views/auth/Login.vue?e80c","webpack:///./src/assets/images/logo/logo.svg"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","staticStyle","step","directives","name","rawName","value","required","regex","expression","on","$event","type","indexOf","_k","keyCode","key","loginJWT","apply","arguments","model","callback","$$v","phone","_v","_s","errors","first","$t","_e","verifiyToekn","token","preventDefault","reset","reSendCode","countDown","staticRenderFns","data","id","countDownInterval","isPressed","watch","computed","validateForm","methods","startCountDown","clearInterval","title","text","iconPack","icon","color","axios","mobile","provider","localStorage","console","component","module","exports"],"mappings":"gJAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,2EAA2EC,MAAM,CAAC,GAAK,eAAe,CAACH,EAAG,MAAM,CAACE,YAAY,SAASE,YAAY,CAAC,MAAQ,QAAQ,OAAS,SAAS,CAACJ,EAAG,UAAU,CAACA,EAAG,MAAM,CAACE,YAAY,eAAeC,MAAM,CAAC,IAAM,EAAQ,QAAiC,MAAQ,WAAyB,IAAbP,EAAIS,KAAYL,EAAG,MAAM,CAACI,YAAY,CAAC,OAAS,WAAW,CAACJ,EAAG,WAAW,CAACM,WAAW,CAAC,CAACC,KAAK,WAAWC,QAAQ,aAAaC,MAAM,CAAEC,UAAS,EAAKC,MAAO,iDAAmDC,WAAW,+EAA+EV,YAAY,sBAAsBE,YAAY,CAAC,MAAQ,OAAOD,MAAM,CAAC,GAAK,QAAQ,sBAAsB,OAAO,KAAO,QAAQ,iBAAiB,GAAG,KAAO,SAAS,KAAO,kBAAkB,YA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,GA0CAa,wBAAA,uJAEA,mCACA,gCAOA,OANA,iBACAiB,SACAC,+BACAC,mBACAC,yBACAC,kBACA,0BAKA,OALA,SAIA,mBACA,2BACAC,4BACAd,WACAe,kBACAC,gBACAvB,mBACA,gBALAM,SAMAkB,6CAGA,mBAAAnD,mBAAA,sBACA,qDAEA,iBACA2C,SACAC,oCACAC,mBACAC,yBACAC,kBAEAK,kBAAA,QAGA,OAHA,UAEA,yBACA,oJAtCA1B,KChL8V,I,wBCQ1V2B,EAAY,eACd,EACAjE,EACA4C,GACA,EACA,KACA,KACA,MAIa,aAAAqB,E,6CCnBf,W,qBCAAC,EAAOC,QAAU,IAA0B","file":"js/chunk-40cd612d.495a6aef.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"h-screen flex w-full bg-img vx-row no-gutter items-center justify-center\",attrs:{\"id\":\"page-login\"}},[_c('div',{staticClass:\"vx-col\",staticStyle:{\"width\":\"30rem\",\"margin\":\"2rem\"}},[_c('vx-card',[_c('img',{staticClass:\"mb-5 mx-auto\",attrs:{\"src\":require('@/assets/images/logo/logo.svg'),\"width\":\"175px\"}}),(_vm.step === 1)?_c('div',{staticStyle:{\"margin\":\"4rem 0\"}},[_c('vs-input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:({required:true,regex: /^(?:0|98|\\+98|\\+980|0098|098|00980)?(9\\d{9})$/ }),expression:\"{required:true,regex: /^(?:0|98|\\\\+98|\\\\+980|0098|098|00980)?(9\\\\d{9})$/ }\"}],staticClass:\"mt-5 mx-auto numhov\",staticStyle:{\"width\":\"70%\"},attrs:{\"id\":\"phone\",\"data-vv-validate-on\":\"blur\",\"name\":\"phone\",\"icon-no-border\":\"\",\"type\":\"number\",\"icon\":\"icon icon-phone\",\"icon-pack\":\"feather\",\"label-placeholder\":\"شماره تلفن همراه\"},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.loginJWT.apply(null, arguments)}},model:{value:(_vm.phone),callback:function ($$v) {_vm.phone=$$v},expression:\"phone\"}}),_c('span',{staticClass:\"text-danger text-sm\",staticStyle:{\"margin-right\":\"5rem\"}},[_vm._v(_vm._s(_vm.errors.first('phone')))]),_c('div',{staticClass:\"mt-5 text-center\"},[_c('vs-button',{staticStyle:{\"width\":\"130px\"},on:{\"click\":_vm.loginJWT}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('Login'))+\"\\n \")])],1)],1):_vm._e(),(_vm.step==2)?_c('div',{staticStyle:{\"margin\":\"4rem 0\"}},[_c('vs-input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],staticClass:\"mt-5 mx-auto numhov\",staticStyle:{\"width\":\"70%\"},attrs:{\"data-vv-validate-on\":\"blur\",\"name\":\"sms_token\",\"icon-no-border\":\"\",\"type\":\"number\",\"icon\":\"icon icon-phone\",\"icon-pack\":\"feather\",\"label-placeholder\":\"کد ارسال شده\"},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.verifiyToekn.apply(null, arguments)}},model:{value:(_vm.token),callback:function ($$v) {_vm.token=$$v},expression:\"token\"}}),_c('span',{staticClass:\"text-danger text-sm\",staticStyle:{\"margin-right\":\"5rem\"}},[_vm._v(_vm._s(_vm.errors.first('sms_token')))]),_c('div',{staticClass:\"text-center\"},[_c('a',{attrs:{\"href\":\"\"},on:{\"click\":function($event){$event.preventDefault();return _vm.reset()}}},[_vm._v(\"تغییر شماره همراه\")]),_vm._v(\" / \"),_c('a',{attrs:{\"href\":\"\"},on:{\"click\":function($event){$event.preventDefault();return _vm.reSendCode()}}},[_vm._v(\"ارسال مجدد کد تایید (00:\"+_vm._s(_vm.countDown)+\")\")])]),_c('div',{staticClass:\"mt-5 text-center\"},[_c('vs-button',{staticStyle:{\"width\":\"138px\"},on:{\"click\":function($event){return _vm.verifiyToekn()}}},[_vm._v(\"\\n ارسال کد تایید\\n \")])],1)],1):_vm._e()])],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"h-screen flex w-full bg-img vx-row no-gutter items-center justify-center\" id=\"page-login\">\r\n <div class=\"vx-col\" style=\"width:30rem;margin:2rem\">\r\n <vx-card>\r\n <img :src=\"require('@/assets/images/logo/logo.svg')\" width=\"175px\" class=\"mb-5 mx-auto\"/>\r\n <!-- <h4 class=\"mb-10 text-center\">به کیدزلند خوش آمدید</h4>-->\r\n <div style=\"margin:4rem 0;\" v-if=\"step === 1\">\r\n <vs-input\r\n id=\"phone\"\r\n v-validate=\"{required:true,regex: /^(?:0|98|\\+98|\\+980|0098|098|00980)?(9\\d{9})$/ }\"\r\n data-vv-validate-on=\"blur\"\r\n name=\"phone\"\r\n icon-no-border\r\n type=\"number\"\r\n icon=\"icon icon-phone\"\r\n icon-pack=\"feather\"\r\n label-placeholder=\"شماره تلفن همراه\"\r\n v-on:keyup.enter=\"loginJWT\"\r\n v-model=\"phone\"\r\n style=\"width:70%\"\r\n class=\"mt-5 mx-auto numhov\"/>\r\n <span class=\"text-danger text-sm\" style=\"margin-right:5rem\">{{ errors.first('phone') }}</span>\r\n <div class=\"mt-5 text-center\">\r\n <!--:disabled=\"!validateForm\"-->\r\n <vs-button @click=\"loginJWT\" style=\"width:130px\">\r\n {{ $t('Login') }}\r\n </vs-button>\r\n <!-- <vs-button href=\"/\" class=\"mr-2\" >\r\n بازگشت به فروشگاه\r\n </vs-button>-->\r\n </div>\r\n </div>\r\n <div style=\"margin:4rem 0;\" v-if=\"step==2\">\r\n <vs-input\r\n v-validate=\"'required'\"\r\n data-vv-validate-on=\"blur\"\r\n name=\"sms_token\"\r\n icon-no-border\r\n type=\"number\"\r\n icon=\"icon icon-phone\"\r\n icon-pack=\"feather\"\r\n label-placeholder=\"کد ارسال شده\"\r\n v-model=\"token\"\r\n v-on:keyup.enter=\"verifiyToekn\"\r\n style=\"width:70%\"\r\n class=\"mt-5 mx-auto numhov\"/>\r\n <span class=\"text-danger text-sm\" style=\"margin-right:5rem\">{{ errors.first('sms_token') }}</span>\r\n <div class=\"text-center\"><a href=\"\" @click.prevent=\"reset()\">تغییر شماره همراه</a> / <a\r\n href=\"\" @click.prevent=\"reSendCode()\">ارسال مجدد کد تایید (00:{{ countDown }})</a></div>\r\n <div class=\"mt-5 text-center\">\r\n <!--:disabled=\"!validateForm\"-->\r\n <vs-button @click=\"verifiyToekn()\" style=\"width:138px\">\r\n ارسال کد تایید\r\n </vs-button>\r\n <!-- <vs-button href=\"/\" class=\"mr-2\" >\r\n بازگشت به فروشگاه\r\n </vs-button>-->\r\n </div>\r\n </div>\r\n <!-- <div class=\"mt-5\">-->\r\n <!-- <router-link to=\"/register\">-->\r\n <!-- {{$t('Are you register')}}-->\r\n <!-- </router-link>-->\r\n <!-- <a href=\"/\" style=\"float:left\">-->\r\n <!-- بازگشت به فروشگاه-->\r\n <!-- </a>-->\r\n <!-- </div>-->\r\n </vx-card>\r\n </div>\r\n </div>\r\n <!-- <div class=\"w-screen h-screen\">\r\n <div class=\"w-1/3 bg-img-login\" :style=\"{backgroundImage: 'url(' + require('@/assets/images/bg.jpg') + ')'}\">\r\n\r\n </div>\r\n </div>-->\r\n</template>\r\n\r\n<script>\r\nimport axios from '../../axios'\r\n\r\nexport default {\r\n data () {\r\n return {\r\n //email: '',\r\n //password: '',\r\n //checkbox_remember_me: false,\r\n phone: '',\r\n step: 1,\r\n id: null,\r\n token: '',\r\n countDown: 59,\r\n countDownInterval: null,\r\n isPressed: false\r\n }\r\n },\r\n watch: {\r\n token: function (newVal, oldVal) {\r\n if (newVal.length === 4) {\r\n this.verifiyToekn()\r\n }\r\n },\r\n phone: function (newVal, oldVal) {\r\n // if (newVal.length === 11){\r\n // this.loginJWT()\r\n // }\r\n }\r\n },\r\n computed: {\r\n validateForm () {\r\n return !this.errors.any() && this.phone !== '' // && this.password != '';\r\n }\r\n },\r\n methods: {\r\n startCountDown () {\r\n clearInterval(this.countDownInterval)\r\n this.countDownInterval = setInterval(() => {\r\n if (this.countDown === 0) {\r\n clearInterval(this.countDownInterval)\r\n return\r\n }\r\n this.countDown--\r\n }, 1000)\r\n },\r\n reset () {\r\n clearInterval(this.countDownInterval)\r\n this.countDown = 59\r\n this.step = 1\r\n },\r\n reSendCode () {\r\n if (this.countDown === 0) {\r\n this.loginJWT()\r\n this.countDown = 59\r\n }\r\n },\r\n async loginJWT () {\r\n //if (!this.checkLogin()) return\r\n //this.step=2;\r\n //this.startCountDown();\r\n //return ;\r\n if (!this.isPressed) {\r\n if (!this.validateForm) {\r\n this.$vs.notify({\r\n title: '',\r\n text: 'شماره تلفن همراه را وارد نمایید',\r\n iconPack: 'feather',\r\n icon: 'icon-alert-circle',\r\n color: '#836447'\r\n })\r\n return\r\n }\r\n try {\r\n this.$vs.loading()\r\n this.isPressed = true\r\n const {data} = await axios.post('/auth/login', {\r\n mobile: this.phone,\r\n provider: 'user'\r\n })\r\n this.id = data.id\r\n this.step = 2\r\n this.startCountDown()\r\n } catch (e) {\r\n this.$vs.notify({\r\n title: '',\r\n text: 'حساب کاربری با این مشخصات وجود ندارد . ثبت نام کنید',\r\n iconPack: 'feather',\r\n icon: 'icon-alert-circle',\r\n color: '#836447'\r\n })\r\n //console.log(e);\r\n } finally {\r\n this.$vs.loading.close()\r\n this.isPressed = false\r\n }\r\n }\r\n\r\n },\r\n async verifiyToekn () {\r\n //this.$store.dispatch('auth/loginJWT', payload)\r\n if (!this.isPressed) {\r\n if (this.token === '') {\r\n this.$vs.notify({\r\n title: '',\r\n text: 'کد تایید را وارد نمایید',\r\n iconPack: 'feather',\r\n icon: 'icon-alert-circle',\r\n color: '#836447'\r\n })\r\n return\r\n }\r\n try {\r\n this.$vs.loading()\r\n this.isPressed = true\r\n const {data} = await axios.post('/auth/verify', {\r\n id: this.id,\r\n mobile: this.phone,\r\n provider: 'user',\r\n token: this.token\r\n })\r\n localStorage.setItem('token', data.access_token)\r\n // localStorage.setItem('userData', JSON.stringify(data))\r\n // await this.getPermission()\r\n this.$router.push({name: 'dashboard'}).catch(() => {\r\n })\r\n } catch (e) {\r\n this.$vs.notify({\r\n title: '',\r\n text: 'کد تایید وارد شده اشتباه است',\r\n iconPack: 'feather',\r\n icon: 'icon-alert-circle',\r\n color: '#836447'\r\n })\r\n console.log(e)\r\n } finally {\r\n this.$vs.loading.close()\r\n this.isPressed = false\r\n }\r\n }\r\n\r\n },\r\n/* async getPermission () {\r\n const {data: {permission}} = await axios.get('admin/user/me')\r\n this.$store.commit('PERMISSION_UPDATE', permission)\r\n // localStorage.setItem('userData',JSON.stringify({permission:permission}))\r\n }*/\r\n\r\n }\r\n}\r\n\r\n</script>\r\n\r\n<style>\r\n/*.login-tabs-container {\r\n min-height: 505px;\r\n\r\n .con-tab {\r\n padding-bottom: 14px;\r\n }\r\n\r\n .con-slot-tabs {\r\n margin-top: 1rem;\r\n }\r\n}*/\r\n/*.bg-img-login {\r\n background-image: url(\"./src/assets/images\");\r\n background-position: center;\r\n background-repeat: no-repeat;\r\n background-size: cover;\r\n}*/\r\n.numhov input::-webkit-outer-spin-button,\r\n.numhov input::-webkit-inner-spin-button {\r\n -webkit-appearance: none;\r\n margin: 0;\r\n}\r\n</style>\r\n\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!./Login.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!./Login.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Login.vue?vue&type=template&id=3fc5e039&\"\nimport script from \"./Login.vue?vue&type=script&lang=js&\"\nexport * from \"./Login.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Login.vue?vue&type=style&index=0&id=3fc5e039&prod&lang=css&\"\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","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Login.vue?vue&type=style&index=0&id=3fc5e039&prod&lang=css&\"","module.exports = __webpack_public_path__ + \"img/logo.64a9702b.svg\";"],"sourceRoot":""}
Copyright ©2k19 -
Hexid
|
Tex7ure