hengmei-two/unpackage/dist/dev/.sourcemap/mp-weixin/components/status-nav.js.map

1 line
13 KiB
Plaintext

{"version":3,"sources":["webpack:///D:/chenq/chen/hengmei/hengmei/components/status-nav.vue?6a4d","webpack:///D:/chenq/chen/hengmei/hengmei/components/status-nav.vue?5df7","webpack:///D:/chenq/chen/hengmei/hengmei/components/status-nav.vue?bc9b","webpack:///D:/chenq/chen/hengmei/hengmei/components/status-nav.vue?49d5","uni-app:///components/status-nav.vue","webpack:///D:/chenq/chen/hengmei/hengmei/components/status-nav.vue?6e2d","webpack:///D:/chenq/chen/hengmei/hengmei/components/status-nav.vue?0401"],"names":["name","props","statusTitle","type","default","statusBack","backgroudColor","tabcolor","titleVal","whereCome","backColor","mounted","query","uni","provider","success","code","invite_code","source_code","channel","url","method","data","path","openid","statusBarHeight","methods","backEvent","delta"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAmI;AACnI;AAC8D;AACL;AACqC;;;AAG9F;AACgL;AAChL,gBAAgB,uLAAU;AAC1B,EAAE,gFAAM;AACR,EAAE,iGAAM;AACR,EAAE,0GAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,qGAAU;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;AAAwqB,CAAgB,sqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eCoB5rB;EACAA;EACAC;IACAC;MAAA;MACAC;MACAC;IACA;IACAC;MAAA;MACAF;MACAC;IACA;IACAE;MAAA;MACAH;MACAC;IACA;IACAG;MAAA;MACAJ;MACAC;IACA;IACAI;MAAA;MACAL;MACAC;IACA;IACAK;MAAA;MACAN;MACAC;IACA;IACAM;MAAA;MACAP;MACAC;IACA;EACA;EACAO;IAAA;IACA;IACA;IACAC;MACA;MACAC;MACA;IACA;;IAEA;IACA;IACA;IACA;IACA;IACAA;IACAA;IACA;IACA;IACA;MACAA;QACAC;QACAC;UACA;YACA;cACAC;cACAC;cAAA;cACAC;cAAA;cACAC;YACA;YACAN;cACAO;cACAC;cACAC;cACAP;gBACA;kBACAQ;kBACAC;gBACA;kBACA,oBACA;gBACA;cACA;YACA;UACA;QACA;MACA;IACA;EACA;EACAF;IACA;MACAG;IACA;EACA;;EACAC;IACAC;MAAA;MACA;QACA;MACA;MACA;QACA;UACAd;YAAAe;UAAA;UACA;QACA;QACA;UACAf;UACAA;YACAO;UACA;UACA;QACA;UACAP;YACAO;UACA;UACA;QACA;UACA;MAAA;IAEA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;ACnIA;AAAA;AAAA;AAAA;AAA6+B,CAAgB,u8BAAG,EAAC,C;;;;;;;;;;;ACAjgC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/status-nav.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./status-nav.vue?vue&type=template&id=1313cf7a&scoped=true&\"\nvar renderjs\nimport script from \"./status-nav.vue?vue&type=script&lang=js&\"\nexport * from \"./status-nav.vue?vue&type=script&lang=js&\"\nimport style0 from \"./status-nav.vue?vue&type=style&index=0&id=1313cf7a&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../HbuilderX/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 \"1313cf7a\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/status-nav.vue\"\nexport default component.exports","export * from \"-!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./status-nav.vue?vue&type=template&id=1313cf7a&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 \"-!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./status-nav.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./status-nav.vue?vue&type=script&lang=js&\"","<template>\r\n <view class=\"status-box statusHNH\">\r\n <view :style=\"{height:statusBarHeight+'px',background:backgroudColor}\"></view>\r\n <view class=\"status-nav\" :style=\"{background:backgroudColor}\">\r\n <!-- 返回键 -->\r\n\t\t\t<view @tap=\"backEvent\" v-if=\"statusBack\" style=\"height: 33rpx;width: 120rpx;flex-shrink: 0;position: absolute;\">\r\n\t\t\t\t<image v-if=\"backColor==0\" class=\"tab-back\" src=\"/static/public/backBlackm.png\"></image>\r\n\t\t\t\t<image v-if=\"backColor==1\" class=\"tab-back\" src=\"/static/public/videoBack.png\"></image>\r\n\t\t\t</view>\r\n <!-- 标题 -->\r\n\t\t\t<!-- <view v-if=\"statusTitle\" :class=\"statusBack ? 'tcenter' : 'tleft'\" class=\"tab-title\" :style=\"{color:tabcolor}\">{{titleVal}}</view> -->\r\n\t\t\t<view v-if=\"statusTitle\" class=\"tab-title disjcac\" :style=\"{color:tabcolor}\">\r\n\t\t\t\t<view class=\"clips1\" style=\"max-width: 320rpx;\">{{titleVal}}</view>\r\n\t\t\t</view>\r\n\t\t\t<view v-else class=\"tab-title tcenter\" :style=\"{color:tabcolor}\"> </view>\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\n export default {\r\n\t\tname:'status-nav',\r\n props:{\r\n statusTitle:{//是否显示标题\r\n type:Boolean,\r\n default:false\r\n },\r\n statusBack:{//是否显示返回键\r\n type:Boolean,\r\n default:true\r\n },\r\n backgroudColor:{//标题栏背景颜色\r\n type:String,\r\n default:'#FFFFFF'\r\n },\r\n tabcolor:{//标题颜色\r\n type:String,\r\n default:'#333333'\r\n },\r\n titleVal:{//标题内容\r\n type:String,\r\n default:''\r\n },\r\n\t\t\twhereCome:{//来自哪个页面\r\n\t\t\t\ttype:Number,\r\n\t\t\t\tdefault:0\r\n\t\t\t},\r\n\t\t\tbackColor:{//返回键颜色\r\n\t\t\t\ttype:Number,\r\n\t\t\t\tdefault:0\r\n\t\t\t}\r\n },\r\n\t\tmounted() {\r\n\t\t\t// 缓存状态栏+标题栏的高度\r\n\t\t\tconst query = wx.createSelectorQuery().in(this)\r\n\t\t\tquery.select('.statusHNH').boundingClientRect((rect) => {\r\n\t\t\t\t// console.log('状态栏+标题栏:',rect.height);\r\n\t\t\t\tuni.setStorageSync('statusHNH',rect.height);\r\n\t\t\t\tthis.$store.commit('updateHeightEv',rect.height)\r\n\t\t\t}).exec()\r\n\t\t\t\r\n\t\t\t// 转发进入:获取页面路径\r\n\t\t\tlet pages = getCurrentPages(); //获取加载的页面\r\n\t\t\tlet currentPage = pages[pages.length - 1]; //获取当前页面的对象\r\n\t\t\t// console.log(currentPage.route,'获取当前页面路径');\r\n\t\t\t// console.log(currentPage.$page.fullPath,'获取当前页面完整路径带参数');\r\n\t\t\tuni.setStorageSync('url',`/${currentPage.route}`);\r\n\t\t\tuni.setStorageSync('paramsUrl',currentPage.$page.fullPath);\r\n\t\t\t// console.log(uni.getStorageSync('paramsUrl'),66);\r\n\t\t\t// console.log(uni.getStorageSync('url'),64);\r\n\t\t\tif(currentPage.options.invite_code){\r\n\t\t\t\tuni.login({\r\n\t\t\t\t\tprovider: 'weixin',\r\n\t\t\t\t\tsuccess: (res)=> {\r\n\t\t\t\t\t\tif (res.code) {\r\n\t\t\t\t\t\t\tvar params = {\r\n\t\t\t\t\t\t\t\tcode: res.code,\r\n\t\t\t\t\t\t\t\tinvite_code: currentPage.options.invite_code || '', // 用户邀请码\r\n\t\t\t\t\t\t\t\tsource_code: currentPage.options.source_code || '', // 渠道\r\n\t\t\t\t\t\t\t\tchannel: currentPage.options.channel || ''\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tuni.request({\r\n\t\t\t\t\t\t\t\turl: `${uni.getStorageSync('hostapi')}user/login`,\r\n\t\t\t\t\t\t\t\tmethod: 'GET',\r\n\t\t\t\t\t\t\t\tdata: params,\r\n\t\t\t\t\t\t\t\tsuccess: res => { \r\n\t\t\t\t\t\t\t\t\tthis.$requst.post('user/unusual-enter',{\r\n\t\t\t\t\t\t\t\t\t\tpath:currentPage.$page.fullPath,\r\n\t\t\t\t\t\t\t\t\t\topenid:res.data.data.openid\r\n\t\t\t\t\t\t\t\t\t}).then(res=>{\r\n\t\t\t\t\t\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t},\r\n data() {\r\n return {\r\n statusBarHeight:uni.getSystemInfoSync().statusBarHeight,//获取手机状态栏高度\r\n };\r\n },\r\n\t\tmethods:{\r\n\t\t\tbackEvent(){//返回事件\r\n\t\t\t\tif(getApp().globalData.outside){\r\n\t\t\t\t\tthis.whereCome = 6;\r\n\t\t\t\t}\r\n\t\t\t\tswitch (this.whereCome){\r\n\t\t\t\t\tcase 0:\r\n\t\t\t\t\tuni.navigateBack({delta:1})\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\tcase 6:\r\n\t\t\t\t\tuni.removeStorageSync('outside');\r\n\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\turl:'/pages/tabbar/pagehome/pagehome'\r\n\t\t\t\t\t})\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 2:\r\n\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\turl:'/pages/tabbar/my/my'\r\n\t\t\t\t\t})\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n\t.status-box{position: fixed;top: 0;left: 0;right: 0;z-index: 10;}\r\n\t.status-nav{width: 100%;position: relative;padding: 30rpx 0;display: flex;align-items: center;}\r\n\t.tab-back{width: 33rpx;height: 33rpx;flex-shrink: 0;position: absolute;left: 20rpx;}\r\n\t.tab-title{font-size: 36rpx;font-weight: bold;color: #333333;width: 100%;}\r\n\t.tcenter{text-align: center;}\r\n\t.tleft{margin-left: 40rpx;}\r\n</style>\r\n","import mod from \"-!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./status-nav.vue?vue&type=style&index=0&id=1313cf7a&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./status-nav.vue?vue&type=style&index=0&id=1313cf7a&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1672826680674\n var cssReload = require(\"D:/HbuilderX/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":""}