sl-express/project-wl-yonghuduan-uniapp-vue3/unpackage/dist/dev/.sourcemap/mp-weixin/pages/login/index.js.map
shuhongfan cf5ac25c14 init
2023-09-04 16:40:17 +08:00

1 line
15 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"version":3,"sources":["uni-app:///main.js","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/pages/login/index.vue?c741","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/pages/login/index.vue?d0b6","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/pages/login/index.vue?2cee","uni-app:///pages/login/index.vue","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/components/Navbar/index.vue?aebe","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/components/Navbar/index.vue?ae04","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/components/Navbar/index.vue?bb86","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/components/Navbar/index.vue?b623","uni-app:///components/Navbar/index.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,6F,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACoE;AACL;AAC4B;;;AAG3F;AAC+L;AAC/L,gBAAgB,sMAAU;AAC1B,EAAE,sFAAM;AACR,EAAE,4FAAM;AACR,EAAE,qGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,gGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAA4uB,CAAgB,uvBAAG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GAFA,MAEA;AACA;AACA;;AAEA,CATA,C","file":"pages/login/index.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/login/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=4586967a&scoped=true&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./index.vue?vue&type=script&setup=true&lang=js&\"\nimport style0 from \"./index.scss?vue&type=style&index=0&id=4586967a&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!C:\\\\Users\\\\itcast\\\\Downloads\\\\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 \"4586967a\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/login/index.vue\"\nexport default component.exports","export * from \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=4586967a&scoped=true&\"","import mod from \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&setup=true&lang=js&\"; export default mod; export * from \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&setup=true&lang=js&\"","<!-- 手机短信登录页 -->\r\n<template>\r\n\t<view class=\"loginBox\">\r\n\t\t<!-- 头部导航栏 -->\r\n\t\t<NavBar title='登录'></NavBar>\r\n\t\t<view class=\"logo-box\">\r\n\t\t\t<image src='../../static/userLogo.png'></image>\r\n\t\t\t<!-- <view class=\"title\">神领快递</view> -->\r\n\t\t</view>\r\n\r\n\t\t<view class=\"open-dialog\" @click=\"handleOpen\">微信登录</view>\r\n\r\n\t\t<!-- 服务条款及隐私政策弹窗 -->\r\n\t\t<uni-popup ref=\"popup\" type=\"bottom\" >\r\n\t\t\t<view class=\"header\">\r\n\t\t\t\t<view class=\"title\">服务条款及隐私政策</view>\r\n\t\t\t\t<image src='../../static/guanbi.png' @click=\"handleClose\"></image>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"content\">\r\n\t\t\t\t<view>\r\n\t\t\t\t\t在您注册成为神领快递会员的过程中您需要通过点击同意的形式在线签署<text>《神领快递服务条款》</text>、<text>《神领快递隐私政策</text>》请您务必仔细阅读充分理解条款内容后再点击同意尤其是以粗体并下划线标识的条款因为这些条款可能会明确您应履行的义务或对您的权利有所限制。\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"tips\">\r\n\t\t\t\t\t请您注意如果您不同意上述服务条款隐私政策或其中任何约定请您停止注册\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"footer\">\r\n\t\t\t\t<button class=\"cancel-btn btn\" @click=\"handleClose\">不同意</button>\r\n\t\t\t\t<button class=\"agree-btn btn\" open-type=\"getPhoneNumber\" @getphonenumber=\"decryptPhoneNumber\">同意</button>\r\n\t\t\t</view>\r\n\t\t</uni-popup>\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport {\r\n\t\tref,\r\n\t\treactive,\r\n\t\tonMounted\r\n\t} from 'vue';\r\n\timport {\r\n\t\tuseStore\r\n\t} from 'vuex';\r\n\t// 接口\r\n\timport {\r\n\t\tlogin\r\n\t} from '../api/login.js';\r\n\t// 验证\r\n\timport {\r\n\t\tvalidatePhone,\r\n\t\ttimeCountdown,\r\n\t\tisPhone\r\n\t} from '@/utils/validate';\r\n\timport NavBar from '@/components/Navbar/index.vue'\r\n\t// ------定义变量------\r\n\tconst store = useStore(); //vuex获取储存数据\r\n\tconst popup = ref();\r\n\tconst handleOpen = () => {\r\n\t\tpopup.value.open()\r\n\t}\r\n\tconst decryptPhoneNumber = (e)=>{\r\n\t\thandleClose()\r\n\t\twx.login({\r\n\t\t\tsuccess(res){\r\n\t\t\t\tconsole.log(e,res,'eeeeee')\r\n\t\t\t\tlogin({\r\n\t\t\t\t\tcode:res.code,\r\n\t\t\t\t\tphoneCode:e.detail.code\r\n\t\t\t\t}).then((res)=>{\r\n\t\t\t\t\tconsole.log(res,'res')\r\n\t\t\t\t\t//将token存到缓存中后续在统一请求头上加上token\r\n\t\t\t\t\tuni.setStorageSync('token', res.data.token);\r\n\t\t\t\t\t//登录成功后跳转到首页\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl: '/pages/index/index'\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\t\r\n\t}\r\n\t\r\n\tconst handleClose = ()=>{\r\n\t\tpopup.value.close()\r\n\t}\r\n\t// ------生命周期------\r\n\tonMounted(() => {\r\n\t\tconsole.log(uni.getStorageSync('token'),'1111')\r\n\t});\r\n</script>\r\n<style src=\"./index.scss\" lang=\"scss\" scoped></style>\n","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=6e7b2b6e&scoped=true&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./index.vue?vue&type=script&setup=true&lang=js&\"\nimport style0 from \"./index.scss?vue&type=style&index=0&id=6e7b2b6e&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!C:\\\\Users\\\\itcast\\\\Downloads\\\\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 \"6e7b2b6e\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/Navbar/index.vue\"\nexport default component.exports","export * from \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=6e7b2b6e&scoped=true&\"","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 \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&setup=true&lang=js&\"; export default mod; export * from \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&setup=true&lang=js&\"","<template>\r\n\t<view class=\"NavBar\" :style=\"{'height':all}\">\r\n\t\t<view class=\"title\" :style=\"{'paddingTop':capsuleTop+'px',height:capsuleHeight+'px'}\">\r\n\t\t\t{{title}}\r\n\t\t\t<image src='../../static/goBack.png' @click=\"handleTo\"></image>\r\n\t\t</view>\r\n\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport {\r\n\t\tref,\r\n\t\treactive,\r\n\t\tonMounted,\r\n\t\tnextTick,\r\n\t\twatch,\r\n\t\tcomputed,\r\n\t\tdefineEmits,\r\n\t\tdefineProps\r\n\t} from 'vue';\r\n\timport {\r\n\t\tonLoad,\r\n\t\tonShow\r\n\t} from '@dcloudio/uni-app';\r\n\t// const emits = defineEmits(['@handleToLink'])\r\n\t// 获取父组件值、方法\r\n\tconst props = defineProps({\r\n\t\ttitle: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: '',\r\n\t\t},\r\n\t\thandleToLink:{//用于自定义跳转\r\n\t\t\ttype:Function\r\n\t\t}\r\n\t})\r\n\t//设备栏高度\r\n\tlet deviceNavHeight = ref()\r\n\t//胶囊顶部距离头部的距离\r\n\tlet capsuleTop = ref()\r\n\t//胶囊底部距离头部的距离\r\n\tlet capsuleBottom = ref()\r\n\t//导航栏高度\r\n\tlet all = ref()\r\n\t//胶囊高度\r\n\tlet capsuleHeight = ref()\r\n\tonLoad(() => {\r\n\t\tuni.getSystemInfo({\r\n\t\t\tsuccess: (res) => {\r\n\t\t\t\tdeviceNavHeight.value = res.statusBarHeight\r\n\t\t\t\tcapsuleTop.value = uni.getMenuButtonBoundingClientRect().top\r\n\t\t\t\tcapsuleBottom.value = uni.getMenuButtonBoundingClientRect().bottom\r\n\t\t\t\tall.value = (capsuleTop.value + capsuleBottom.value - deviceNavHeight.value) + 'px'\r\n\t\t\t\tcapsuleHeight.value = uni.getMenuButtonBoundingClientRect().height\r\n\t\t\t}\r\n\t\t})\r\n\t})\r\n\r\n\t//头部导航跳转\r\n\tconst handleTo = () => {\r\n\t\t// uni.navigateBack()\r\n\t\tconsole.log(props,'props.handleToLink')\r\n\t\tif(props.handleToLink){\r\n\t\t\tprops.handleToLink()\r\n\t\t}else{\r\n\t\t\tuni.navigateBack()\r\n\t\t}\r\n\t\t\r\n\t}\r\n</script>\r\n\r\n<style src=\"./index.scss\" lang=\"scss\" scoped></style>\n"],"sourceRoot":""}