1 |
- {"version":3,"sources":["webpack:///./src/views/loginActive.vue?b27a","webpack:///./src/views/loginActive.vue?0c33","webpack:///src/views/loginActive.vue","webpack:///./src/views/loginActive.vue?25a6","webpack:///./src/views/loginActive.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","style","minHeight","bodyHeight","_v","attrs","model","value","form","callback","$$v","$set","expression","on","sendCode","slot","_s","smsText","onSubmit","staticRenderFns","component"],"mappings":"kHAAA,yBAAyiB,EAAG,G,gECA5iB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,QAAQC,MAAM,CAAGC,UAAWR,EAAIS,WAAa,OAAS,CAACL,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,KAAK,CAACJ,EAAIU,GAAG,SAASN,EAAG,iBAAiB,CAACE,YAAY,sBAAsB,CAACF,EAAG,YAAY,CAACO,MAAM,CAAC,OAAS,GAAG,UAAY,GAAG,YAAc,UAAUC,MAAM,CAACC,MAAOb,EAAIc,KAAU,MAAEC,SAAS,SAAUC,GAAMhB,EAAIiB,KAAKjB,EAAIc,KAAM,QAASE,IAAME,WAAW,iBAAiB,GAAGd,EAAG,KAAK,CAACJ,EAAIU,GAAG,SAASN,EAAG,iBAAiB,CAACE,YAAY,kBAAkB,CAACF,EAAG,YAAY,CAACO,MAAM,CAAC,OAAS,GAAG,UAAY,GAAG,YAAc,YAAYC,MAAM,CAACC,MAAOb,EAAIc,KAAS,KAAEC,SAAS,SAAUC,GAAMhB,EAAIiB,KAAKjB,EAAIc,KAAM,OAAQE,IAAME,WAAW,cAAc,CAACd,EAAG,aAAa,CAACO,MAAM,CAAC,KAAO,SAAS,KAAO,QAAQ,KAAO,WAAWQ,GAAG,CAAC,MAAQnB,EAAIoB,UAAUC,KAAK,UAAU,CAACrB,EAAIU,GAAGV,EAAIsB,GAAGtB,EAAIu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45ea8ece.js","sourcesContent":["import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../node_modules/css-loader/index.js??ref--10-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./loginActive.vue?vue&type=style&index=0&id=4cd22274&lang=less&scoped=true&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../node_modules/css-loader/index.js??ref--10-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./loginActive.vue?vue&type=style&index=0&id=4cd22274&lang=less&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"login\",style:({ minHeight: _vm.bodyHeight + 'px' })},[_c('div',{staticClass:\"section\"},[_c('h2',[_vm._v(\"手机号\")]),_c('van-cell-group',{staticClass:\"form-container top\"},[_c('van-field',{attrs:{\"center\":\"\",\"clearable\":\"\",\"placeholder\":\"请输入手机号\"},model:{value:(_vm.form.phone),callback:function ($$v) {_vm.$set(_vm.form, \"phone\", $$v)},expression:\"form.phone\"}})],1),_c('h2',[_vm._v(\"验证码\")]),_c('van-cell-group',{staticClass:\"form-container\"},[_c('van-field',{attrs:{\"center\":\"\",\"clearable\":\"\",\"placeholder\":\"请输入短信验证码\"},model:{value:(_vm.form.code),callback:function ($$v) {_vm.$set(_vm.form, \"code\", $$v)},expression:\"form.code\"}},[_c('van-button',{attrs:{\"slot\":\"button\",\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":_vm.sendCode},slot:\"button\"},[_vm._v(_vm._s(_vm.smsText))])],1)],1),_c('div',{staticClass:\"btn-group\"},[_c('van-button',{staticClass:\"btn\",attrs:{\"size\":\"large\"},on:{\"click\":_vm.onSubmit}},[_vm._v(\"登录\")])],1)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"login\" :style=\"{ minHeight: bodyHeight + 'px' }\">\r\n <div class=\"section\">\r\n <h2>手机号</h2>\r\n <van-cell-group class=\"form-container top\">\r\n <van-field v-model=\"form.phone\"\r\n center\r\n clearable\r\n placeholder=\"请输入手机号\" >\r\n </van-field>\r\n </van-cell-group>\r\n <h2>验证码</h2>\r\n <van-cell-group class=\"form-container\">\r\n <van-field v-model=\"form.code\" center\r\n clearable\r\n placeholder=\"请输入短信验证码\" >\r\n <van-button slot=\"button\" @click=\"sendCode\" size=\"small\" type=\"primary\">{{ smsText }}</van-button>\r\n </van-field>\r\n </van-cell-group>\r\n\r\n <div class=\"btn-group\">\r\n <van-button size=\"large\" @click=\"onSubmit\" class=\"btn\">登录</van-button>\r\n </div>\r\n </div>\r\n \r\n \r\n\r\n </div>\r\n</template>\r\n\r\n<script>\r\n/* eslint-disable */\r\nimport qs from 'qs'\r\nexport default {\r\n name: 'login',\r\n data() {\r\n return {\r\n bodyHeight: 0,\r\n popupStatus: false,\r\n popupCodeStatus: false, // 发送验证码弹窗\r\n smsText: '发送验证码',\r\n popupText: '',\r\n codeStatus: true, // 是否可以发送验证码\r\n btnStatus: true, \r\n form: {\r\n phone: null,\r\n code: null\r\n }\r\n }\r\n },\r\n created() {\r\n this.bodyHeight = document.documentElement.clientHeight\r\n },\r\n mounted() {\r\n \r\n },\r\n methods: {\r\n codeBlur() {\r\n setTimeout(() => {\r\n const scrollHeight = document.documentElement.scrollTop || document.body.scrollTop || 0;\r\n window.scrollTo(0, Math.max(scrollHeight - 1, 0));\r\n }, 100);\r\n },\r\n onSubmit() {\r\n let form = this.form\r\n if(!(/^1(3|4|5|6|7|8|9)\\d{9}$/.test(form.phone))){ \r\n this.$toast('手机号输入有误')\r\n return false; \r\n }\r\n\r\n this.$axios.get(`/user/getMecUser?phone=${form.phone}&smsCode=${form.code}`).then((response) => {\r\n let result = response.data\r\n console.log(result)\r\n if(result.code == 200) {\r\n this.$router.push({\r\n path: '/activePay/' + new Date().getTime(),\r\n query: {\r\n userId: result.data.userId,\r\n branchId: result.data.branchId\r\n }\r\n })\r\n } else {\r\n this.$toast(result.msg)\r\n }\r\n })\r\n },\r\n checkCode() {\r\n let params = this.$route.query\r\n let code = this.form.code\r\n if(code.length >= 6) {\r\n this.$axios.post('/user/verifySmsCode', qs.stringify({\r\n smsCode: code,\r\n mobile: this.form.phone\r\n })).then(res => {\r\n let result = res.data\r\n if(result.status) {\r\n this.$router.push({\r\n path: 'register',\r\n query: {\r\n phone: this.form.phone,\r\n cityId: params.cityId,\r\n classId: this.dataList.classId,\r\n schoolId: params.schoolId,\r\n status: this.dataList.status, // 当前乐团状态\r\n schoolName: this.dataList.schoolName,\r\n branchId: this.dataList.branchId\r\n }\r\n })\r\n } else {\r\n this.$toast('验证码输入有误')\r\n this.form.code = ''\r\n }\r\n })\r\n }\r\n },\r\n sendCode() {\r\n if(!(/^1(3|4|5|6|7|8|9)\\d{9}$/.test(this.form.phone))){ \r\n this.$toast('手机号输入有误')\r\n return false; \r\n }\r\n // 发送短信验证码\r\n if(!this.codeStatus) {\r\n return false\r\n }\r\n this.$axios.get('/user/sendSmsCode?mobile=' + this.form.phone).then(res => {\r\n let result = res.data\r\n this.codeStatus = false\r\n this.CountDown()\r\n })\r\n },\r\n CountDown() {\r\n let s = 120\r\n this.smsText = s + '秒'\r\n let timer = setInterval(() => {\r\n if(s <= 0) {\r\n this.codeStatus = true\r\n this.smsText = '发送验证码'\r\n clearInterval(timer)\r\n } else {\r\n s--\r\n this.smsText = s + '秒'\r\n }\r\n }, 1000)\r\n },\r\n }\r\n}\r\n</script>\r\n\r\n<style lang=\"less\" scoped>\r\n.login {\r\n width: 100vw;\r\n height: 100vh;\r\n background: url('../assets/bg1.png') no-repeat center top;\r\n background-size: cover;\r\n overflow: hidden;\r\n position: relative;\r\n // display: flex;\r\n // justify-content: center;\r\n // align-items: center;\r\n}\r\n\r\n.section {\r\n margin-top: 2.8rem;\r\n padding: 0 .25rem;\r\n // transform: translateY(.7rem);\r\n h2 {\r\n font-size: .16rem;\r\n color: #FFFFFF;\r\n }\r\n}\r\n.form-container {\r\n background: transparent;\r\n &.top {\r\n margin-bottom: .3rem;\r\n }\r\n .van-cell {\r\n background: transparent;\r\n padding-left: 0;\r\n border-bottom: 1px solid #fff;\r\n /deep/.van-field__control {\r\n font-size: .16rem;\r\n color: #fff;\r\n }\r\n }\r\n \r\n}\r\n/deep/.van-hairline--top-bottom::after, /deep/.van-hairline-unset--top-bottom::after {\r\n border-width: 0;\r\n}\r\n/deep/.van-button--primary {\r\n background: transparent;\r\n border: 1px solid #fff;\r\n border-radius: 30px;\r\n}\r\n\r\n.btn {\r\n margin-top: .3rem;\r\n margin-bottom: .2rem;\r\n border-radius: 1rem;\r\n background:linear-gradient(270deg,rgba(242,209,163,1) 0%,rgba(188,130,76,1) 100%);\r\n border: 0;\r\n color: #fff;\r\n font-size: .18rem;\r\n}\r\n\r\ninput, textarea {\r\n -webkit-user-select: auto!important;\r\n -khtml-user-select: auto!important;\r\n -moz-user-select: auto!important;\r\n -ms-user-select: auto!important;\r\n -o-user-select: auto!important;\r\n user-select: auto!important;\r\n}\r\n</style>","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!./loginActive.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!./loginActive.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./loginActive.vue?vue&type=template&id=4cd22274&scoped=true&\"\nimport script from \"./loginActive.vue?vue&type=script&lang=js&\"\nexport * from \"./loginActive.vue?vue&type=script&lang=js&\"\nimport style0 from \"./loginActive.vue?vue&type=style&index=0&id=4cd22274&lang=less&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 \"4cd22274\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
|