征信小程序
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
14 KiB

{"version":3,"sources":["uni-app:///main.js","webpack:///D:/仁周项目/2024-09-02 征信/zhengxin/pages/user/phone.vue?710f","webpack:///D:/仁周项目/2024-09-02 征信/zhengxin/pages/user/phone.vue?726a","webpack:///D:/仁周项目/2024-09-02 征信/zhengxin/pages/user/phone.vue?3d65","webpack:///D:/仁周项目/2024-09-02 征信/zhengxin/pages/user/phone.vue?2bae","uni-app:///pages/user/phone.vue","webpack:///D:/仁周项目/2024-09-02 征信/zhengxin/pages/user/phone.vue?6a20","webpack:///D:/仁周项目/2024-09-02 征信/zhengxin/pages/user/phone.vue?b09c"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","userInfo","count","isClick","captcha","mobile","onLoad","methods","toSubmit","uni","title","icon","code","msg","setTimeout","sendCode","that","event","timer","clearInterval","getUserInfo","token","destroyed"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,cAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACc;;;AAGlE;AAC+K;AAC/K,gBAAgB,sLAAU;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;AAA8pB,CAAgB,4pBAAG,EAAC,C;;;;;;;;;;;;;;;;;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ACA;AACA;AAAA,2B;;;;;;;;;;;;;AC5HA;AAAA;AAAA;AAAA;AAAyvC,CAAgB,+qCAAG,EAAC,C;;;;;;;;;;;ACA7wC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/user/phone.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/phone.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./phone.vue?vue&type=template&id=2de4833a&\"\nvar renderjs\nimport script from \"./phone.vue?vue&type=script&lang=js&\"\nexport * from \"./phone.vue?vue&type=script&lang=js&\"\nimport style0 from \"./phone.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../ruanjian/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/phone.vue\"\nexport default component.exports","export * from \"-!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./phone.vue?vue&type=template&id=2de4833a&\"","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 \"-!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./phone.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./phone.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"phone\">\n\t\t<view class=\"content\">\r\n\t\t\t<view class=\"item\">\r\n\t\t\t\t<view class=\"a\">手机号</view>\r\n\t\t\t\t<view class=\"b\">\r\n\t\t\t\t\t<view class=\"txt\">{{userInfo.mobile}}</view>\r\n\t\t\t\t\t<view class=\"code\" @click=\"sendCode()\">{{count == 60?'获取验证码':count+\"s\"}}</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"item\">\r\n\t\t\t\t<view class=\"a\">验证码</view>\r\n\t\t\t\t<view class=\"b\">\r\n\t\t\t\t\t<input type=\"number\" v-model=\"captcha\" placeholder=\"请输入验证码\" />\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"item\">\r\n\t\t\t\t<view class=\"a\">新手机号</view>\r\n\t\t\t\t<view class=\"b\">\r\n\t\t\t\t\t<input type=\"number\" v-model=\"mobile\" placeholder=\"请输入新手机号\" />\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"btn\" @click=\"toSubmit()\">验证</view>\n\t</view>\n</template>\n\n<script>\r\n\tlet timer = null;\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tuserInfo: {},\r\n\t\t\t\tcount: 60,\r\n\t\t\t\tisClick: true,\r\n\t\t\t\tcaptcha: \"\",\r\n\t\t\t\tmobile: \"\",\n\t\t\t};\n\t\t},\r\n\t\tonLoad() {\r\n\t\t\tthis.getUserInfo();\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tasync toSubmit() {\r\n\t\t\t\tif(!this.mobile){\r\n\t\t\t\t uni.showToast({\r\n\t\t\t\t \ttitle: '手机号格式不能为空',\r\n\t\t\t\t \ticon: \"none\",\r\n\t\t\t\t })\r\n\t\t\t\t return ;\r\n\t\t\t\t}\r\n\t\t\t\tif(!/^1[3456789]\\d{9}$/.test(this.mobile)){\r\n\t\t\t\t uni.showToast({\r\n\t\t\t\t \ttitle: '手机号格式不正确',\r\n\t\t\t\t \ticon: \"none\",\r\n\t\t\t\t })\r\n\t\t\t\t return ;\r\n\t\t\t\t}\r\n\t\t\t\tif(!this.captcha){\r\n\t\t\t\t uni.showToast({\r\n\t\t\t\t \ttitle: '验证码不能为空',\r\n\t\t\t\t \ticon: \"none\",\r\n\t\t\t\t })\r\n\t\t\t\t return ;\r\n\t\t\t\t}\r\n\t\t\t\tconst { code,msg } = await this.$api.changemobile({captcha: this.captcha, mobile: this.mobile});\r\n\t\t\t\tif(code == 1){\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: \"修改成功\"\r\n\t\t\t\t\t})\r\n\t\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\t\tthis.getUserInfo();\r\n\t\t\t\t\t},2000)\r\n\t\t\t\t}else{\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: msg,\r\n\t\t\t\t\t\ticon: \"none\",\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tasync sendCode() {\r\n\t\t\t\tconst that = this;\r\n\t\t\t\tif(that.isClick == false){\r\n\t\t\t\t\treturn ;\r\n\t\t\t\t}\r\n\t\t\t\tthat.isClick = false;\r\n\t\t\t\tconst { code,msg } = await this.$api.sendMsm({mobile: this.userInfo.mobile, event:\"changemobile\"});\r\n\t\t\t\tif(code == 1){\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: \"验证码已发送\",\r\n\t\t\t\t\t\ticon: \"none\",\r\n\t\t\t\t\t})\r\n\t\t\t\t\ttimer = setInterval(()=>{\r\n\t\t\t\t\t\tif(that.count == 60){\r\n\t\t\t\t\t\t\tclearInterval(timer);\r\n\t\t\t\t\t\t\tthat.count = 60;\r\n\t\t\t\t\t\t\tthat.isClick = true;\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tthat.count --\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},1000)\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthat.isClick = true;\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: msg,\r\n\t\t\t\t\t\ticon: \"none\",\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tasync getUserInfo() {\r\n\t\t\t\tconst { code, data , msg } = await this.$api.getMemberInfo({token: uni.getStorageSync(\"token\")});\r\n\t\t\t\tif(code == 1){\r\n\t\t\t\t\tthis.userInfo = data.user;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: msg,\r\n\t\t\t\t\t\ticon: \"none\",\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t},\r\n\t\tdestroyed() {\r\n\t\t\tclearInterval(timer)\r\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\">\n.phone{\r\n\tpadding: 25rpx;\r\n\toverflow: hidden;\r\n\t.btn{\r\n\t\twidth: 100%;\r\n\t\tline-height: 90rpx;\r\n\t\tbackground: #00C6A9;\r\n\t\tbox-shadow: 0px 3rpx 10rpx 0px rgba(9,44,39,0.05);\r\n\t\tborder-radius: 90rpx;\r\n\t\ttext-align: center;\r\n\t\tfont-weight: 500;\r\n\t\tfont-size: 30rpx;\r\n\t\tcolor: #FFFFFF;\r\n\t\tmargin: 0 auto;\r\n\t\tmargin-top: 120rpx;\r\n\t}\r\n\t.content{\r\n\t\twidth: 100%;\r\n\t\tbackground: #FFFFFF;\r\n\t\tbox-shadow: 0px 3rpx 10rpx 0px rgba(9,44,39,0.05);\r\n\t\tborder-radius: 20rpx;\r\n\t\tpadding: 0 30rpx;\r\n\t\tbox-sizing: border-box;\r\n\t\t.item{\r\n\t\t\tdisplay: flex;\r\n\t\t\talign-items: center;\r\n\t\t\tjustify-content: space-between;\r\n\t\t\tborder-top: 1px solid #EAEAEA;\r\n\t\t\tpadding: 35rpx 0;\r\n\t\t\toverflow: hidden;\r\n\t\t\tposition: relative;\r\n\t\t\t&:first-child{\r\n\t\t\t\tborder-color: #FFFFFF;\r\n\t\t\t}\r\n\t\t\t.a{\r\n\t\t\t\twidth: 160rpx;\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\talign-items: center;\r\n\t\t\t\tfont-weight: 500;\r\n\t\t\t\tfont-size: 30rpx;\r\n\t\t\t\tcolor: #222222;\r\n\t\t\t}\r\n\t\t\t.b{\r\n\t\t\t\tflex: 1;\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\talign-items: center;\r\n\t\t\t\tjustify-content: space-between;\r\n\t\t\t\tfont-weight: 500;\r\n\t\t\t\tfont-size: 30rpx;\r\n\t\t\t\tcolor: #999999;\r\n\t\t\t\t.txt{\r\n\t\t\t\t\tflex: 1;\r\n\t\t\t\t\tfont-weight: 500;\r\n\t\t\t\t\tfont-size: 30rpx;\r\n\t\t\t\t\tcolor: #333333;\r\n\t\t\t\t}\r\n\t\t\t\tinput{\r\n\t\t\t\t\tflex: 1;\r\n\t\t\t\t\tfont-weight: 500;\r\n\t\t\t\t\tfont-size: 30rpx;\r\n\t\t\t\t\tcolor: #333333;\r\n\t\t\t\t}\r\n\t\t\t\t.code{\r\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\tfont-size: 30rpx;\n\t\t\t\t\tcolor: #00C6A9;\r\n\t\t\t\t\tmargin-right: 20rpx;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}\r\n}\n</style>\n","import mod from \"-!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./phone.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./phone.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1730099834342\n var cssReload = require(\"D:/ruanjian/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":""}