/
home
/
henzagold
/
admin_report
/
js
/
File Upload :
llllll
Current File: /home/henzagold/admin_report/js/chunk-6cc7695b.8bd6ee95.js.map
{"version":3,"sources":["webpack:///./src/views/auth/Login.vue?5a04","webpack:///./src/views/auth/Login.vue","webpack:///src/views/auth/Login.vue","webpack:///./src/views/auth/Login.vue?5f6d","webpack:///./src/views/auth/Login.vue?775d"],"names":["render","_vm","this","_c","_self","staticClass","attrs","staticStyle","_v","step","directives","name","rawName","value","required","regex","expression","on","$event","type","indexOf","_k","keyCode","key","loginJWT","apply","arguments","model","phone","callback","$$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","localStorage","console","getUserData","component"],"mappings":"kHAAA,W,yCCAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,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,KAAK,CAACE,YAAY,0BAA0B,CAACJ,EAAIO,GAAG,wBAAmC,GAAVP,EAAIQ,KAASN,EAAG,MAAM,CAACI,YAAY,CAAC,OAAS,WAAW,CAACJ,EAAG,WAAW,CAACO,WAAW,CAAC,CAACC,KAAK,WAAWC,QAAQ,aAAaC,MAAO,CAACC,UAAS,EAAKC,MAAO,iDAAmDC,WAAW,+EAA+EX,YAAY,eAAeE,YAAY,CAAC,MAAQ,OAAOD,MAAM,CAAC,sBAAsB,OAAO,KAAO,QAAQ,iBAAiB,GAAG,KAAO,kBAAkB,YAAY,UAAU,oBAAoB,oBAAoBW,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAIA,EAAOC,KAAKC,QAAQ,QAAQnB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mBAAA,OACA,OADA,SAAAM,SACAiB,8CAAA,UACA,2BAGA,mBAAAjD,mBAAA,2EAEA,iBACA0C,SACAC,oCACAC,mBACAC,yBACAC,kBAEAI,kBAAA,QAGA,OAHA,UAEA,yBACA,oJAjCAzB,GAqCA0B,uBAAA,6KAEAJ,sBAAA,gBAAAf,SACAiB,mDAAA,mDAEAC,kBAAA,8GALAC,KC3M8V,I,wBCQ1VC,EAAY,eACd,EACA/D,EACA0C,GACA,EACA,KACA,KACA,MAIa,aAAAqB,E","file":"js/chunk-6cc7695b.8bd6ee95.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../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=32b68756&prod&lang=scss&\"","var render = function render(){var _vm=this,_c=_vm._self._c;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('h4',{staticClass:\"mb-10 mt-5 text-center\"},[_vm._v(\"به گزارش خوش آمدید\")]),(_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\",staticStyle:{\"width\":\"70%\"},attrs:{\"data-vv-validate-on\":\"blur\",\"name\":\"phone\",\"icon-no-border\":\"\",\"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\",staticStyle:{\"width\":\"70%\"},attrs:{\"data-vv-validate-on\":\"blur\",\"name\":\"sms_token\",\"icon-no-border\":\"\",\"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)])\n}\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=\"('../assets/images/logo/kidsland.png')\" width=\"175px\" class=\"mb-5 mx-auto\" />-->\r\n <h4 class=\"mb-10 mt-5 text-center\">به گزارش خوش آمدید</h4>\r\n <div style=\"margin:4rem 0;\" v-if=\"step==1\">\r\n <vs-input\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 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\"/>\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 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\"/>\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 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</template>\r\n\r\n<script>\r\nimport axios from \"../../axios\";\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 === 5){\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 {\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 {\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 let {data}=await axios.post('auth/login',{mobile:this.phone});\r\n this.id=data.id;\r\n this.step=2;\r\n this.startCountDown();\r\n }catch (e)\r\n {\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 let {data} = await axios.post('auth/verify',{id:this.id,token:this.token});\r\n localStorage.setItem('token',data.accsess_token);\r\n await this.getUserData()\r\n // localStorage.setItem('userData',JSON.stringify(data));\r\n // await this.getPermission()\r\n this.$router.push({name: \"dashboard\"}).catch(()=>{})\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 async getUserData() {\r\n try {\r\n const {data} = await axios.get('user/me')\r\n localStorage.setItem('userData', JSON.stringify(data))\r\n } catch (e) {\r\n console.log(e)\r\n }\r\n }\r\n // async getPermission(){\r\n // const {data:{permission}} = await axios.get('admin/user/show')\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</script>\r\n\r\n<style lang=\"scss\">\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\r\n</style>\r\n\r\n\r\n\r\n\r\n\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=32b68756&\"\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=32b68756&prod&lang=scss&\"\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"],"sourceRoot":""}
Copyright ©2k19 -
Hexid
|
Tex7ure