星油车管小程序
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
26 KiB

{"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/lenovo/Documents/HBuilderProjects/Nebula-Flash-Charge_MP-WEIXIN/AppletCode/pages/index/index.vue?4792","webpack:///C:/Users/lenovo/Documents/HBuilderProjects/Nebula-Flash-Charge_MP-WEIXIN/AppletCode/pages/index/index.vue?0102","webpack:///C:/Users/lenovo/Documents/HBuilderProjects/Nebula-Flash-Charge_MP-WEIXIN/AppletCode/pages/index/index.vue?d650","webpack:///C:/Users/lenovo/Documents/HBuilderProjects/Nebula-Flash-Charge_MP-WEIXIN/AppletCode/pages/index/index.vue?85ff","uni-app:///AppletCode/pages/index/index.vue","webpack:///C:/Users/lenovo/Documents/HBuilderProjects/Nebula-Flash-Charge_MP-WEIXIN/AppletCode/pages/index/index.vue?455f","webpack:///C:/Users/lenovo/Documents/HBuilderProjects/Nebula-Flash-Charge_MP-WEIXIN/AppletCode/pages/index/index.vue?7627"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","replace","phone","token","verification","replacePhone","replacePhoneToken","Verification","postData","timerNumber","timer","basicsData","fromSwitchingState","fromStyle","height","nameType","plateNumberType","phoneType","replacePhoneType","animation","current","styles","qh","codeBg","mounted","Object","console","onLoad","onHide","uni","watch","setTimeout","methods","closeFn","replacePhoneFn","title","icon","wxcode","code","verifyCodeToken","clearReplaceFn","codeClick","countDown","clearInterval","checkFn","test","submit","url","goLogin","decryptPhoneNumber","e","tools","phoneNumber","init","loginRes","resize","query","stopTouchMove","iconClick"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,cAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACyD;AACL;AACqC;;;AAGzF;AACgN;AAChN,gBAAgB,wNAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,4FAAM;AACR,EAAE,qGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,gGAAU;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,aAAa,sTAEN;AACP,KAAK;AACL;AACA,aAAa,gQAEN;AACP,KAAK;AACL;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACpDA;AAAA;AAAA;AAAA;AAAszB,CAAgB,s0BAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;ACiG10B;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eACA;EACAC;IACA;MACAC;QACAC;QACAC;QACAC;MACA;MACAC;MACAC;MACAC;MACAC;QACA;QACA;QACA;QACA;QACA;QACA;QACA;MACA;MACAC;MACAC;MACAC;MACAC;MACAC;QACAC;QACAC;QACAC;QACAC;QACAC;MACA;MACAC;MACAC;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IAAA;IACA;IACAC;MACA;IACA;IACA;IACAC;EACA;EACAC;IACA;IACA;IACA;EACA;EACAC;IACAF;IACAG;EACA;EACAC;IACAX;MAAA;MACA;QACAY;UACA;UACA;UACA;QACA;MACA;IACA,EACA;IACA;IACA;IACA;IACA;IACA;IACA;EACA;EACAC;IACAC;MACA;MACA;IACA;IACAC;MAAA;MACA;MACA;QACAL;UACAM;UACAC;QACA;QACA;MACA;MACAC;QACAC;QACAC;MACA;QACA;UACAV;YACAM;YACAC;UACA;UACA;UACA;UACA;UACA;UACA;QACA;MACA;IACA;IACAI;MAAA;MACAf;QACA;MACA;IACA;IACAgB;MAAA;MACA;MACA;MACA;QACAZ;UACAM;UACAC;QACA;QACA;MACA;MACAC;QACAnC;MACA;QACA;UACA;UACA2B;YACAM;YACAC;UACA;UACA;QACA;MACA;IACA;IACAM;MAAA;MACA;MACA;QACA;UACAC;QAEA;UACA;QACA;MACA;IACA;IACAC;MACA;QACA;UACA,0BACA,+GACAC;UACA;QACA;UACA,iCACA,kMACAA;UACA;QACA;UACA;UACA;QACA;UACA;UACA;MAAA;IAEA;IACAC;MACA;MACA;MACA;QACAjB;UACAM;UACAC;QACA;QACA;MACA;MAAA;MACAC;QACA;UACAR;YACAM;YACAC;UACA;UACAL;YACAF;cACAkB;YACA;UACA;QACA;MACA;IACA;IACAC;MACAnB;QACAkB;MACA;IACA;IACAE;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA,MACAC;kBAAA;kBAAA;gBAAA;gBAAA;gBAAA,OACAC;cAAA;gBAAAC;gBACA;kBACA;kBACAvB;kBACA;gBACA;kBACAA;oBACAM;kBACA;gBACA;gBAAA;gBAAA;cAAA;gBAEAN;kBACAM;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IAGA;IACAkB;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACAF;cAAA;gBAAAG;gBAAA;gBAAA,OACAH;cAAA;gBACA;kBACA;gBACA;gBAAA;gBAAA,oBAIA;gBAFA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IAEA;IACAI;MAAA;MACA;MACAC;QACA;QACA9B;MACA;IACA;IACA+B;MACA;IACA;IACAC;MACA;MACA;MACA;QACA7B;UACAM;UACAC;QACA;QACA;MACA;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;ACxVA;AAAA;AAAA;AAAA;AAAsrC,CAAgB,yqCAAG,EAAC,C;;;;;;;;;;;ACA1sC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"AppletCode/pages/index/index.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './AppletCode/pages/index/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=239d0690&scoped=true&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=239d0690&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\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 \"239d0690\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"AppletCode/pages/index/index.vue\"\nexport default component.exports","export * from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--17-0!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=239d0690&scoped=true&\"","var components\ntry {\n components = {\n uniIcons: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uni-icons/components/uni-icons/uni-icons\" */ \"@/uni_modules/uni-icons/components/uni-icons/uni-icons.vue\"\n )\n },\n uniPopup: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uni-popup/components/uni-popup/uni-popup\" */ \"@/uni_modules/uni-popup/components/uni-popup/uni-popup.vue\"\n )\n },\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n if (!_vm._isMounted) {\n _vm.e0 = function ($event) {\n _vm.current = 0\n }\n _vm.e1 = function ($event) {\n _vm.animation = true\n }\n _vm.e2 = function ($event) {\n _vm.current = 1\n }\n _vm.e3 = function ($event) {\n _vm.current = 0\n }\n }\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"code_body\">\r\n\t\t<view class=\"code_header\" :style=\"{paddingTop:(styles.top+styles.height)+'px'}\">\r\n\t\t\t<image class=\"code_body_headerImg\" :src=\"codeBg\"></image>\r\n\t\t\t<view v-if=\"current!==0\" @click=\"current=0\" :style=\"{top:styles.top+'px'}\" class=\"back\">\r\n\t\t\t\t<uni-icons type=\"back\" size=\"30\"></uni-icons>\r\n\t\t\t</view>\r\n\t\t\t<view v-if=\"fromSwitchingState==false&&postData.phone\" @click=\"animation=true\" :style=\"{top:styles.top+'px'}\" class=\"back\">\r\n\t\t\t\t<uni-icons type=\"back\" size=\"30\"></uni-icons>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"code_header_text\">\r\n\t\t\t\t<image class=\"code_header_logo\" src=\"@/static/account.png\"></image>\r\n\t\t\t\t<view class=\"samall_text\">现邀请成为</view>\r\n\t\t\t\t<view class=\"bold_text\">{{basicsData.name}}的{{basicsData.selfOperatedOrOutsourced==1?'自营':'外请'}}司机\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\r\n\t\t<view :style=\"{\ttransform: `translateY(${animation?fromStyle.height+'px':0})`}\" class=\"code_from_body\">\r\n\t\t\t<view v-if=\"!fromSwitchingState\" class=\"code_from_body_tip\">使用其他手机号</view>\r\n\t\t\t<swiper :current='current' style=\"height: 100%;\" class=\"swiper\" circular>\r\n\t\t\t\t<swiper-item v-if=\"fromSwitchingState\" catchtouchmove=\"stopTouchMove\">\r\n\t\t\t\t\t<view style=\"transition: all .3s;padding: 10px;\">\r\n\t\t\t\t\t\t<view class=\"code_from_item\">\r\n\t\t\t\t\t\t\t<input :disabled=\"true\" v-model=\"postData.phone\" class=\"code_from_input\"\r\n\t\t\t\t\t\t\t\tplaceholder=\"请输入手机号\" />\r\n\t\t\t\t\t\t\t<view @click=\"iconClick\">\r\n\t\t\t\t\t\t\t\t<image class=\"code_from_input_icon\" :src=\"qh\"></image>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view :class=\"fromStyle.nameType?'code_from_item':'err_item'\">\r\n\t\t\t\t\t\t\t<input @blur=\"checkFn('name')\" v-model=\"postData.name\" class=\"code_from_input\"\r\n\t\t\t\t\t\t\t\tplaceholder=\"请输入姓名\" />\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view :class=\"fromStyle.plateNumberType?'code_from_item':'err_item'\">\r\n\t\t\t\t\t\t\t<input @blur=\"checkFn('plateNumber')\" v-model=\"postData.plateNumber\" class=\"code_from_input\"\r\n\t\t\t\t\t\t\t\tplaceholder=\"请输入车牌号\" />\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view @click=\"current=1\" class=\"code_from_footer_tip\">\r\n\t\t\t\t\t\t\t<view class=\"code_from_footer_tip_text\">申请理由</view>\r\n\t\t\t\t\t\t\t<view\r\n\t\t\t\t\t\t\t\tstyle=\"flex: 1;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;margin: 0 10px;\">\r\n\t\t\t\t\t\t\t\t{{postData.remark}}\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t<view>\r\n\t\t\t\t\t\t\t\t<uni-icons color='#bbbbbb' type=\"forward\" size=\"25\"></uni-icons>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view class=\"code_from_item_butten\">\r\n\t\t\t\t\t\t\t<button @click=\"submit\" class=\"code_from_butten\">提交注册申请</button>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</swiper-item>\r\n\t\t\t\t<swiper-item v-if=\"fromSwitchingState\" catchtouchmove=\"stopTouchMove\">\r\n\t\t\t\t\t<view>申请理由</view>\r\n\t\t\t\t\t<view style=\"width: 100%;\">\r\n\t\t\t\t\t\t<textarea v-model=\"postData.remark\" class=\"code_from_textarea\" placeholder=\"请输入申请理由\"></textarea>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"code_from_item_butten\">\r\n\t\t\t\t\t\t<button @click=\"current=0\" class=\"code_from_butten\">确定</button>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</swiper-item>\r\n\t\t\t\t<swiper-item v-else=\"fromSwitchingState\" catchtouchmove=\"stopTouchMove\">\r\n\t\t\t\t\t<view style=\"padding: 10px;\">\r\n\t\t\t\t\t\t<view :class=\"fromStyle.replacePhoneType?'code_from_item':'err_item'\">\r\n\t\t\t\t\t\t\t<input @blur=\"checkFn('replacePhone')\" v-model=\"replace.phone\" class=\"code_from_input\"\r\n\t\t\t\t\t\t\t\tplaceholder=\"请输入手机号\" />\r\n\t\t\t\t\t\t\t<view @click=\"codeClick\">\r\n\t\t\t\t\t\t\t\t<text style=\"color: #476FFAFF;\">{{timerNumber?timerNumber+'s':'获取验证码'}}</text>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view class=\"code_from_item\">\r\n\t\t\t\t\t\t\t<input v-model=\"replace.verification\" class=\"code_from_input\" placeholder=\"请输入验证码\" />\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view class=\"code_from_item_butten\">\r\n\t\t\t\t\t\t\t<button @click=\"replacePhoneFn\" class=\"code_from_butten\">确定</button>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</swiper-item>\r\n\t\t\t</swiper>\r\n\r\n\t\t</view>\r\n\t\t<view @click=\"goLogin\" class=\"code_footer\">已有账号?<text style=\"font-size: 30rpx;\">去登录</text> </view>\r\n\t\t<uni-popup :mask-click='false' ref=\"popup\" type=\"center\">\r\n\t\t\t<view class=\"phone\">\r\n\t\t\t\t<view>需要获取您的手机号用于注册</view>\r\n\t\t\t\t<view style=\"display: flex;\">\r\n\t\t\t\t\t<button style=\"font-size: 28rpx;margin-right: 25rpx;\" type=\"primary\" open-type=\"getPhoneNumber\"\r\n\t\t\t\t\t\t@getphonenumber=\"decryptPhoneNumber\"> 点击授权 </button>\r\n\t\t\t\t\t<button style=\"font-size: 28rpx; margin-right: 35rpx;\" @click=\"closeFn\">取消</button>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</uni-popup>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport tools from '@/utils/tool.js';\r\n\timport wxcode from '@/api/wxcode.js'\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\treplace: {\r\n\t\t\t\t\tphone: '',\r\n\t\t\t\t\ttoken: '',\r\n\t\t\t\t\tverification: ''\r\n\t\t\t\t},\r\n\t\t\t\treplacePhone: '',\r\n\t\t\t\treplacePhoneToken: '',\r\n\t\t\t\tVerification: '',\r\n\t\t\t\tpostData: {\r\n\t\t\t\t\t\"name\": \"\",\r\n\t\t\t\t\t\"phone\": uni.getStorageSync('phone'),\r\n\t\t\t\t\t\"qrCode\": \"\",\r\n\t\t\t\t\t\"plateNumber\": \"\",\r\n\t\t\t\t\t\"remark\": \"\",\r\n\t\t\t\t\t\"createSource\": \"XOIL_DRIVER_COMPANY_WECHAT_APPLET\",\r\n\t\t\t\t\t\"selfOperatedOrOutsourced\": \"0\"\r\n\t\t\t\t},\r\n\t\t\t\ttimerNumber: 0,\r\n\t\t\t\ttimer: null,\r\n\t\t\t\tbasicsData: null,\r\n\t\t\t\tfromSwitchingState: true,\r\n\t\t\t\tfromStyle: {\r\n\t\t\t\t\theight: '',\r\n\t\t\t\t\tnameType: true,\r\n\t\t\t\t\tplateNumberType: true,\r\n\t\t\t\t\tphoneType: true,\r\n\t\t\t\t\treplacePhoneType: true\r\n\t\t\t\t},\r\n\t\t\t\tanimation: false,\r\n\t\t\t\tcurrent: 0,\r\n\t\t\t\tstyles: null,\r\n\t\t\t\tqh: require('../../static/img/qh.png'), \r\n\t\t\t\tcodeBg: require('../../static/img/codeBg.png')\r\n\t\t\t}\r\n\t\t},\r\n\t\tmounted() {\r\n\t\t\tthis.styles = uni.getMenuButtonBoundingClientRect()\r\n\t\t\tObject.keys(this.styles).forEach(key => {\r\n\t\t\t\tthis.styles[key] = this.styles[key]\r\n\t\t\t});\r\n\t\t\tthis.resize()\r\n\t\t\tconsole.log(this.styles)\r\n\t\t},\r\n\t\tonLoad(e) {\r\n\t\t\tthis.basicsData = JSON.parse(e.details);\r\n\t\t\tthis.postData.selfOperatedOrOutsourced = this.basicsData.selfOperatedOrOutsourced\r\n\t\t\tthis.init()\r\n\t\t},\r\n\t\tonHide() {\r\n\t\t\tconsole.log('000')\r\n\t\t\tuni.clearStorageSync()\r\n\t\t},\r\n\t\twatch: {\r\n\t\t\tanimation(n) {\r\n\t\t\t\tif (n) {\r\n\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\tthis.animation = false;\r\n\t\t\t\t\t\tthis.fromSwitchingState = !this.fromSwitchingState;\r\n\t\t\t\t\t\tthis.clearReplaceFn()\r\n\t\t\t\t\t}, 500)\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// \"postData.phone\":{\r\n\t\t\t// \thandler (n) {\r\n\t\t\t// \t\tif (n) {\r\n\t\t\t// \t\t\tthis.$refs.popup.close()\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\tmethods: {\r\n\t\t\tcloseFn() {\r\n\t\t\t\tthis.$refs.popup.close();\r\n\t\t\t\tthis.animation = true;\r\n\t\t\t},\r\n\t\t\treplacePhoneFn() {\r\n\t\t\t\tthis.checkFn('replacePhone')\r\n\t\t\t\tif (!this.fromStyle.replacePhoneType) {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: '请输入正确手机号',\r\n\t\t\t\t\t\ticon: 'error'\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\twxcode.checkCodeWithDel({\r\n\t\t\t\t\tcode:this.replace.verification,\r\n\t\t\t\t\tverifyCodeToken:this.replace.token\r\n\t\t\t\t}).then(res=>{\r\n\t\t\t\t\tif(res.code==20000){\r\n\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\ttitle: '更换成功',\r\n\t\t\t\t\t\t\ticon: 'success'\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\tthis.postData.phone = this.replace.phone;\r\n\t\t\t\t\t\tthis.animation = true;\r\n\t\t\t\t\t\tthis.postData.name = '';\r\n\t\t\t\t\t\tthis.postData.remark = '';\r\n\t\t\t\t\t\tthis.postData.plateNumber = '';\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tclearReplaceFn() {\r\n\t\t\t\tObject.keys(this.replace).forEach(keys => {\r\n\t\t\t\t\tthis.replace[keys] = ''\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tcodeClick() {\r\n\t\t\t\tif (this.timerNumber !== 0) return;\r\n\t\t\t\tthis.checkFn('replacePhone');\r\n\t\t\t\tif (!this.replace.phone) {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: '请输入正确手机号',\r\n\t\t\t\t\t\ticon: 'error'\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\twxcode.loginSmsCode({\r\n\t\t\t\t\tphone: this.replace.phone\r\n\t\t\t\t}).then(res => {\r\n\t\t\t\t\tif (res.code == 20000) {\r\n\t\t\t\t\t\tthis.countDown()\r\n\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\ttitle: '验证码已发送到您的手机',\r\n\t\t\t\t\t\t\ticon: 'success'\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tthis.replace.token = res.data.verifyCodeToken\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tcountDown() {\r\n\t\t\t\tthis.timerNumber = 60\r\n\t\t\t\tthis.timer = setInterval(() => {\r\n\t\t\t\t\tif (this.timerNumber == 0) {\r\n\t\t\t\t\t\tclearInterval(this.timer);\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.timerNumber -= 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}, 1000)\r\n\t\t\t},\r\n\t\t\tcheckFn(e) {\r\n\t\t\t\tswitch (e) {\r\n\t\t\t\t\tcase 'name':\r\n\t\t\t\t\t\tthis.fromStyle.nameType =\r\n\t\t\t\t\t\t\t/(^[\\u4e00-\\u9fa5]{1}[\\u4e00-\\u9fa5\\.·。]{0,18}[\\u4e00-\\u9fa5]{1}$)|(^[a-zA-Z]{1}[a-zA-Z\\s]{0,18}[a-zA-Z]{1}$)/\r\n\t\t\t\t\t\t\t.test(this.postData.name);\r\n\t\t\t\t\t\tbreak\r\n\t\t\t\t\tcase 'plateNumber':\r\n\t\t\t\t\t\tthis.fromStyle.plateNumberType =\r\n\t\t\t\t\t\t\t/^([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1})$/\r\n\t\t\t\t\t\t\t.test(this.postData.plateNumber)\r\n\t\t\t\t\t\tbreak\r\n\t\t\t\t\tcase 'phone':\r\n\t\t\t\t\t\tthis.fromStyle.phoneType = /^1[3456789]\\d{9}$/.test(this.postData.phone); \r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 'replacePhone':\r\n\t\t\t\t\t\tthis.fromStyle.replacePhoneType = /^1[3456789]\\d{9}$/.test(this.replace.phone);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tsubmit() {\r\n\t\t\t\tthis.checkFn('name');\r\n\t\t\t\tthis.checkFn('plateNumber');\r\n\t\t\t\tif (!this.fromStyle.nameType || !this.fromStyle.plateNumberType) {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: '还有信息没有填哦',\r\n\t\t\t\t\t\ticon: 'error'\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\twxcode.theUserAuthentication(this.postData).then(res => {\r\n\t\t\t\t\tif (res.code == 20000) {\r\n\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\ttitle: '提交成功',\r\n\t\t\t\t\t\t\ticon: 'success'\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\t\turl:'/pages/login/index'\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}, 2000)\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tgoLogin() {\r\n\t\t\tuni.navigateTo({\r\n\t\t\t\turl:'/pages/login/index'\r\n\t\t\t})\r\n\t\t\t}, \r\n\t\t\tasync decryptPhoneNumber(e) { \r\n\t\t\t\tif (e.detail.errMsg === 'getPhoneNumber:ok') { \r\n\t\t\t\t\tlet phoneNumber = await tools.getPhone(e); \r\n\t\t\t\t\tif(phoneNumber){ \r\n\t\t\t\t\t\tthis.postData.phone = phoneNumber;\r\n\t\t\t\t\t\tuni.setStorageSync('phone', this.postData.phone);\r\n\t\t\t\t\t\tthis.$refs.popup.close();\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\ttitle: '手机号获取失败'\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\ttitle: '您已拒绝授权手机号'\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\r\n\t\t\t},\r\n\t\t async init() {\r\n\t\t\t\t let loginRes = await tools.weixinLogin();\r\n\t\t\t\t await tools.sendCode(loginRes.code).then(res=>{}); \r\n\t\t\t\tif (this.basicsData) {\r\n\t\t\t\t\tif (!this.postData.phone) this.$refs.popup.open('center'); \r\n\t\t\t\t};\r\n\t\t\t\t({\r\n\t\t\t\t\tqrCode: this.postData.qrCode,\r\n\t\t\t\t\tselfOperatedOrOutsourced: this.postData.selfOperatedOrOutsourced\r\n\t\t\t\t} = this.basicsData);\r\n\t\t\t},\r\n\t\t\tresize() {\r\n\t\t\t\tconst query = uni.createSelectorQuery().in(this);\r\n\t\t\t\tquery.select('.code_from_body').boundingClientRect((pos) => {\r\n\t\t\t\t\tthis.fromStyle.height = pos.height\r\n\t\t\t\t\tconsole.log('pos', pos)\r\n\t\t\t\t}).exec()\r\n\t\t\t},\r\n\t\t\tstopTouchMove() {\r\n\t\t\t\treturn false\r\n\t\t\t},\r\n\t\t\ticonClick() {\r\n\t\t\t\tconst token = uni.getStorageSync('Authorization');\r\n\t\t\t\tconst openid = uni.getStorageSync('openid');\r\n\t\t\t\tif (token && openid) {\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\treturn\r\n\t\t\t\t}\r\n\t\t\t\tthis.animation = true; \r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style scoped>\r\n\t@import url(\"../../css/index.css\");\r\n\r\n\t.phone {\r\n\t\tbackground-color: #FFFFFF;\r\n\t\theight: 300rpx;\r\n\t\twidth: 550rpx;\r\n\t\tborder-radius: 20rpx;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\tjustify-content: space-around;\r\n\t\talign-items: center;\r\n\t}\r\n</style>\r\n","import mod from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&id=239d0690&scoped=true&lang=css&\"; export default mod; export * from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&id=239d0690&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1702257187986\n var cssReload = require(\"D:/hbuliderx/HBuilderX.3.3.11.20220209.full/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":""}