login.js.map 14.0 KB
{"version":3,"sources":["uni-app:///main.js","webpack:///F:/minigroup/Bitcoin/pages/login/login.vue?ca14","webpack:///F:/minigroup/Bitcoin/pages/login/login.vue?22cd","webpack:///F:/minigroup/Bitcoin/pages/login/login.vue?c64c","webpack:///F:/minigroup/Bitcoin/pages/login/login.vue?bcb8","uni-app:///pages/login/login.vue","webpack:///F:/minigroup/Bitcoin/pages/login/login.vue?d6bd","webpack:///F:/minigroup/Bitcoin/pages/login/login.vue?8ab9"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,6F,6FAFmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC;AAGnBC,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACc;;;AAGlE;AAC2N;AAC3N,gBAAgB,mOAAU;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;AAA62B,CAAgB,63BAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACiCj4B;AACA,8D;AACA;AACA,MADA,kBACA;AACA;AACA,iBADA;AAEA,kBAFA;;AAIA,GANA;AAOA;AACA,UADA,oBACA;AACA;AACA,oCADA;;AAGA,KALA;AAMA,YANA,sBAMA;AACA;AACA,oCADA;;AAGA,KAVA;AAWA;AACA,WAZA,qBAYA;AACA;AACA;AACA;AACA,KAhBA;AAiBA,SAjBA,mBAiBA;;AAEA,mEAFA,SAEA,GAFA;AAGA;AACA;AACA;AACA;AACA;AACA,iBAFA,EAEA,GAFA;AAGA;AACA,2CADA;;AAGA;AAZA;AAcA;AACA,kDAfA;;AAiBA,KAlCA,EAPA,E;;;;;;;;;;;;;ACnCA;AAAA;AAAA;AAAA;AAAgnD,CAAgB,okDAAG,EAAC,C;;;;;;;;;;;ACApoD;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 \"!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\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 \"-!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\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 \"-!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\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 \"-!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./login.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"login\">\n\t\t<view class=\"icon\">\n\t\t\t<image class=\"bgimg\" src=\"../../static/ic_logo.png\" mode=\"\"></image>\n\n\t\t\t<view class=\"bar flexwrap\">\n\t\t\t\t<view class=\"name\">\n\t\t\t\t\t用户名:\n\t\t\t\t</view>\n\t\t\t\t<view class=\"last name\">\n\t\t\t\t\t<input v-model=\"account\" maxlength=\"16\" type=\"text\" value=\"\" placeholder=\"请输入用户名\" />\n\t\t\t\t</view>\n\t\t\t</view>\n\t\t\t<view class=\"bar flexwrap\">\n\t\t\t\t<view class=\"name\">\n\t\t\t\t\t密码:\n\t\t\t\t</view>\n\t\t\t\t<view class=\"last name\">\n\t\t\t\t\t<input v-model=\"password\"  maxlength=\"16\"  type=\"text\" value=\"\" placeholder=\"密码:\" />\n\t\t\t\t</view>\n\t\t\t</view>\n\t\t\t<view class=\"loginbtn\" @click=\"doLogin\">\n\t\t\t\t登录\n\t\t\t</view>\n\t\t\t<view class=\"passway\">\n\t\t\t\t<text @click=\"forget\">忘记密码</text>\n\t\t\t\t<text @click=\"register\">没有账号,去注册</text>\n\t\t\t</view>\n\t\t</view>\n\t</view>\n</template>\n\n<script>\r\n\timport { login } from '@/api/login.js'\r\n\timport {toa } from '@/utils/toast.js'\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\taccount:'',\r\n\t\t\t\tpassword:''\n\t\t\t};\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tforget() {\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:'/pages/login/password'\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tregister(){\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:'/pages/login/register'\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t// 登录\r\n\t\t\tdoLogin(){\r\n\t\t\t\tif(!this.account) return toa.toast('请输入账号')\r\n\t\t\t\tif(!this.password) return toa.toast('请输入密码')\r\n\t\t\t\tthis.login()\r\n\t\t\t},\r\n\t\t\tasync login(){\r\n\t\t\t  try {\r\n\t\t\t    const res = await login(this.account,this.password)\r\n\t\t\t    console.log('login', res)\r\n\t\t\t\tuni.setStorageSync('userInfo',res.userinfo)\r\n\t\t\t\tuni.setStorageSync('token',res.userinfo.token)\r\n\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\ttoa.success('登录成功')\r\n\t\t\t\t},200)\r\n\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\turl:'/pages/index/index'\r\n\t\t\t\t})\r\n\t\t\t    // 保存数据\r\n\t\t\t  } catch (err) {\r\n\t\t\t \tuni.showToast({ title:err,icon:'none' })\r\n\t\t\t    console.log('login', err)\r\n\t\t\t  }\r\n\t\t\t},\r\n\t\t},\n\t}\n</script>\n\n<style lang=\"scss\">\n\t.login {\n\t\tpadding: 0 48rpx;\n\t\tbox-sizing: border-box;\n\n\t\t.icon {\n\t\t\t.bgimg {\n\t\t\t\tmargin-top: 100rpx;\n\t\t\t\tmargin-left: 50%;\n\t\t\t\ttransform: translate(-50%);\n\t\t\t\tmargin-bottom: 24rpx;\n\t\t\t\twidth: 184rpx;\n\t\t\t\theight: 184rpx;\n\t\t\t}\n\n\t\t\t.bar {\n\t\t\t\tborder-bottom: 1px solid #f0f0f0;\n\t\t\t\tpadding: 40rpx 0;\n\t\t\t\tcolor: rgba(0, 0, 0, 1);\n\t\t\t\tfont-size: 32rpx;\n\t\t\t\tfont-weight: 500;\n\t\t\t\tfont-family: \"PingFang SC\";\n\n\t\t\t\t.name {\n\t\t\t\t\twidth: 180rpx;\n\t\t\t\t}\n\n\t\t\t\t.last {\r\n\t\t\t\t\tflex: 1;\n\t\t\t\t\t// width: 300rpx;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t.loginbtn {\n\t\t\t\tmargin-top: 100rpx;\n\t\t\t\twidth: 654rpx;\n\t\t\t\theight: 88rpx;\n\t\t\t\tborder-radius: 28rpx;\n\t\t\t\topacity: 1;\n\t\t\t\tcolor: rgba(0, 0, 0, 0.9);\n\t\t\t\tfont-size: 32rpx;\n\t\t\t\tfont-weight: 600;\n\t\t\t\tfont-family: \"PingFang SC\";\n\t\t\t\ttext-align: center;\n\t\t\t\tline-height: 88rpx;\n\t\t\t\tbackground: rgba(254, 208, 0, 1);\n\t\t\t}\n\n\t\t\t.passway {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: space-between;\n\t\t\t\tmargin-top: 16rpx;\n\n\t\t\t\ttext {\n\t\t\t\t\t&:first-child {\n\t\t\t\t\t\tcolor: rgba(0, 0, 0, 0.26);\n\t\t\t\t\t\tfont-size: 24rpx;\n\t\t\t\t\t\tfont-weight: 400;\n\t\t\t\t\t\tfont-family: \"PingFang SC\";\n\t\t\t\t\t}\n\n\t\t\t\t\t&:last-child {\n\t\t\t\t\t\tcolor: rgba(254, 208, 0, 1);\n\t\t\t\t\t\tfont-size: 26rpx;\n\t\t\t\t\t\tfont-weight: 400;\n\t\t\t\t\t\tfont-family: \"PingFang SC\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n</style>\n","import mod from \"-!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\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 \"-!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX.2.6.11.20200409\\\\HBuilderX.2.6.11.20200409\\\\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      // 1653887043477\n      var cssReload = require(\"E:/HBuilderX.2.6.11.20200409/HBuilderX.2.6.11.20200409/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":""}