1 |
- {"version":3,"sources":["uni-app:///main.js","webpack:///D:/yzm/worknew/wardrobe/pages/login/index.vue?31ea","webpack:///D:/yzm/worknew/wardrobe/pages/login/index.vue?3088","webpack:///D:/yzm/worknew/wardrobe/pages/login/index.vue?4d98","webpack:///D:/yzm/worknew/wardrobe/pages/login/index.vue?c01c","uni-app:///pages/login/index.vue","webpack:///D:/yzm/worknew/wardrobe/pages/login/index.vue?f77b","webpack:///D:/yzm/worknew/wardrobe/pages/login/index.vue?d0da"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,6F,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;AACgM;AAChM,gBAAgB,0MAAU;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,aAAa,2OAEN;AACP,KAAK;AACL;AACA,aAAa,yQAEN;AACP,KAAK;AACL;AACA,aAAa,yNAEN;AACP,KAAK;AACL;AACA,aAAa,2OAEN;AACP,KAAK;AACL;AACA,aAAa,+NAEN;AACP,KAAK;AACL;AACA,aAAa,2RAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACnEA;AAAA;AAAA;AAAA;AAAmvB,CAAgB,gwBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC4BvwB,+D;;;;;;;;;;;;;;;;;;;;;;;;;;;eACA,EACA,IADA,kBACA,CACA,SACA,cADA,EAEA,WACA,UADA,EAEA,YAFA,EAFA,GAOA,CATA,EAUA,MAVA,oBAUA,CAEA,CAZA,EAaA,OAbA,qBAaA,CACA,mCACA,CAfA,EAgBA,WACA,KADA,mBACA,CACA,iBACA,yBADA,IAGA,CALA,EAMA,MANA,oBAMA,CACA,gBACA,gCACA,0DACA;AACA,OAHA,MAGA;AACA;AACA;AACA,OAHA,MAGA;AACA;AACA;AACA;AACA;AACA,+BADA;AAEA,sBAFA;AAGA,0BAHA;AAIA,UAJA,CAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCADA;;AAGA,WAJA,EAIA,IAJA;AAKA,SAVA,MAUA;AACA;AACA;AACA,OAnBA;;AAqBA,KAvCA;AAwCA,SAxCA,mBAwCA;AACA;AACA,sCADA;;AAGA,KA5CA;AA6CA,WA7CA,qBA6CA;AACA;AACA,mCADA;;AAGA,KAjDA,EAhBA,E;;;;;;;;;;;;;AC7BA;AAAA;AAAA;AAAA;AAAk5C,CAAgB,m2CAAG,EAAC,C;;;;;;;;;;;ACAt6C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/login/index.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/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=4586967a&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../exe/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/index.vue\"\nexport default component.exports","export * from \"-!../../../../exe/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!../../../../exe/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!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../exe/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!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=template&id=4586967a&\"","var components\ntry {\n components = {\n tmMenubars: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-menubars/tm-menubars\" */ \"@/tm-vuetify/components/tm-menubars/tm-menubars.vue\"\n )\n },\n tmForm: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-form/tm-form\" */ \"@/tm-vuetify/components/tm-form/tm-form.vue\"\n )\n },\n tmInput: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-input/tm-input\" */ \"@/tm-vuetify/components/tm-input/tm-input.vue\"\n )\n },\n tmCheckbox: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-checkbox/tm-checkbox\" */ \"@/tm-vuetify/components/tm-checkbox/tm-checkbox.vue\"\n )\n },\n tmButton: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-button/tm-button\" */ \"@/tm-vuetify/components/tm-button/tm-button.vue\"\n )\n },\n tmMessage: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-message/tm-message\" */ \"@/tm-vuetify/components/tm-message/tm-message.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var g0 = _vm.$tm.vx.state()\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0\n }\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../exe/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!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../exe/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!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../exe/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!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../exe/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!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view :style=\"{ minHeight: sys.windowHeight + 'px' }\"\r\n\t\t:class=\"[$tm.vx.state().tmVuetify.black ? 'black' : ' ']\">\r\n\t\t<tm-menubars title=\"\" :shadow=\"0\" :showback=\"false\"></tm-menubars>\r\n\t\t<view class=\"tou C1b1b1b\">登录</view>\r\n\t\t<view class=\"zhuti\">\r\n\t\t\t<tm-form>\r\n\t\t\t\t<view class=\"tel text-size-m mt-50\">手机号码</view>\r\n\t\t\t\t<tm-input name=\"title\" input-type=\"number\" v-model=\"reqData.mobile\"></tm-input>\r\n\t\t\t\t<view class=\"mima\">\r\n\t\t\t\t\t<tm-input name=\"title\" password v-model=\"reqData.password\" placeholder=\"登录密码\"></tm-input>\r\n\t\t\t\t\t<view class=\"wangji text-size-s\" @click=\"zhaohui()\">忘记密码?</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"py-10 text-size-s mt-30\">\r\n\t\t\t\t\t<tm-checkbox :size=\"32\" color=\"bg-gradient-primary-accent\" v-model=\"checked\" round=\"rounded\"></tm-checkbox>\r\n\t\t\t\t\t<text class=\"text-white\" @click=\"xieyi()\" style=\"vertical-align: middle;\">阅读并同意《用户协议》</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"px-24\">\r\n\t\t\t\t\t<tm-button @click=\"tijiao()\" theme=\"primary\" :round=\"24\" block class=\"mt-50 logincla\">登录</tm-button>\r\n\t\t\t\t\t<tm-button @click=\"zhuce()\" theme=\"primary\" :round=\"24\" block class=\"mt-30\">注册新用户</tm-button>\r\n\t\t\t\t</view>\r\n\t\t\t</tm-form>\r\n\t\t</view>\r\n\t\t<!-- 弹出层消息 -->\r\n\t\t<tm-message ref=\"toast\"></tm-message>\r\n\t</view>\r\n</template>\t\r\n<script>\r\nimport{myRequest} from '@/api/request.js'\r\nexport default {\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tchecked:false,\r\n\t\t\treqData:{\r\n\t\t\t\tmobile:'',\r\n\t\t\t\tpassword:'',\r\n\t\t\t}\r\n\t\t};\r\n\t},\r\n\tonLoad() {\r\n\t\t\r\n\t},\r\n\tcreated() {\r\n\t\tthis.sys = uni.getSystemInfoSync();\r\n\t},\r\n\tmethods: {\r\n\t\txieyi(){\r\n\t\t\tuni.navigateTo({\r\n\t\t\t\turl: \"/pages/xieyi/index\",\r\n\t\t\t})\r\n\t\t},\r\n\t\ttijiao(){\r\n\t\t\tvar that=this;\r\n\t\t\tif(that.reqData.mobile==\"\"){\r\n\t\t\t\tthat.$refs.toast.show({model:'warn',label:'请输入手机号'})\r\n\t\t\t\treturn\r\n\t\t\t}else if(that.reqData.password==\"\"){\r\n\t\t\t\tthat.$refs.toast.show({model:'warn',label:'请输入密码'})\r\n\t\t\t\treturn\r\n\t\t\t}else if(! that.checked){\r\n\t\t\t\tthat.$refs.toast.show({model:'warn',label:'请勾选用户协议'})\r\n\t\t\t\treturn\r\n\t\t\t}\r\n\t\t\tmyRequest({\r\n\t\t\t\turl: \"/api/login/login\",\r\n\t\t\t\tmethod:'post',\r\n\t\t\t\tdata:that.reqData\r\n\t\t\t}).then(res => {\r\n\t\t\t\tconsole.log(res.data)\r\n\t\t\t\tif (res.data.code == 200) {\r\n\t\t\t\t\tuni.setStorageSync(\"token\",res.data.data.token)\r\n\t\t\t\t\tuni.setStorageSync(\"family_id\",res.data.data.family_id)\r\n\t\t\t\t\tuni.setStorageSync(\"mobile\",res.data.data.mobile)\r\n\t\t\t\t\tthat.$refs.toast.show({model:'success',label:res.data.msg})\r\n\t\t\t\t\tsetTimeout(function(){\r\n\t\t\t\t\t\tuni.switchTab({\r\n\t\t\t\t\t\t\turl: \"/pages/index/index\",\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t},2000)\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthat.$refs.toast.show({model:'error',label:res.data.msg})\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t\r\n\t\t},\r\n\t\tzhuce(){\r\n\t\t\tuni.navigateTo({\r\n\t\t\t\turl: \"/pages/registered/index\",\r\n\t\t\t})\r\n\t\t},\r\n\t\tzhaohui(){\r\n\t\t\tuni.navigateTo({\r\n\t\t\t\turl: \"/pages/zhaohui/index\",\r\n\t\t\t})\r\n\t\t},\r\n\t}\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t/deep/ .tm-menubars .body{\r\n\t\tbackground-color: #1b1b1b !important;\r\n\t}\r\n\t/deep/ .grey-darken-5{\r\n\t\tbackground-color: #0d0d0d!important;\r\n\t\tpadding: 0px !important;\r\n\t}\r\n\t.tou{\r\n\t\tfont-size: 28px;\r\n\t\tpadding: 15px 30px 40px 30px;\r\n\t}\r\n\t.zhuti{\r\n\t\tpadding: 15px 30px 40px 30px;\r\n\t}\r\n\t.tel{\r\n\t\tmargin-left: 5px;\r\n\t}\r\n\t.mima{\r\n\t\tposition: relative;\r\n\t}\r\n\t.wangji{\r\n\t\tposition: absolute;\r\n\t\tright: 0px;\r\n\t\ttop: 0px;\r\n\t\tline-height: 50px;\r\n\t\ttext-decoration:underline;\r\n\t}\r\n\t/deep/ .logincla .primary{\r\n\t\tbackground-color: #303440 !important;\r\n\t}\r\n</style>\r\n","import mod from \"-!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../exe/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!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../exe/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!../../../../exe/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!../../../../exe/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!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../exe/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!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../exe/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!../../../../exe/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!../../../../exe/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!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1678780469693\n var cssReload = require(\"D:/yzm/exe/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":""}
|