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.
1 lines
15 KiB
1 lines
15 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:///F:/ZONGYRJ/miniAPP/cancmini/pages/user/fotget.vue?638a","webpack:///F:/ZONGYRJ/miniAPP/cancmini/pages/user/fotget.vue?6b35","webpack:///F:/ZONGYRJ/miniAPP/cancmini/pages/user/fotget.vue?3b51","webpack:///F:/ZONGYRJ/miniAPP/cancmini/pages/user/fotget.vue?ce28","uni-app:///pages/user/fotget.vue","webpack:///F:/ZONGYRJ/miniAPP/cancmini/pages/user/fotget.vue?6dcf"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","renderjs","component","options","__file","components","render","_vm","this","_h","$createElement","_self","_c","recyclableRender","staticRenderFns","_withStripped","data","state","totalTime","recordingTime","currentTime","code","psw","surepsw","phone","onLoad","methods","sendcode","action","reinfo","uni","title","icon","updatepsw","setTimeout","delta","checking","checkingTime","that","dopost"],"mappings":"4IAAA,MAGA,aACA,YAFAA,EAAGC,kCAAoCC,EAGvCC,EAAWC,a,gFCLX,oIACIC,EADJ,QASIC,EAAY,qBACd,aACA,YACA,sBACA,EACA,KACA,KACA,MACA,EACA,gBACAD,GAGFC,EAAUC,QAAQC,OAAS,wBACZ,aAAAF,E,0CCvBf,uQ,iCCAA,IAAIG,EAAJ,0LACA,IAAIC,EAAS,WACX,IAAIC,EAAMC,KACNC,EAAKF,EAAIG,eACJH,EAAII,MAAMC,IAEjBC,GAAmB,EACnBC,EAAkB,GACtBR,EAAOS,eAAgB,G,iCCRvB,yHAA+vB,eAAG,G,uJCoBlwB,CACAC,gBACA,OACAC,SACAC,aACAC,gBACAC,cACAC,QACAC,OACAC,WACAC,WAGAC,oBAGAC,SACAC,qBAAA,0JACA,iBAAAC,kBAAAJ,UAAA,OAAAK,SACA,iBACA,WAEA,iBAEAC,aACAC,YAAAC,cACA,0CATA,IAYAC,0BAAA,0JACA,kBAAAL,mBAAAJ,QAAAF,MAAAD,SAAA,OAAAQ,SACA,iBACA,WACAC,aACAC,cAEAG,wBACAJ,gBACAK,YAEA,OAEAL,aACAC,YAAAC,cAEA,0CAhBA,IAkBAI,oBACA,mCACA,uBAEA,OADAN,aAAAC,kBAAAC,eACA,EAGA,gCAEA,cACA,2BAEAK,wBACA,WAEA,YAEA,wDAEA,wCAEA,mDAEAH,uBAEAI,mBACA,OASA,cACA,qBACA,kCAGAC,kBAEA,mCACA,0BAIA,eACAT,aAAAC,gBAAAC,eACA,GAEA,iCACAF,aAAAC,iBAAAC,eACA,GAEA,wBACAF,aAAAC,mBAAAC,eACA,QAEA,+CAfAF,aAAAC,kBAAAC,eACA,MAiBA,c,6DCjIA,yHAA0kC,eAAG,G","file":"pages/user/fotget.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/user/fotget.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./fotget.vue?vue&type=template&id=547ea606&\"\nvar renderjs\nimport script from \"./fotget.vue?vue&type=script&lang=js&\"\nexport * from \"./fotget.vue?vue&type=script&lang=js&\"\nimport style0 from \"./fotget.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../HBuilderX.2.7.9.20200527/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/user/fotget.vue\"\nexport default component.exports","export * from \"-!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./fotget.vue?vue&type=template&id=547ea606&\"","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 \"-!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./fotget.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./fotget.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"login-box\">\r\n\t\t<image src=\"https://m2.chinause.cn/mini/baixmini/img/logo.jpg\" mode='aspectFit' class=\"login-logo\"></image>\r\n\t\t<view class=\"login-title\">农配领航</view>\r\n\t\t<view class=\"login-form\">\r\n\t\t\t<input class=\"login-input\" v-model=\"phone\" placeholder-class placeholder=\"请输入手机号码\" />\r\n\t\t\t<view class=\"login-input-btn\">\r\n\t\t\t\t<input class=\"login-input\" v-model=\"code\" placeholder-class placeholder=\"验证码\"/>\r\n\t\t\t\t<view class=\"login-checking\" @click=\"checking\" v-if=\"state===false\">获取验证码</view>\r\n\t\t\t\t<view class=\"login-checking login-time\" v-if=\"state===true\">倒计时{{ currentTime }}s</view>\r\n\t\t\t</view>\r\n\t\t\t<input class=\"login-input\" v-model=\"psw\" placeholder-class password placeholder=\"请输入新密码\"/>\r\n\t\t\t<input class=\"login-input\" v-model=\"surepsw\" placeholder-class password placeholder=\"再次输入密码\"/>\r\n\t\t\t<button class=\"login-btn\" @click=\"dopost()\">立即提交</button>\r\n\t\t\t<navigator url=\"/pages/user/login\" open-type='navigateBack' hover-class=\"none\" class=\"login-label\">已有账号,点此去登录.</navigator>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tstate: false,\t\t//是否开启倒计时\r\n\t\t\t\ttotalTime: 60,\t\t//总时间,单位秒\r\n\t\t\t\trecordingTime: 0, \t//记录时间变量\r\n\t\t\t\tcurrentTime: 0, \t//显示时间变量,\r\n\t\t\t\tcode:'',\r\n\t\t\t\tpsw:'',\r\n\t\t\t\tsurepsw:'',\r\n\t\t\t\tphone:'',\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad() {\r\n\t\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tasync sendcode(phone) {\r\n\t\t\t\tlet reinfo=await this.$api.sendcode({action:'sendcode',phone:phone});\r\n\t\t\t\tthis.getinfo=reinfo.data;\r\n\t\t\t\tif(reinfo.code==1){\r\n\t\t\t\t\t//执行倒计时\r\n\t\t\t\t\tthis.checkingTime();\r\n\t\t\t\t}\r\n\t\t\t\tuni.showToast({\r\n\t\t\t\t\ttitle:reinfo.msg,icon:'none'\r\n\t\t\t\t})\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\tasync updatepsw(phone,code,psw) {\r\n\t\t\t\tlet reinfo=await this.$api.updatepsw({action:'updatepsw',phone:phone,psw:psw,code:code});\r\n\t\t\t\tthis.getinfo=reinfo.data;\r\n\t\t\t\tif(reinfo.code==1){\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle:reinfo.msg\r\n\t\t\t\t\t})\r\n\t\t\t\t\tsetTimeout(function(e){\r\n\t\t\t\t\t\tuni.navigateBack({\r\n\t\t\t\t\t\t\tdelta:1\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t},1500)\r\n\t\t\t\t}else{\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle:reinfo.msg,icon:'none'\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tchecking() {\r\n\t\t\t\tlet phoneReg = /(^1\\d{10}$)|(^[0-9]\\d{7}$)/;\r\n\t\t\t\tif(!phoneReg.test(this.phone)) {\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\t//把显示时间设为总时间\r\n\t\t\t\tthis.currentTime = this.totalTime;\r\n\t\t\t\t//开始倒计时\r\n\t\t\t\tthis.state = true;\r\n\t\t\t\tthis.sendcode(this.phone)\r\n\t\t\t},\r\n\t\t\tcheckingTime(){\r\n\t\t\t\tlet that = this;\r\n\t\t\t\t//判断是否开启\r\n\t\t\t\tif(this.state){\r\n\t\t\t\t\t//判断显示时间是否已到0,判断记录时间是否已到总时间\r\n\t\t\t\t\tif(this.currentTime > 0 && this.recordingTime <= this.totalTime){\r\n\t\t\t\t\t\t//记录时间增加 1\r\n\t\t\t\t\t\tthis.recordingTime = this.recordingTime + 1;\r\n\t\t\t\t\t\t//显示时间,用总时间 - 记录时间\r\n\t\t\t\t\t\tthis.currentTime = this.totalTime - this.recordingTime;\r\n\t\t\t\t\t\t//1秒钟后,再次执行本方法\r\n\t\t\t\t\t\tsetTimeout(() => { \t\r\n\t\t\t\t\t\t\t//定时器内,this指向外部,找不到vue的方法,所以,需要用that变量。\r\n\t\t\t\t\t\t\tthat.checkingTime();\r\n\t\t\t\t\t\t}, 1000)\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t//时间已完成,还原相关变量\r\n\t\t\t\t\t\tthis.state = false;\t\t//关闭倒计时\r\n\t\t\t\t\t\tthis.recordingTime = 0;\t//记录时间为0\r\n\t\t\t\t\t\tthis.currentTime = this.totalTime;\t//显示时间为总时间\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//倒计时未开启,初始化默认变量\r\n\t\t\t\t\tthis.state = false;\r\n\t\t\t\t\tthis.recordingTime = 0;\r\n\t\t\t\t\tthis.currentTime = this.totalTime;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tdopost(){\r\n\t\t\t\t//正则表达式验证手机号\r\n\t\t\t\tlet phoneReg = /(^1\\d{10}$)|(^[0-9]\\d{7}$)/;\r\n\t\t\t\tif(!phoneReg.test(this.phone)) {\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\tif(this.code==''){\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\tif(this.pwd==''||this.psw.length<6) {\r\n\t\t\t\t\tuni.showToast({title: '密码不少于6位!',icon: 'none'})\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tif(this.psw!=this.surepsw) {\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\tthis.updatepsw(this.phone,this.code,this.psw)\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t.login-box{\r\n\t\tpadding: 0 100upx;\r\n\t\tposition: relative;\r\n\t}\r\n\t.login-logo{\r\n\t\twidth: 100%;\r\n\t\twidth: 100%;\r\n\t\theight: 310upx;\r\n\t}\r\n\t.login-title{\r\n\t\tposition: absolute;\r\n\t\ttop: 215upx;\r\n\t\tline-height: 260upx;\r\n\t\tfont-size: 35upx;\r\n\t\tcolor: #a7b6d0;\r\n\t\ttext-align: center;\r\n\t\twidth: 100%;\r\n\t\tmargin-left: -110upx;\r\n\t}\r\n\t.login-form{\r\n\t\tmargin-top: 100upx;\r\n\t}\r\n\t.login-input{\r\n\t\tbackground: #e2f5fc;\r\n\t\tmargin-top: 30upx;\r\n\t\tborder-radius: 100upx;\r\n\t\tpadding: 20upx 40upx;\r\n\t\tfont-size: 36upx;\r\n\t\theight: auto;\r\n\t}\r\n\t.input-placeholder, .login-input{\r\n\t\tcolor: #94afce;\r\n\t\tline-height: 30upx;\r\n\t}\r\n\t.login-label{\r\n\t\tpadding: 60upx 0;\r\n\t\ttext-align: center;\r\n\t\tfont-size: 30upx;\r\n\t\tcolor: #a7b6d0;\r\n\t}\r\n\t.login-btn{\r\n\t\tbackground: #348143;\r\n\t\tcolor: #fff;\r\n\t\tborder: 0;\r\n\t\tborder-radius: 100upx;\r\n\t\tfont-size: 36upx;\r\n\t\tmargin-top: 80upx;\r\n\t}\r\n\t.login-btn:after{\r\n\t\tborder: 0;\r\n\t}\r\n\t.login-input{\r\n\t\tbackground: #e2f5fc;\r\n\t\tmargin-top: 30upx;\r\n\t\tborder-radius: 100upx;\r\n\t\tpadding: 20upx 40upx;\r\n\t\tfont-size: 36upx;\r\n\t}\r\n\t.input-placeholder, .login-input{\r\n\t\tcolor: #94afce;\r\n\t}\r\n\t.login-label{\r\n\t\tpadding: 60upx 0;\r\n\t\ttext-align: center;\r\n\t\tfont-size: 30upx;\r\n\t\tcolor: #a7b6d0;\r\n\t}\r\n\t.login-btn{\r\n\t\tbackground: #348143;\r\n\t\tcolor: #fff;\r\n\t\tborder: 0;\r\n\t\tborder-radius: 100upx;\r\n\t\tfont-size: 36upx;\r\n\t\tmargin-top: 60upx;\r\n\t}\r\n\t.login-btn:after{\r\n\t\tborder: 0;\r\n\t}\r\n\t\r\n\t/*验证码输入框*/\r\n\t.login-input-btn{\r\n\t\tposition: relative;\r\n\t}\r\n\t.login-input-btn .login-input{\r\n\t\tpadding-right: 260upx;\r\n\t}\r\n\t.login-checking{\r\n\t\tposition: absolute;\r\n\t\tright: 0;\r\n\t\ttop: 0;\r\n\t\tbackground: #348143;\r\n\t\tcolor: #fff;\r\n\t\tborder: 0;\r\n\t\tborder-radius: 110upx;\r\n\t\tfont-size: 36upx;\r\n\t\tmargin-left: auto;\r\n\t\tmargin-right: auto;\r\n\t\tpadding-left: 28upx;\r\n\t\tpadding-right: 28upx;\r\n\t\tbox-sizing: border-box;\r\n\t\ttext-align: center;\r\n\t\ttext-decoration: none;\r\n\t\tline-height: 2.22555556;\r\n\t\t-webkit-tap-highlight-color: transparent;\r\n\t\toverflow: hidden;\r\n\t\tpadding-top: 2upx;\r\n\t\tpadding-bottom: 2upx;\r\n\t\tmargin-top: 4upx;\r\n\t}\r\n\t.login-checking.login-time{\r\n\t\tbackground: #a7b6d0;\r\n\t}\r\n\t\r\n\t/*按钮点击效果*/\r\n\t.login-btn.button-hover{\r\n\t\ttransform: translate(1upx, 1upx);\r\n\t}\r\n</style>\r\n","import mod from \"-!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./fotget.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX.2.7.9.20200527/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./fotget.vue?vue&type=style&index=0&lang=css&\""],"sourceRoot":""}
|