1 |
- {"version":3,"sources":["uni-app:///main.js","webpack:///D:/2022/10/hmd/pages/public/forget.vue?3265","webpack:///D:/2022/10/hmd/pages/public/forget.vue?4524","webpack:///D:/2022/10/hmd/pages/public/forget.vue?e9f7","webpack:///D:/2022/10/hmd/pages/public/forget.vue?bdaa","uni-app:///pages/public/forget.vue","webpack:///D:/2022/10/hmd/pages/public/forget.vue?d77a","webpack:///D:/2022/10/hmd/pages/public/forget.vue?72cb"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,+F,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,eAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAmH;AACnH;AAC0D;AACL;AACc;;;AAGnE;AACqK;AACrK,gBAAgB,+KAAU;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;AAAgmB,CAAgB,0nBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACyBpnB;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;AAA2oC,CAAgB,inCAAG,EAAC,C;;;;;;;;;;;ACA/pC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/public/forget.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\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 \"!E:\\\\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 \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\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 \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\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 \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./forget.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"container\">\n\t\t<view class=\"container_text\">\n\t\t\t<image class=\"banner-img\" src=\"/static/img/img01.png\" mode=\" scaleToFill\"></image>\n\t\t</view>\n\t\t<view class=\"loginTitle\"><text>手机号登录</text></view>\n\t\t<view class=\"login_text\">\n\t\t\t<view class=\"login_input flex\">\n\t\t\t\t<view class=\"login_img\"><image src=\"/static/icon/img03.png\"></image></view>\n\t\t\t\t<view class=\"login_name\"><input class=\"uni-input\" v-model=\"phone\" focus placeholder=\"请输入手机号\" /></view>\n\t\t\t</view>\n\t\t\t<view class=\"login_input flex\">\n\t\t\t\t<view class=\"login_img\"><image src=\"/static/icon/img06.png\"></image></view>\n\t\t\t\t<view class=\"login_name flex\">\n\t\t\t\t\t<input class=\"uni-input width\" v-model=\"code\" focus placeholder=\"请输入验证码\" />\n\t\t\t\t\t<view class=\"code\" @click=\"verification\">{{ countDown == 0 ? '验证码' : countDown }}</view>\n\t\t\t\t</view>\n\t\t\t</view>\n\t\t\t<view>\n\t\t\t\t<button type=\"green\" @click=\"register\" class=\"uni-button uni-button-green\">登录</button>\n\t\t\t</view>\n\t\t</view>\n\t</view>\n</template>\n<script>\nimport { mapMutations } from 'vuex';\nimport { verify, loginMobile, getUserInfo } from '@/api/login.js';\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tphone: '', //用户\n\t\t\tcode: '', //验证码\n\t\t\ttime: '', //保存倒计时对象\n\t\t\tcountDown: 0 //倒计时\n\t\t};\n\t},\n\tonLoad() {},\n\twatch: {\n\t\t// 监听倒计时\n\t\tcountDown(i) {\n\t\t\tif (i == 0) {\n\t\t\t\tclearInterval(this.time);\n\t\t\t}\n\t\t}\n\t},\n\tmethods: {\n\t\t...mapMutations('user', ['setUserInfo', 'login']),\n\t\t// 手机登录\n\t\tregister() {\n\t\t\tlet obj = this;\n\t\t\tif (obj.phone == '') {\n\t\t\t\tobj.$api.msg('请输入电话号码');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!/(^1[3|4|5|7|8][0-9]{9}$)/.test(this.phone)) {\n\t\t\t\tobj.$api.msg('请输入正确的手机号');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (obj.code == '') {\n\t\t\t\tobj.$api.msg('请输入验证码');\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tloginMobile({\n\t\t\t\tphone: obj.phone, //账号\n\t\t\t\tcaptcha: obj.code\n\t\t\t}).then(function(e) {\n\t\t\t\tuni.setStorageSync('token', e.data.token);\n\t\t\t\tgetUserInfo({}).then(e => {\n\t\t\t\t\tobj.login();\n\t\t\t\t\t// 保存返回用户数据\n\t\t\t\t\tobj.setUserInfo(e.data);\n\t\t\t\t\t//成功跳转首页\n\t\t\t\t\tuni.switchTab({\n\t\t\t\t\t\turl: '/pages/index/index'\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}).catch((e) => {\n\t\t\t\tconsole.log(e);\n\t\t\t});\n\t\t},\n\t\t//发送验证码\n\t\tverification() {\n\t\t\tlet obj = this;\n\t\t\tif (this.phone == '') {\n\t\t\t\tthis.$api.msg('请输入电话号码');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (this.phone.length < 11) {\n\t\t\t\tthis.$api.msg('请输入正确的手机号');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// 判断是否在倒计时\n\t\t\tif (obj.countDown > 0) {\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\tobj.countDown = 60;\n\t\t\t\tobj.time = setInterval(() => {\n\t\t\t\t\tobj.countDown--;\n\t\t\t\t}, 1000);\n\t\t\t\t//调用验证码接口\n\t\t\t\tverify({\n\t\t\t\t\tphone: obj.phone,\n\t\t\t\t\ttype: 'login'\n\t\t\t\t})\n\t\t\t\t\t.then(({ data }) => {})\n\t\t\t\t\t.catch(err => {\n\t\t\t\t\t\tconsole.log(err);\n\t\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tlogin() {\n\t\t\t//返回登录\n\t\t\tuni.navigateTo({\n\t\t\t\turl: '/pages/public/login'\n\t\t\t});\n\t\t}\n\t}\n};\n</script>\n\n<style lang=\"scss\">\npage {\n\theight: 100%;\n}\n.container {\n\twidth: 100%;\n\theight: 100%;\n\tbackground-size: 100%;\n}\n.container_text {\n\twidth: 100%;\n\theight: 500rpx;\n\ttop: 0rpx;\n\t.banner-img {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n}\n.login_text {\n\tmargin: auto 30rpx;\n\tposition: relative;\n\tpadding: 100rpx 102rpx;\n\tbackground-color: #ffffff;\n\tmargin-top: -180rpx;\n\tborder-radius: 20rpx;\n\t.login_input {\n\t\tborder-bottom: 1px solid #f0f0f0;\n\t\tmargin-bottom: 65rpx;\n\t\t.login_img image {\n\t\t\theight: 35rpx;\n\t\t\twidth: 29rpx;\n\t\t\tmargin-right: 20rpx;\n\t\t}\n\t\t.uni-input {\n\t\t\ttext-align: left;\n\t\t\twidth: 470rpx;\n\t\t\tfont-size: 28rpx !important;\n\t\t}\n\t\t.login_name {\n\t\t\tcolor: #333333;\n\t\t\t.width {\n\t\t\t\twidth: 325rpx !important;\n\t\t\t}\n\t\t\t.code {\n\t\t\t\tcolor: #5dbc7c;\n\t\t\t\tfont-size: 23rpx;\n\t\t\t\tborder-left: 1px solid #eeeeee;\n\t\t\t\twidth: 150rpx;\n\t\t\t\tflex-shrink: 0;\n\t\t\t\ttext-align: center;\n\t\t\t}\n\t\t}\n\t}\n\t.uni-button-green {\n\t\tcolor: #ffffff;\n\t\tbackground-color: #5dbc7c;\n\t\tmargin: 40rpx 10rpx;\n\t\tborder-radius: 50rpx;\n\t}\n\t.uni-button {\n\t\theight: 85rpx;\n\t\tline-height: 85rpx;\n\t}\n}\n.loginTitle {\n\tposition: absolute;\n\ttop: 250rpx;\n\twidth: 100%;\n\ttext-align: center;\n\tcolor: white;\n\tfont-size: 40rpx;\n}\n\nuni-button {\n\theight: 80rpx !important;\n\tline-height: 80rpx !important;\n}\n\n</style>\n","import mod from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\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 \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\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 // 1666316405582\n var cssReload = require(\"E:/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":""}
|