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.
1 lines
15 KiB
1 lines
15 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:///F:/项目2/Jinan_app/Jinan_app/pages/login/login.vue?d1cd","webpack:///F:/项目2/Jinan_app/Jinan_app/pages/login/login.vue?c6ef","webpack:///F:/项目2/Jinan_app/Jinan_app/pages/login/login.vue?7a58","webpack:///F:/项目2/Jinan_app/Jinan_app/pages/login/login.vue?b570","uni-app:///pages/login/login.vue","webpack:///F:/项目2/Jinan_app/Jinan_app/pages/login/login.vue?e2e3","webpack:///F:/项目2/Jinan_app/Jinan_app/pages/login/login.vue?0084"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,4F,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACc;;;AAGlE;AAC+L;AAC/L,gBAAgB,wMAAU;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,WAAW,mBAAO,CAAC,mCAA2B;;AAE9C,WAAW,mBAAO,CAAC,kCAA0B;;AAE7C;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACrBA;AAAA;AAAA;AAAA;AAAiuB,CAAgB,svBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC+CrvB,+E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eACA,EACA,IADA,kBACA,CACA,SACA,cADA,EAGA,QACA,QADA,EAEA,YAFA,EAGA,WAHA,EAHA,GASA,CAXA,EAYA,MAZA,oBAYA,CACA,iCACA,wCACA,eACA,yBADA,EAEA,iCAFA,EAGA,wBAHA,EAIA,gCAJA,IAMA,CACA,CAtBA,EAuBA,WACA,WADA,yBACA,kBACA,cACA,sBACA,wCACA,CACA,0BACA,sCACA,CACA,kBACA,YADA,IAGA,gBACA,6CACA,wBADA,EAEA,4BAFA,IAGA,sBACA,kBACA,0BACA,0CACA,CACA,iCACA;AACA;AACA;AACA;AACA;AACA;AACA,qCADA;;;AAIA,SAPA;;AASA;;AAEA,OAtBA;AAuBA,KApCA;AAqCA,YArCA,sBAqCA;AACA;AACA;AACA;AACA,OAFA;AAGA,KA1CA,EAvBA,E;;;;;;;;;;;;;AChDA;AAAA;AAAA;AAAA;AAAo3C,CAAgB,i1CAAG,EAAC,C;;;;;;;;;;;ACAx4C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/login/login.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__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 \"!D:\\\\HBuilderX.3.4.7.20220422\\\\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 \"-!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX.3.4.7.20220422\\\\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 var m0 = require(\"@/static/login/banner.jpg\")\n\n var m1 = require(\"@/static/login/title.png\")\n\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n m0: m0,\n m1: m1\n }\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX.3.4.7.20220422\\\\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 \"-!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX.3.4.7.20220422\\\\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=\"page\">\r\n\t\t<view class=\"top\">\r\n\t\t\t<img src=\"@/static/login/banner.jpg\" alt=\"\">\r\n\t\t\t<view class=\"tops\">\r\n\r\n\t\t\t</view>\r\n\t\t</view>\r\n\r\n\t\t<view class=\"items\">\r\n\t\t\t<view class=\"title\">\r\n\t\t\t\t<img mode=\"widthFix\" src=\"@/static/login/title.png\" alt=\"\">\r\n\t\t\t\t<view class=\"text\">\r\n\t\t\t\t\t欢迎登录防消一体化综合治理平台\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"item\">\r\n\t\t\t\t<view class=\"label\">\r\n\t\t\t\t\t账号\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"input\">\r\n\t\t\t\t\t<input v-model=\"form.name\" type=\"text\" placeholder=\"请输入账号\">\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"item\">\r\n\t\t\t\t<view class=\"label\">\r\n\t\t\t\t\t密码\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"input\">\r\n\t\t\t\t\t<input v-model=\"form.password\" type=\"password\" placeholder=\"请输入密码\">\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"item\">\r\n\t\t\t\t<!-- <label>\r\n\t\t\t\t\t<checkbox :value=\"form.auto\" /><text>自动登录</text>\r\n\t\t\t\t</label> -->\r\n\t\t\t</view>\r\n\t\t\t<view class=\"button\">\r\n\t\t\t\t<button @tap=\"getUserInfo()\">登录</button>\r\n\t\t\t\t<!-- <button @tap=\"getToken()\">登录</button> -->\r\n\t\t\t</view>\r\n\t\t</view>\r\n\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport store from '@/store.js'\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\ttitle: 'Hello',\r\n\r\n\t\t\t\tform: {\r\n\t\t\t\t\tname: \"\",\r\n\t\t\t\t\tpassword: \"\",\r\n\t\t\t\t\tauto: false,\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad() {\r\n\t\t\tif (store.state.token) {\r\n\t\t\t\tconsole.log(store.state.token);\r\n\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\turl: \"/pages/index/index\",\r\n\t\t\t\t\tsuccess: res => {},\r\n\t\t\t\t\tfail: () => {},\r\n\t\t\t\t\tcomplete: () => {},\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tgetUserInfo() {\r\n\t\t\t\tlet body = {}\r\n\t\t\t\tif (!this.form.name) {\r\n\t\t\t\t\treturn this.$alert.showError(\"请输入用户账号\")\r\n\t\t\t\t}\r\n\t\t\t\tif (!this.form.password) {\r\n\t\t\t\t\treturn this.$alert.showError(\"请输入密码\")\r\n\t\t\t\t}\r\n\t\t\t\tuni.showLoading({\r\n\t\t\t\t\ttitle: '登录中',\r\n\t\t\t\t});\r\n\t\t\t\tconst that = this\r\n\t\t\t\tthis.$request.post(\"/api/Accounts/SignIn\", {\r\n\t\t\t\t\tusername: this.form.name,\r\n\t\t\t\t\tpassword: this.form.password\r\n\t\t\t\t}, (data, res) => {\r\n\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t\tif (res.status == \"401\") {\r\n\t\t\t\t\t\treturn this.$alert.showError(\"用户名或密码错误\")\r\n\t\t\t\t\t}\r\n\t\t\t\t\tuni.setStorageSync(\"token\", res)\r\n\t\t\t\t\tthis.$store.commit('saveToken', res)\r\n\t\t\t\t\tconsole.log(store.state.token);\r\n\t\t\t\t\tthat.$request.get(\"/api/Accounts/Profile\", {}, (data, res) => {\r\n\t\t\t\t\t\tconsole.log(res);\r\n\t\t\t\t\t\tuni.setStorageSync(\"user\", res)\r\n\t\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\t\turl: \"/pages/index/index\",\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t})\r\n\t\t\t\t\t\r\n\t\t\t\t\t// return\r\n\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tgetToken() {\r\n\t\t\t\tlet user = store.state.token\r\n\t\t\t\tthis.$request.post(\"/api/Accounts/RefreshToken\",{token:user.token,refreshToken:user.refreshToken},(data,res)=>{\r\n\t\t\t\t\tconsole.log(res);\r\n\t\t\t\t})\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t.page {\r\n\t\tbackground-color: #FAFBFF;\r\n\t\tcolor: #808080;\r\n\r\n\t}\r\n\r\n\t.top {\r\n\t\twidth: 100%;\r\n\t\theight: 200rpx;\r\n\t\tposition: absolute;\r\n\r\n\t\timg {\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 200rpx;\r\n\t\t}\r\n\t}\r\n\r\n\t.tops {\r\n\t\theight: 40rpx;\r\n\t\tborder-radius: 20rpx 20rpx 0 0;\r\n\t\tposition: relative;\r\n\t\tz-index: 10;\r\n\t\tbackground-color: #FAFBFF;\r\n\t\tbottom: 30rpx;\r\n\t\tleft: 0;\r\n\t}\r\n\r\n\t.items {\r\n\t\t// width: 100%;\r\n\t\tmargin: 0 60rpx;\r\n\r\n\t\t.title {\r\n\t\t\t/* width: 748rpx; */\r\n\t\t\t// height: 68rpx;\r\n\t\t\t// line-height: 68rpx;\r\n\t\t\t// font-size: 50rpx;\r\n\t\t\t// font-weight: 500;\r\n\t\t\t// color: #317AFF;\r\n\t\t\tmargin: 240rpx 0 60rpx 0;\r\n\r\n\t\t\t.text {\r\n\t\t\t\tmargin-top: 20rpx;\r\n\t\t\t\tfont-size: 30rpx;\r\n\t\t\t\ttext-align: center;\r\n\t\t\t\tcolor: #939393;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tbutton {\r\n\t\t\twidth: 100%;\r\n\t\t\t// height: 140rpx;\r\n\t\t\t// background: linear-gradient(180deg, #317AFF 0%, #0052E6 100%);\r\n\t\t\tcolor: #fff;\r\n\t\t\tborder-radius: 120rpx;\r\n\t\t\tbackground: #4963F4;\r\n\t\t\tbox-shadow: 2px 6px 8px 1px rgba(73, 99, 244, 0.8);\r\n\t\t}\r\n\r\n\t\t.item {\r\n\t\t\tmargin: 60rpx 0;\r\n\r\n\t\t\t.label {\r\n\t\t\t\tfont-size: 32rpx;\r\n\t\t\t\t// color: rgba(16, 15, 25, 0.48);\r\n\t\t\t\tmargin-bottom: 30rpx;\r\n\t\t\t}\r\n\r\n\t\t\tlabel {\r\n\t\t\t\tcolor: #4963F4;\r\n\r\n\t\t\t\tcheckbox {\r\n\t\t\t\t\tborder: #4963F4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t.input {\r\n\t\t\t\t// border-bottom: 2rpx solid rgba(16, 15, 25, 0.16);\r\n\t\t\t\theight: 80rpx;\r\n\t\t\t\tbackground: #ECF2FF;\r\n\r\n\t\t\t\tinput {\r\n\t\t\t\t\theight: 100%;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\r\n\r\n\t\t}\r\n\t}\r\n</style>\n","import mod from \"-!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX.3.4.7.20220422\\\\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 \"-!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\HBuilderX.3.4.7.20220422\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX.3.4.7.20220422\\\\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 // 1662433872312\n var cssReload = require(\"D:/HBuilderX.3.4.7.20220422/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":""} |