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
16 KiB

{"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/phone-code.vue?215e","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/phone-code.vue?e74d","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/phone-code.vue?6b50","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/phone-code.vue?4db6","uni-app:///user/pages/phone-code.vue","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/phone-code.vue?76a9","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/phone-code.vue?b988"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","components","xtVerifyCode","data","isLoad","options","authTime","timer","subForm","phone","short_code","rule","name","checkType","errorMsg","regText","lockTap","computed","primaryColor","subColor","onLoad","bg","methods","initIndex","time","clearInterval","initRefresh","toResetCode","title","confirm","validate","item","submit","param","msg","key","val","console","uni","url","setTimeout"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,kBAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAuH;AACvH;AAC8D;AACL;AACc;;;AAGvE;AAC0M;AAC1M,gBAAgB,iNAAU;AAC1B,EAAE,gFAAM;AACR,EAAE,qFAAM;AACR,EAAE,8FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,yFAAU;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;AAC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AAA;gBAAA;cAAA;gBACA;gBACA;gBAAA;gBAAA;gBAAA,OAEA;cAAA;gBACA;gBACA;gBACA;gBACA;kBACAO;kBACAC;gBACA;gBAAA;gBAAA,OACA;cAAA;gBACAC;gBACAC;kBACAC;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBAAA;gBAAA;cAAA;gBAAA;gBAAA;gBAEAC;kBACA;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IAGA;EAAA;AAEA;AAAA,2B;;;;;;;;;;;;;ACvKA;AAAA;AAAA;AAAA;AAAi/C,CAAgB,u6CAAG,EAAC,C;;;;;;;;;;;ACArgD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"user/pages/phone-code.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './user/pages/phone-code.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./phone-code.vue?vue&type=template&id=989f2486&\"\nvar renderjs\nimport script from \"./phone-code.vue?vue&type=script&lang=js&\"\nexport * from \"./phone-code.vue?vue&type=script&lang=js&\"\nimport style0 from \"./phone-code.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../Downloads/HBuilderX.3.99.2023122611/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 = \"user/pages/phone-code.vue\"\nexport default component.exports","export * from \"-!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./phone-code.vue?vue&type=template&id=989f2486&\"","var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var g0 = _vm.subForm.short_code.length\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 \"-!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./phone-code.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./phone-code.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"mine-pages-phone flex-center flex-column\">\r\n\t\t<view class=\"title c-black\">请输入验证码</view>\r\n\t\t<view class=\"flex-y-center f-caption c-caption mt-lg\">验证码已发送至<view class=\"ml-sm\" :style=\"{color:primaryColor}\">\r\n\t\t\t\t{{subForm.phone}}\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"space-lg\"></view>\r\n\t\t<view class=\"space-lg\"></view>\r\n\t\t<view class=\"space-md\"></view>\r\n\r\n\t\t<view>\r\n\t\t\t<xt-verify-code v-model=\"subForm.short_code\" @confirm=\"confirm\"></xt-verify-code>\r\n\t\t</view>\r\n\r\n\t\t<view class=\"flex-center f-caption c-caption mt-lg\">\r\n\t\t\t<view class=\"flex-center\" v-if=\"authTime > 0\">\r\n\t\t\t\t<view class=\"c-title mr-sm\">{{`${authTime}s`}}</view>后\r\n\t\t\t</view>\r\n\t\t\t<view @tap=\"toResetCode\" :style=\"{color:authTime > 0?'':primaryColor}\">重新获取</view>\r\n\t\t</view>\r\n\r\n\t\t<view @tap=\"submit\" class=\"confirm-btn flex-center f-sm-title text-bold c-base radius-16\"\r\n\t\t\t:style=\"{background:subForm.short_code.length > 0 ? primaryColor:'#CCE9DD'}\">确定\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport {\r\n\t\tmapState,\r\n\t\tmapActions,\r\n\t\tmapMutations\r\n\t} from \"vuex\"\r\n\timport xtVerifyCode from \"@/components/xt-verify-code\"\r\n\texport default {\r\n\t\tcomponents: {\r\n\t\t\txtVerifyCode\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tisLoad: false,\r\n\t\t\t\toptions: {},\r\n\t\t\t\tauthTime: 60,\r\n\t\t\t\ttimer: null,\r\n\t\t\t\tsubForm: {\r\n\t\t\t\t\tphone: '',\r\n\t\t\t\t\tshort_code: ''\r\n\t\t\t\t},\r\n\t\t\t\trule: [{\r\n\t\t\t\t\tname: \"short_code\",\r\n\t\t\t\t\tcheckType: \"isNotNull\",\r\n\t\t\t\t\terrorMsg: \"请输入短信验证码\",\r\n\t\t\t\t\tregText: \"短信验证码\"\r\n\t\t\t\t}],\r\n\t\t\t\tlockTap: false,\r\n\t\t\t}\r\n\t\t},\r\n\t\tcomputed: mapState({\r\n\t\t\tprimaryColor: state => state.config.configInfo.primaryColor,\r\n\t\t\tsubColor: state => state.config.configInfo.subColor,\r\n\t\t}),\r\n\t\tasync onLoad(options) {\r\n\t\t\tlet {\r\n\t\t\t\tphone\r\n\t\t\t} = options\r\n\t\t\tthis.subForm.phone = phone\r\n\t\t\tthis.$util.setNavigationBarColor({\r\n\t\t\t\tbg: this.primaryColor\r\n\t\t\t})\r\n\t\t\tthis.initIndex()\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t...mapActions(['getUserInfo']),\r\n\t\t\t...mapMutations(['updateUserItem']),\r\n\t\t\tasync initIndex() {\r\n\t\t\t\tlet time = 60\r\n\t\t\t\tthis.timer = setInterval(() => {\r\n\t\t\t\t\tif (time === 0) {\r\n\t\t\t\t\t\tclearInterval(this.timer)\r\n\t\t\t\t\t\treturn\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttime--\r\n\t\t\t\t\tthis.authTime = time\r\n\t\t\t\t}, 1000)\r\n\t\t\t},\r\n\t\t\tinitRefresh() {\r\n\t\t\t\tthis.initIndex()\r\n\t\t\t},\r\n\t\t\tasync toResetCode() {\r\n\t\t\t\tlet {\r\n\t\t\t\t\tauthTime\r\n\t\t\t\t} = this\r\n\t\t\t\tif (authTime) return\r\n\t\t\t\tthis.timer && clearTimeout(this.timer)\r\n\t\t\t\tlet {\r\n\t\t\t\t\tphone\r\n\t\t\t\t} = this.subForm\r\n\t\t\t\tawait this.$api.user.sendShortMsg({\r\n\t\t\t\t\tphone\r\n\t\t\t\t})\r\n\t\t\t\tthis.$util.showToast({\r\n\t\t\t\t\ttitle: `验证码发送成功`\r\n\t\t\t\t})\r\n\t\t\t\tthis.initRefresh()\r\n\t\t\t},\r\n\t\t\tconfirm() {\r\n\r\n\t\t\t},\r\n\t\t\t//表单验证\r\n\t\t\tvalidate(param) {\r\n\t\t\t\tlet validate = new this.$util.Validate();\r\n\t\t\t\tthis.rule.map(item => {\r\n\t\t\t\t\tlet {\r\n\t\t\t\t\t\tname,\r\n\t\t\t\t\t} = item\r\n\t\t\t\t\tvalidate.add(param[name], item);\r\n\t\t\t\t})\r\n\t\t\t\tlet message = validate.start();\r\n\t\t\t\treturn message;\r\n\t\t\t},\r\n\t\t\tasync submit() {\r\n\t\t\t\tlet param = this.$util.deepCopy(this.subForm)\r\n\t\t\t\tlet msg = this.validate(param);\r\n\t\t\t\tif (msg) {\r\n\t\t\t\t\tthis.$util.showToast({\r\n\t\t\t\t\t\ttitle: msg\r\n\t\t\t\t\t})\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t\tif (this.lockTap) return\r\n\t\t\t\tthis.lockTap = true\r\n\t\t\t\tthis.$util.showLoading()\r\n\t\t\t\ttry {\r\n\t\t\t\t\tawait this.$api.user.bindUserPhone(param)\r\n\t\t\t\t\tthis.$util.hideAll()\r\n\t\t\t\t\tthis.lockTap = false\r\n\t\t\t\t\tthis.timer && clearTimeout(this.timer)\r\n\t\t\t\t\tthis.updateUserItem({\r\n\t\t\t\t\t\tkey: 'isShowLogin',\r\n\t\t\t\t\t\tval: false\r\n\t\t\t\t\t})\r\n\t\t\t\t\tawait this.getUserInfo()\r\n\t\t\t\t\tconsole.log('登录成功');\r\n\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\turl: '/pages/service'\r\n\t\t\t\t\t})\r\n\t\t\t\t\t// setTimeout(() => {\r\n\t\t\t\t\t// \tlet {\r\n\t\t\t\t\t// \t\tloginPage: url\r\n\t\t\t\t\t// \t} = this\r\n\t\t\t\t\t// \tlet pageArr = ['/pages/service', '/pages/technician', '/pages/order', '/pages/mine']\r\n\t\t\t\t\t// \tlet openType = pageArr.includes(url) ? `reLaunch` : `navigateBack`\r\n\t\t\t\t\t// \tthis.$util.goUrl({\r\n\t\t\t\t\t// \t\turl: pageArr.includes(url) ? url : 3,\r\n\t\t\t\t\t// \t\topenType\r\n\t\t\t\t\t// \t})\r\n\t\t\t\t\t// }, 1000)\r\n\t\t\t\t} catch (e) {\r\n\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\tthis.lockTap = false\r\n\t\t\t\t\t\tthis.$util.hideAll()\r\n\t\t\t\t\t}, 2000)\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n\r\n<style lang=\"scss\">\r\n\tpage {\r\n\t\tbackground: #fff;\r\n\t}\r\n\r\n\t.mine-pages-phone {\r\n\t\t.title {\r\n\t\t\tfont-size: 54rpx;\r\n\t\t\tmargin-top: 80rpx;\r\n\t\t}\r\n\r\n\t\t.confirm-btn {\r\n\t\t\twidth: 630rpx;\r\n\t\t\theight: 110rpx;\r\n\t\t\tbackground: #F7F7F7;\r\n\t\t\tmargin-top: 40rpx;\r\n\r\n\t\t\t.item-input {\r\n\t\t\t\theight: 110rpx;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</style>","import mod from \"-!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./phone-code.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./phone-code.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1725332665825\n var cssReload = require(\"C:/Users/Administrator/Downloads/HBuilderX.3.99.2023122611/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":""}