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.
 
 
 
 
high-mini/unpackage/dist/dev/.sourcemap/mp-weixin/pages/login/login.js.map

1 lines
21 KiB

{"version":3,"sources":["uni-app:///main.js","webpack:////Users/yangjie/high-mini/pages/login/login.vue?1ed5","webpack:////Users/yangjie/high-mini/pages/login/login.vue?4be3","webpack:////Users/yangjie/high-mini/pages/login/login.vue?9ddb","webpack:////Users/yangjie/high-mini/pages/login/login.vue?d82d","uni-app:///pages/login/login.vue","webpack:////Users/yangjie/high-mini/pages/login/login.vue?da22","webpack:////Users/yangjie/high-mini/pages/login/login.vue?9366"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,4F;AACAA,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACmCzzB,6F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eACA,EACA,IADA,kBACA,CACA,SACA,eADA,EAEA,UAFA,EAGA,kBAHA,EAIA,gBACA,aADA,EAEA,SAFA,EAGA,gBAHA,EAIA,aAJA,EAJA,GAWA,CAbA,EAcA,MAdA,oBAcA,CAEA,CAhBA,EAiBA,MAjBA,oBAiBA,CACA;AAIA,uBAEA,CAxBA,EAyBA,WACA,UADA,sBACA,QADA,EACA,CACA,kBADA,CAEA;AACA,kBACA,kBADA,EAEA,qCACA,oDADA,CAEA;AACA,4BACA,kBADA,EAEA;AACA;AACA;AACA,+BADA;AAEA;AACA,qDADA;AAEA,kDAFA;AAGA,mCAHA;AAIA,6BAJA;AAKA,4BALA;AAMA,6BANA,EAFA;;AAUA;AACA;AACA;AACA;AACA;AACA,mBAFA,EAEA,GAFA;AAGA,iBAhBA;;AAkBA,aAtBA;;AAwBA,SA7BA;AA8BA;AACA;AACA,SAhCA;;AAkCA,KAtCA;AAuCA,eAvCA,yBAuCA;AACA;AACA;AACA,wBADA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAXA;;AAaA,KAtDA;AAuDA,UAvDA,kBAuDA,IAvDA,EAuDA;AACA;AACA;AACA,iBADA;;AAGA,KA5DA;AA6DA,WA7DA,qBA6DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBADA;;AAGA;AACA;AACA;AACA;AACA,yBADA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAFA,MAEA;AACA;AACA;AACA;AACA;AACA,WAfA;AAgBA;AACA;AACA;AACA,WAnBA;;AAqBA,OAvBA,EAuBA,IAvBA;AAwBA,KAhGA,EAzBA,E;;;;;;;;;;;;;ACpCA;AAAA;AAAA;AAAA;AAAs8C,CAAgB,63CAAG,EAAC,C;;;;;;;;;;;ACA19C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/login/login.js","sourcesContent":["import 'uni-pages';\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>\r\n <view class=\"logo\">\r\n\t\t\t<view class=\"img\">\r\n\t\t\t\t<image mode=\"widthFix\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAMAAAC3Ycb+AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABhQTFRF//////NxTz08/HlRmtzPfHJq5evssrCmR4PFPwAADilJREFUeNrsnY124yoMhIkbSe//xtuk7caxwWgAJ0Dma/eec8+GxWg8QuCfhEAIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQggh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iDgmdO0Smc0jm73X/wzmkmUN2G8byVKjJ7cmn5z+LbL4U9f67Ltuk9o/Ev5DKjlotUzrkjFtxl7q1Eb7ImmgO6UePyLcfSbmWozpEl46w4o26eeYQ60mQrUWmECT1jQQjCLIUX1uw4QR5pCzp2CHFKas7QTQ9MW4HZy02i19UZpWXA71Y5ODIpDZPv9wg/ntqevyy6PuxS/bLTq140G9YhjgN3KE/7sdupo5PaGSbynpAE5cW8g371KNGyg5+Kw6QEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIVH+CTAA2PXaRL7YfsgAAAAASUVORK5CYII=\"></image>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 账号密码输入框 -->\r\n\t\t<view class=\"form\">\r\n\t\t\t<view class=\"username\">\r\n\t\t\t\t<input placeholder=\"请输入手机号\" v-model=\"phoneNumber\" placeholder-style=\"color: rgba(255,255,255,0.8);\"/>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"password\">\r\n\t\t\t\t<input placeholder=\"请输入密码\" v-model=\"passwd\" password=true placeholder-style=\"color: rgba(255,255,255,0.8);\"/>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"btn\" @tap=\"doLogin\">登 录</view>\r\n\t\t\t<view class=\"res\">\r\n\t\t\t\t<view @tap=\"toPage('register')\">用户注册</view>\r\n\t\t\t\t<view @tap=\"toPage('resetpasswd')\">忘记密码</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 第三方登录 -->\r\n\t\t<view class=\"oauth\" v-if=\"isShowOauth\">\r\n\t\t\t<view class=\"text\">— 快速登录 —</view>\r\n\t\t\t<view class=\"list\">\r\n\t\t\t\t<view @tap=\"oauthLogin('weixin')\" v-if=\"showProvider.weixin\" class=\"icon weixin\"></view>\r\n\t\t\t\t<view @tap=\"oauthLogin('qq')\" v-if=\"showProvider.qq\" class=\"icon qq\"></view>\r\n\t\t\t\t<view @tap=\"oauthLogin('sinaweibo')\" v-if=\"showProvider.sinaweibo\" class=\"icon sinaweibo\"></view>\r\n\t\t\t\t<!-- <view @tap=\"oauthLogin('xiaomi')\" v-if=\"showProvider.xiaomi\" class=\"icon xiaomi\"></view> -->\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport md5 from \"@/common/SDK/md5.min.js\";\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tphoneNumber: '',\r\n\t\t\t\tpasswd:'',\r\n\t\t\t\tisShowOauth:false,\r\n\t\t\t\tshowProvider:{\r\n\t\t\t\t\tweixin:false,\r\n\t\t\t\t\tqq:false,\r\n\t\t\t\t\tsinaweibo:false,\r\n\t\t\t\t\txiaomi:false\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\t\r\n\t\t},\r\n\t\tonLoad() {\r\n\t\t\t//APP显示第三方登录\r\n\t\t\t// #ifdef APP-PLUS\r\n\t\t\t\tthis.isShowOauth=true;\r\n\t\t\t// #endif\r\n\t\t\tthis.getProvider();\r\n\t\t\t\r\n\t\t}, \r\n\t\tmethods: {\r\n\t\t\toauthLogin(provider){\r\n\t\t\t\tuni.showLoading();\r\n\t\t\t\t//第三方登录\r\n\t\t\t\tuni.login({\r\n\t\t\t\t\tprovider: provider,\r\n\t\t\t\t\tsuccess: (loginRes)=>{\r\n\t\t\t\t\t\tconsole.log(\"success: \"+JSON.stringify(loginRes));\r\n\t\t\t\t\t\t//案例直接获取用户信息,一般不是在APP端直接获取用户信息,比如微信,获取一个code,传递给后端,后端再去请求微信服务器获取用户信息\r\n\t\t\t\t\t\tuni.getUserInfo({\r\n\t\t\t\t\t\t\tprovider: provider,\r\n\t\t\t\t\t\t\tsuccess: (infoRes)=>{\r\n\t\t\t\t\t\t\t\tconsole.log('用户信息:' + JSON.stringify(infoRes.userInfo));\r\n\t\t\t\t\t\t\t\tuni.setStorage({\r\n\t\t\t\t\t\t\t\t\tkey: 'UserInfo',\r\n\t\t\t\t\t\t\t\t\tdata: {\r\n\t\t\t\t\t\t\t\t\t\tusername:infoRes.userInfo.nickName,\r\n\t\t\t\t\t\t\t\t\t\tface:infoRes.userInfo.avatarUrl,\r\n\t\t\t\t\t\t\t\t\t\tsignature:'个性签名',\r\n\t\t\t\t\t\t\t\t\t\tintegral:0,\r\n\t\t\t\t\t\t\t\t\t\tbalance:0,\r\n\t\t\t\t\t\t\t\t\t\tenvelope:0\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\tsuccess: function () {\r\n\t\t\t\t\t\t\t\t\t\tuni.hideLoading()\r\n\t\t\t\t\t\t\t\t\t\tuni.showToast({title: '登录成功',icon:\"success\"});\r\n\t\t\t\t\t\t\t\t\t\tsetTimeout(function(){\r\n\t\t\t\t\t\t\t\t\t\t\tuni.navigateBack();\r\n\t\t\t\t\t\t\t\t\t\t},300)\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\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\tfail:(e)=>{\r\n\t\t\t\t\t\tconsole.log(\"fail: \"+JSON.stringify(e));\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\tgetProvider(){\r\n\t\t\t\t//获取第三方登录服务\r\n\t\t\t\tuni.getProvider({\r\n\t\t\t\t\tservice: 'oauth',\r\n\t\t\t\t\tsuccess: (res)=>{\r\n\t\t\t\t\t\tlet len = res.provider.length;\r\n\t\t\t\t\t\tfor(let i=0;i<len;i++){\r\n\t\t\t\t\t\t\t//有服务才显示按钮图标\r\n\t\t\t\t\t\t\tthis.showProvider[res.provider[i]] = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(res.provider.length==0){\r\n\t\t\t\t\t\t\tthis.isShowOauth=false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\ttoPage(page){\r\n\t\t\t\tuni.hideKeyboard()\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl: page\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\tdoLogin(){\r\n\t\t\t\tuni.hideKeyboard();\r\n\t\t\t\t//验证手机号码\r\n\t\t\t\tif(!(/^1(3|4|5|6|7|8|9)\\d{9}$/.test(this.phoneNumber))){ \r\n\t\t\t\t\tuni.showToast({title: '请填写正确手机号码',icon:\"none\"});\r\n\t\t\t\t\treturn false; \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\t//模板示例比对本地储存的用户信息,实际使用中请替换为上传服务器比对。\r\n\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\tlet md5PW = md5(this.passwd)\r\n\t\t\t\t\tuni.getStorage({\r\n\t\t\t\t\t\tkey: 'UserList',\r\n\t\t\t\t\t\tsuccess: (res)=>{\r\n\t\t\t\t\t\t\tfor(let i in res.data){\r\n\t\t\t\t\t\t\t\tlet row = res.data[i];\r\n\t\t\t\t\t\t\t\tif(row.username==this.phoneNumber){\r\n\t\t\t\t\t\t\t\t\tuni.hideLoading()\r\n\t\t\t\t\t\t\t\t\t//比对密码\r\n\t\t\t\t\t\t\t\t\tif(md5PW == res.data[i].passwd){\r\n\t\t\t\t\t\t\t\t\t\tuni.showToast({title: '登录成功',icon:\"success\"});\r\n\t\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\t\tuni.showToast({title: '账号或密码不正确',icon:\"none\"});\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tfail:function(e){\r\n\t\t\t\t\t\t\tuni.hideLoading()\r\n\t\t\t\t\t\t\tuni.showToast({title: '手机号码未注册',icon:\"none\"});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t},1000)\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 \"../../static/css/login.scss\";\r\n\t\r\n\t.form {\r\n\t\t.res {\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: space-between;\r\n\t\t\talign-items: center;\r\n\t\t\theight: 100upx;\r\n\t\t\tcolor: rgba($color: #ffffff, $alpha: 0.8);\r\n\t\t}\r\n\t}\r\n\t.oauth{\r\n\t\t@media all and (max-height:150vw){\r\n\t\t\tdisplay: none;\r\n\t\t}\r\n\t\tposition: absolute;\r\n\t\tbottom: 50upx;\r\n\t\twidth: 100%;\r\n\t\t.text{\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 60upx;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\t\t\tcolor: rgba($color: #ffffff, $alpha: 0.8);\r\n\t\t\tfont-size: 28upx;\r\n\t\t}\r\n\t\t.list{\r\n\t\t\twidth: 100%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\t\t\tpadding: 20upx 0;\r\n\t\t\t.icon{\r\n\t\t\t\tfont-size:80upx;\r\n\t\t\t\tmargin: 0 30upx;\r\n\t\t\t}\r\n\t\t}\r\n\t}\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 // 1616398079152\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":""}