You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
xuan-pay-cweb/unpackage/dist/dev/.sourcemap/mp-weixin/pages/login/login.js.map

1 lines
14 KiB

{"version":3,"sources":["uni-app:///main.js","webpack:////Users/jj/xuan-pay-cweb/pages/login/login.vue?dec9","webpack:////Users/jj/xuan-pay-cweb/pages/login/login.vue?5dc8","webpack:////Users/jj/xuan-pay-cweb/pages/login/login.vue?a055","webpack:////Users/jj/xuan-pay-cweb/pages/login/login.vue?0c26","uni-app:///pages/login/login.vue","webpack:////Users/jj/xuan-pay-cweb/pages/login/login.vue?245e","webpack:////Users/jj/xuan-pay-cweb/pages/login/login.vue?aed3"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;;;;;;;;;;;;kDAAA;AACA;AACA,4F,6FAFmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC;AAGnBC,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACc;;;AAGlE;AAC0M;AAC1M,gBAAgB,iNAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,gFAAM;AACR,EAAE,yFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAqyB,CAAgB,myBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACkBzzB,U;;AAEA;eACA;AACA,MADA,kBACA;AACA;AACA,mBADA,EACA;AACA,kBAFA,EAEA;AACA,qBAHA,EAGA;AACA,mBAJA,CAIA;AAJA;AAMA,GARA;AASA;AACA,kBADA;AAEA,oBAFA,EATA;;AAaA,SAbA,qBAaA;AACA;AACA;AACA,GAhBA;AAiBA;AACA,WADA,qBACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAhBA;AAiBA;AACA,cAlBA,sBAkBA,CAlBA,EAkBA;AACA;AACA;AACA,oBADA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,sBADA;AAEA,4BAFA;AAGA,0BAHA;;AAKA;AACA;AACA;AACA;AACA,sBADA;AAEA,4BAFA;AAGA,wBAHA;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCADA;;AAGA,OANA,EAMA,IANA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,KA3FA,EAjBA,E;;;;;;;;;;;;ACrBA;AAAA;AAAA;AAAA;AAAs8C,CAAgB,63CAAG,EAAC,C;;;;;;;;;;ACA19C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/login/login.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/login/login.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./login.vue?vue&type=template&id=b237504c&\"\nvar renderjs\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&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/login/login.vue\"\nexport default component.exports","export * from \"-!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./login.vue?vue&type=template&id=b237504c&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./login.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./login.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"login\">\r\n\t\t<view class=\"content\">\r\n\t\t\t<!-- 头部logo -->\r\n\t\t\t<view class=\"header\">\r\n\t\t\t\t<image src=\"../../static/logo.png\"></image>\r\n\t\t\t</view>\r\n\t\t\t<!-- 主体表单 -->\r\n\t\t\t<view class=\"main\">\r\n\t\t\t\t<wInput v-model=\"phoneData\" type=\"text\" maxlength=\"11\" placeholder=\"用户名/电话\" :focus=\"isFocus\"></wInput>\r\n\t\t\t\t<wInput v-model=\"passData\" type=\"password\" maxlength=\"11\" placeholder=\"密码\" isShowPass=\"true\"></wInput>\r\n\t\t\t</view>\r\n\t\t\t<wButton class=\"wbutton\" text=\"登 录\" :rotate=\"isRotate\" @click=\"startLogin\"></wButton>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\n\tlet _this;\r\n\timport wInput from '../../components/watch-login/watch-input.vue' //input\r\n\timport wButton from '../../components/watch-login/watch-button.vue' //button\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tphoneData: '', //用户/电话\r\n\t\t\t\tpassData: '', //密码\r\n\t\t\t\tisRotate: false, //是否加载旋转\r\n\t\t\t\tisFocus: true // 是否聚焦\r\n\t\t\t};\r\n\t\t},\r\n\t\tcomponents: {\r\n\t\t\twInput,\r\n\t\t\twButton,\r\n\t\t},\r\n\t\tmounted() {\r\n\t\t\t_this = this;\r\n\t\t\t//this.isLogin();\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tisLogin() {\r\n\t\t\t\t//判断缓存中是否登录过,直接登录\r\n\t\t\t\t// try {\r\n\t\t\t\t// \tconst value = uni.getStorageSync('setUserData');\r\n\t\t\t\t// \tif (value) {\r\n\t\t\t\t// \t\t//有登录信息\r\n\t\t\t\t// \t\tconsole.log(\"已登录用户:\",value);\r\n\t\t\t\t// \t\t_this.$store.dispatch(\"setUserData\",value); //存入状态\r\n\t\t\t\t// \t\tuni.reLaunch({\r\n\t\t\t\t// \t\t\turl: '../../../pages/index',\r\n\t\t\t\t// \t\t});\r\n\t\t\t\t// \t}\r\n\t\t\t\t// } catch (e) {\r\n\t\t\t\t// \t// error\r\n\t\t\t\t// }\r\n\t\t\t},\r\n\t\t\t//登录\r\n\t\t\tstartLogin(e) {\r\n\t\t\t\tconsole.log(e)\r\n\t\t\t\tuni.showLoading({\n\t\t\t\t\ttitle: '登录中'\n\t\t\t\t});\r\n\t\t\t\tif (this.isRotate) {\r\n\t\t\t\t\t//判断是否加载中,避免重复点击请求\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tif (this.phoneData.length == \"\") {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ticon: 'none',\r\n\t\t\t\t\t\tposition: 'bottom',\r\n\t\t\t\t\t\ttitle: '用户名不能为空'\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (this.passData.length < 5) {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ticon: 'none',\r\n\t\t\t\t\t\tposition: 'bottom',\r\n\t\t\t\t\t\ttitle: '密码不正确'\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t_this.isRotate = true\r\n\t\t\t\tsetTimeout(function() {\r\n\t\t\t\t\t_this.isRotate = false;\r\n\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\turl: '../tabBar/home/home'\r\n\t\t\t\t\t})\r\n\t\t\t\t}, 3000)\r\n\t\t\t\t// uni.showLoading({\r\n\t\t\t\t// \ttitle: '登录中'\r\n\t\t\t\t// });\r\n\t\t\t\t// getLogin()\r\n\t\t\t\t// .then(res => {\r\n\t\t\t\t// \t//console.log(res)\r\n\t\t\t\t// \t//简单验证下登录(不安全)\r\n\t\t\t\t// \tif(_this.phoneData==res.data.username && _this.passData==res.data.password){\r\n\t\t\t\t// \t\tlet userdata={\r\n\t\t\t\t// \t\t\t\"username\":res.data.username,\r\n\t\t\t\t// \t\t\t\"nickname\":res.data.nickname,\r\n\t\t\t\t// \t\t\t\"accesstoken\":res.data.accesstoken,\r\n\t\t\t\t// \t\t} //保存用户信息和accesstoken\r\n\t\t\t\t// \t\t_this.$store.dispatch(\"setUserData\",userdata); //存入状态\r\n\t\t\t\t// \t\ttry {\r\n\t\t\t\t// \t\t\tuni.setStorageSync('setUserData', userdata); //存入缓存\r\n\t\t\t\t// \t\t} catch (e) {\r\n\t\t\t\t// \t\t\t// error\r\n\t\t\t\t// \t\t}\r\n\t\t\t\t// \t\tuni.showToast({\r\n\t\t\t\t// \t\t\ticon: 'success',\r\n\t\t\t\t// \t\t\tposition: 'bottom',\r\n\t\t\t\t// \t\t\ttitle: '登录成功'\r\n\t\t\t\t// \t\t});\r\n\t\t\t\t// \t\tuni.reLaunch({\r\n\t\t\t\t// \t\t\turl: '../../../pages/index',\r\n\t\t\t\t// \t\t});\r\n\t\t\t\t// \t}else{\r\n\t\t\t\t// \t\t_this.passData=\"\"\r\n\t\t\t\t// \t\tuni.showToast({\r\n\t\t\t\t// \t\t\ticon: 'error',\r\n\t\t\t\t// \t\t\tposition: 'bottom',\r\n\t\t\t\t// \t\t\ttitle: '账号或密码错误,账号admin密码admin'\r\n\t\t\t\t// \t\t});\r\n\t\t\t\t// \t}\r\n\t\t\t\t// \tuni.hideLoading();\r\n\t\t\t\t// }).catch(err => {\r\n\t\t\t\t// \tuni.hideLoading();\r\n\t\t\t\t// })\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t@import url(\"../../components/watch-login/css/icon.css\");\r\n\t@import url(\"./css/main.css\");\r\n</style>\n","import mod from \"-!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./login.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./login.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1640240945267\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}