1 |
- {"version":3,"sources":["uni-app:///main.js","webpack:///G:/item/appBase/pages/public/forget.vue?a8cd","webpack:///G:/item/appBase/pages/public/forget.vue?68bf","webpack:///G:/item/appBase/pages/public/forget.vue?033c","webpack:///G:/item/appBase/pages/public/forget.vue?a15e","uni-app:///pages/public/forget.vue","webpack:///G:/item/appBase/pages/public/forget.vue?fed2","webpack:///G:/item/appBase/pages/public/forget.vue?a962"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,+F;AACAA,UAAU,CAACC,eAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAmH;AACnH;AAC0D;AACL;AACc;;;AAGnE;AAC2K;AAC3K,gBAAgB,oLAAU;AAC1B,EAAE,4EAAM;AACR,EAAE,iFAAM;AACR,EAAE,0FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,qFAAU;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;AAA8nB,CAAgB,mpBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACyBlpB;AACA,2D;AACA;AACA,MADA,kBACA;AACA;AACA,eADA,EACA;AACA,cAFA,EAEA;AACA,cAHA,EAGA;AACA,kBAJA,CAIA;AAJA;AAMA,GARA;AASA,QATA,oBASA,EATA;AAUA;AACA;AACA,aAFA,qBAEA,CAFA,EAEA;AACA;AACA;AACA;AACA,KANA,EAVA;;AAkBA;AACA,2DADA;AAEA;AACA,YAHA,sBAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wBADA,EACA;AACA,yBAFA;AAGA,UAHA,CAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCADA;;AAGA,SARA;AASA,OAdA,EAcA,KAdA,CAcA;AACA;AACA,OAhBA;AAiBA,KAnCA;AAoCA;AACA,gBArCA,0BAqCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA;AACA,SAFA,EAEA,IAFA;AAGA;AACA;AACA,0BADA;AAEA,uBAFA;;AAIA,YAJA,CAIA,uCAJA;AAKA,aALA,CAKA;AACA;AACA,SAPA;AAQA;AACA,KAjEA;AAkEA,SAlEA,mBAkEA;AACA;AACA;AACA,kCADA;;AAGA,KAvEA,GAlBA,E;;;;;;;;;;;;;AC3BA;AAAA;AAAA;AAAA;AAAwpC,CAAgB,ynCAAG,EAAC,C;;;;;;;;;;;ACA5qC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/public/forget.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/public/forget.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./forget.vue?vue&type=template&id=0b3719ac&\"\nvar renderjs\nimport script from \"./forget.vue?vue&type=script&lang=js&\"\nexport * from \"./forget.vue?vue&type=script&lang=js&\"\nimport style0 from \"./forget.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\work\\\\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/public/forget.vue\"\nexport default component.exports","export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./forget.vue?vue&type=template&id=0b3719ac&\"","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 \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./forget.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./forget.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"container\">\r\n\t\t<view class=\"container_text\">\r\n\t\t\t<image class=\"banner-img\" src=\"/static/img/img01.png\" mode=\" scaleToFill\"></image>\r\n\t\t</view>\r\n\t\t<view class=\"loginTitle\"><text>手机号登录</text></view>\r\n\t\t<view class=\"login_text\">\r\n\t\t\t<view class=\"login_input flex\">\r\n\t\t\t\t<view class=\"login_img\"><image src=\"/static/icon/img03.png\"></image></view>\r\n\t\t\t\t<view class=\"login_name\"><input class=\"uni-input\" v-model=\"phone\" focus placeholder=\"请输入手机号\" /></view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"login_input flex\">\r\n\t\t\t\t<view class=\"login_img\"><image src=\"/static/icon/img06.png\"></image></view>\r\n\t\t\t\t<view class=\"login_name flex\">\r\n\t\t\t\t\t<input class=\"uni-input width\" v-model=\"code\" focus placeholder=\"请输入验证码\" />\r\n\t\t\t\t\t<view class=\"code\" @click=\"verification\">{{ countDown == 0 ? '验证码' : countDown }}</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view>\r\n\t\t\t\t<button type=\"green\" @click=\"register\" class=\"uni-button uni-button-green\">登录</button>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n<script>\r\nimport { mapMutations } from 'vuex';\r\nimport { verify, loginMobile, getUserInfo } from '@/api/login.js';\r\nexport default {\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tphone: '', //用户\r\n\t\t\tcode: '', //验证码\r\n\t\t\ttime: '', //保存倒计时对象\r\n\t\t\tcountDown: 0 //倒计时\r\n\t\t};\r\n\t},\r\n\tonLoad() {},\r\n\twatch: {\r\n\t\t// 监听倒计时\r\n\t\tcountDown(i) {\r\n\t\t\tif (i == 0) {\r\n\t\t\t\tclearInterval(this.time);\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tmethods: {\r\n\t\t...mapMutations('user', ['setUserInfo', 'login']),\r\n\t\t// 手机登录\r\n\t\tregister() {\r\n\t\t\tlet obj = this;\r\n\t\t\tif (obj.phone == '') {\r\n\t\t\t\tobj.$api.msg('请输入电话号码');\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (!/(^1[3|4|5|7|8][0-9]{9}$)/.test(this.phone)) {\r\n\t\t\t\tobj.$api.msg('请输入正确的手机号');\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (obj.code == '') {\r\n\t\t\t\tobj.$api.msg('请输入验证码');\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tloginMobile({\r\n\t\t\t\tphone: obj.phone, //账号\r\n\t\t\t\tcaptcha: obj.code\r\n\t\t\t}).then(function(e) {\r\n\t\t\t\tuni.setStorageSync('token', e.data.token);\r\n\t\t\t\tgetUserInfo({}).then(e => {\r\n\t\t\t\t\tobj.login();\r\n\t\t\t\t\t// 保存返回用户数据\r\n\t\t\t\t\tobj.setUserInfo(e.data);\r\n\t\t\t\t\t//成功跳转首页\r\n\t\t\t\t\tuni.switchTab({\r\n\t\t\t\t\t\turl: '/pages/index/index'\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t\t}).catch((e) => {\r\n\t\t\t\tconsole.log(e);\r\n\t\t\t});\r\n\t\t},\r\n\t\t//发送验证码\r\n\t\tverification() {\r\n\t\t\tlet obj = this;\r\n\t\t\tif (this.phone == '') {\r\n\t\t\t\tthis.$api.msg('请输入电话号码');\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (this.phone.length < 11) {\r\n\t\t\t\tthis.$api.msg('请输入正确的手机号');\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t// 判断是否在倒计时\r\n\t\t\tif (obj.countDown > 0) {\r\n\t\t\t\treturn false;\r\n\t\t\t} else {\r\n\t\t\t\tobj.countDown = 60;\r\n\t\t\t\tobj.time = setInterval(() => {\r\n\t\t\t\t\tobj.countDown--;\r\n\t\t\t\t}, 1000);\r\n\t\t\t\t//调用验证码接口\r\n\t\t\t\tverify({\r\n\t\t\t\t\tphone: obj.phone,\r\n\t\t\t\t\ttype: 'login'\r\n\t\t\t\t})\r\n\t\t\t\t\t.then(({ data }) => {})\r\n\t\t\t\t\t.catch(err => {\r\n\t\t\t\t\t\tconsole.log(err);\r\n\t\t\t\t\t});\r\n\t\t\t}\r\n\t\t},\r\n\t\tlogin() {\r\n\t\t\t//返回登录\r\n\t\t\tuni.navigateTo({\r\n\t\t\t\turl: '/pages/public/login'\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\npage {\r\n\theight: 100%;\r\n}\r\n.container {\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\tbackground-size: 100%;\r\n}\r\n.container_text {\r\n\twidth: 100%;\r\n\theight: 500rpx;\r\n\ttop: 0rpx;\r\n\t.banner-img {\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t}\r\n}\r\n.login_text {\r\n\tmargin: auto 30rpx;\r\n\tposition: relative;\r\n\tpadding: 100rpx 102rpx;\r\n\tbackground-color: #ffffff;\r\n\tmargin-top: -180rpx;\r\n\tborder-radius: 20rpx;\r\n\t.login_input {\r\n\t\tborder-bottom: 1px solid #f0f0f0;\r\n\t\tmargin-bottom: 65rpx;\r\n\t\t.login_img image {\r\n\t\t\theight: 35rpx;\r\n\t\t\twidth: 29rpx;\r\n\t\t\tmargin-right: 20rpx;\r\n\t\t}\r\n\t\t.uni-input {\r\n\t\t\ttext-align: left;\r\n\t\t\twidth: 470rpx;\r\n\t\t\tfont-size: 28rpx !important;\r\n\t\t}\r\n\t\t.login_name {\r\n\t\t\tcolor: #333333;\r\n\t\t\t.width {\r\n\t\t\t\twidth: 325rpx !important;\r\n\t\t\t}\r\n\t\t\t.code {\r\n\t\t\t\tcolor: #5dbc7c;\r\n\t\t\t\tfont-size: 23rpx;\r\n\t\t\t\tborder-left: 1px solid #eeeeee;\r\n\t\t\t\twidth: 150rpx;\r\n\t\t\t\tflex-shrink: 0;\r\n\t\t\t\ttext-align: center;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t.uni-button-green {\r\n\t\tcolor: #ffffff;\r\n\t\tbackground-color: #5dbc7c;\r\n\t\tmargin: 40rpx 10rpx;\r\n\t\tborder-radius: 50rpx;\r\n\t}\r\n\t.uni-button {\r\n\t\theight: 85rpx;\r\n\t\tline-height: 85rpx;\r\n\t}\r\n}\r\n.loginTitle {\r\n\tposition: absolute;\r\n\ttop: 250rpx;\r\n\twidth: 100%;\r\n\ttext-align: center;\r\n\tcolor: white;\r\n\tfont-size: 40rpx;\r\n}\r\n\r\nuni-button {\r\n\theight: 80rpx !important;\r\n\tline-height: 80rpx !important;\r\n}\r\n\r\n</style>\r\n","import mod from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./forget.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./forget.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1618025084028\n var cssReload = require(\"D:/work/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":""}
|