leave-unused/unpackage/dist/dev/.sourcemap/mp-weixin/components/status-nav/status-nav.js.map

1 line
13 KiB
Plaintext

{"version":3,"sources":["webpack:///D:/Lee/leave-unused/components/status-nav/status-nav.vue?2f7b","webpack:///D:/Lee/leave-unused/components/status-nav/status-nav.vue?10aa","webpack:///D:/Lee/leave-unused/components/status-nav/status-nav.vue?31c5","webpack:///D:/Lee/leave-unused/components/status-nav/status-nav.vue?5205","uni-app:///components/status-nav/status-nav.vue","webpack:///D:/Lee/leave-unused/components/status-nav/status-nav.vue?8003","webpack:///D:/Lee/leave-unused/components/status-nav/status-nav.vue?74f3"],"names":["name","props","backgroudColor","type","default","navBarHeight","ifReturn","returnColor","ifTitle","navBarTitle","clipNumber","titleColor","ifCenter","marginBottom","estate","data","statusBarHeight","ifNet","netText","netTimer","mounted","setTimeout","methods","refreshEv","outTime","clearInterval","backEv","uni","delta","fail","url","choiceEstate"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAmI;AACnI;AAC8D;AACL;AACqC;;;AAG9F;AAC6K;AAC7K,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;AAAypB,CAAgB,sqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eC+B7qB;EACAA;EACAC;IACA;IACAC;MACAC;MACAC;IACA;IACA;IACAC;MACAF;MACAC;IACA;IACA;IACAE;MACAH;MACAC;IACA;IACA;IACAG;MACAJ;MACAC;IACA;IACA;IACAI;MACAL;MACAC;IACA;IACA;IACAK;MACAN;MACAC;IACA;IACA;IACAM;MACAP;MACAC;IACA;IACA;IACAO;MACAR;MACAC;IACA;IACA;IACAQ;MACAT;MACAC;IACA;IACA;IACAS;MACAV;MACAC;IACA;IACA;IACAU;MACAX;MACAC;IACA;EACA;EACAW;IACA;MACAC;MACAC;MAAA;MACAC;MACAC;IACA;EACA;EACAC;IAAA;IACA;IACA;IACA;IACA;IACAC;MACA;IACA;EACA;EACAC;IACA;IACAC;MAAA;MACA;MACA;MACA;QACAC;QACA;QACA;UACAC;UACA;QACA;QACA;UACAA;UACA;UACAD;QACA;MACA;IACA;IACA;IACAE;MACAC;QACAC;QACAC;UACAF;YACAG;UACA;QACA;MACA;IACA;IACA;IACAC;MACAJ;QACAG;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;AChJA;AAAA;AAAA;AAAA;AAAw9B,CAAgB,u8BAAG,EAAC,C;;;;;;;;;;;ACA5+B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/status-nav/status-nav.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./status-nav.vue?vue&type=template&id=374f26c4&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=374f26c4&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 \"374f26c4\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/status-nav/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=374f26c4&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\t<view class=\"status-box\" :style=\"{marginBottom: marginBottom}\">\r\n\t\t<!-- 网络、电量栏 -->\r\n\t\t<view :style=\"{height: statusBarHeight+'px',background: backgroudColor}\"></view>\r\n\t\t<!-- 头部状态栏 -->\r\n\t\t<view class=\"status-nav flex\" :style=\"{background: backgroudColor,height:navBarHeight}\">\r\n\t\t\t<!-- 返回键 -->\r\n\t\t\t<view class=\"left-box flex\" @tap=\"backEv\" v-if=\"ifReturn\" :style=\"{height: navBarHeight}\">\r\n\t\t\t\t<slot name=\"leftcontent\">\r\n\t\t\t\t\t<i class=\"icon icon-return\" style=\"font-size: 38rpx;\" :style=\"{color: returnColor}\"></i>\r\n\t\t\t\t</slot>\r\n\t\t\t</view>\r\n\t\t\t<!-- 标题 -->\r\n\t\t\t<view class=\"tab-title\" :style=\"{color: titleColor,justifyContent: ifCenter ? 'center' : '',padding: ifCenter ? '0px' : `${ifReturn ? '0 38' : '0 15'}px`}\">\r\n\t\t\t\t<view class=\"title-box\" :class=\"['','clips1','clips2'][clipNumber*1]\" :style=\"{maxWidth: ifCenter ? '360rpx' : '70%'}\">\r\n\t\t\t\t\t<!-- 有网络 -->\r\n\t\t\t\t\t<view @tap=\"choiceEstate(estate)\" v-if=\"estate!==0 && ifTitle && ifNet\">{{navBarTitle}}</view>\r\n\t\t\t\t\t<view v-if=\"estate==0 && ifTitle && ifNet\">{{navBarTitle}}</view>\r\n\t\t\t\t\t<!-- 无网络 -->\r\n\t\t\t\t\t<view v-if=\"!ifNet\">{{netText}}<text @tap=\"refreshEv\" style=\"color: #3875F6;margin-left: 20rpx;\">刷新</text></view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<!-- 右侧图标 -->\r\n\t\t\t<view class=\"right-box flex\" :style=\"{height: navBarHeight}\">\r\n\t\t\t\t<slot name=\"rightcontent\"></slot>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tname: 'status-nav',\r\n\t\tprops: {\r\n\t\t\t//状态栏、导航栏背景颜色\r\n\t\t\tbackgroudColor: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '#FFFFFF'\r\n\t\t\t},\r\n\t\t\t// 默认导航栏高度\r\n\t\t\tnavBarHeight: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '50px'\r\n\t\t\t},\r\n\t\t\t//是否显示返回键\r\n\t\t\tifReturn: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: true\r\n\t\t\t},\r\n\t\t\t// 返回键颜色\r\n\t\t\treturnColor: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '#000000'\r\n\t\t\t},\r\n\t\t\t//是否显示标题\r\n\t\t\tifTitle: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: true\r\n\t\t\t},\r\n\t\t\t// 导航栏标题\r\n\t\t\tnavBarTitle: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: ''\r\n\t\t\t},\r\n\t\t\t// 标题最多几行显示\r\n\t\t\tclipNumber: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '1'\r\n\t\t\t},\r\n\t\t\t//标题颜色\r\n\t\t\ttitleColor: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '#000000'\r\n\t\t\t},\r\n\t\t\t// 标题是否居中\r\n\t\t\tifCenter: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: true\r\n\t\t\t},\r\n\t\t\t// 底部距离内容多高\r\n\t\t\tmarginBottom: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '0'\r\n\t\t\t},\r\n\t\t\t// 是否可选择小区\r\n\t\t\testate:{\r\n\t\t\t\ttype: Number,\r\n\t\t\t\tdefault: 0\r\n\t\t\t}\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tstatusBarHeight: uni.getSystemInfoSync().statusBarHeight,\r\n\t\t\t\tifNet: true, // 是否有网络\r\n\t\t\t\tnetText: '当前无网络',\r\n\t\t\t\tnetTimer: null\r\n\t\t\t}\r\n\t\t},\r\n\t\tmounted() {\r\n\t\t\t// 网络监测\r\n\t\t\tthis.$toolAll.tools.networkStatus();\r\n\t\t\t// 获取当前页面路径\r\n\t\t\tthis.$toolAll.tools.obtainPagePath();\r\n\t\t\tsetTimeout(() => {\r\n\t\t\t\tthis.ifNet = uni.getStorageSync('isNet');\r\n\t\t\t}, 500)\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t// 刷新网络事件\r\n\t\t\trefreshEv() {\r\n\t\t\t\tthis.netText = '正在刷新...';\r\n\t\t\t\tlet outTime = 0; //十秒超时\r\n\t\t\t\tthis.netTimer = setInterval(() => {\r\n\t\t\t\t\toutTime++;\r\n\t\t\t\t\tthis.$toolAll.tools.networkStatus();\r\n\t\t\t\t\tif (uni.getStorageSync('isNet')) {\r\n\t\t\t\t\t\tclearInterval(this.netTimer);\r\n\t\t\t\t\t\tthis.ifNet = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (outTime == 10) {\r\n\t\t\t\t\t\tclearInterval(this.netTimer);\r\n\t\t\t\t\t\tthis.netText = '刷新失败';\r\n\t\t\t\t\t\toutTime = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}, 1000)\r\n\t\t\t},\r\n\t\t\t//返回事件\r\n\t\t\tbackEv() {\r\n\t\t\t\tuni.navigateBack({\r\n\t\t\t\t\tdelta: 1,\r\n\t\t\t\t\tfail: () => {\r\n\t\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\t\turl: '/pages/idle/idle'\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\t// 小区选择\r\n\t\t\tchoiceEstate(estate){\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl: `/pagesA/estate/estate?estate=${estate}`\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style scoped>\r\n\t.status-box {\r\n\t\tposition: sticky;\r\n\t\ttop: 0;\r\n\t\tleft: 0;\r\n\t\tright: 0;\r\n\t\tz-index: 10;\r\n\t}\r\n\r\n\t.status-nav {\r\n\t\talign-items: center;\r\n\t\twidth: 100%;\r\n\t\tposition: relative;\r\n\t}\r\n\r\n\t.left-box {\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\tposition: absolute;\r\n\t\tpadding: 0 50rpx 0 20rpx;\r\n\t}\r\n\r\n\t.right-box {\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\tposition: absolute;\r\n\t\tright: 0;\r\n\t\tpadding: 0 20rpx 0 50rpx;\r\n\t}\r\n\r\n\t.tab-title {\r\n\t\twidth: 100%;\r\n\t\tfont-size: 32rpx;\r\n\t\tline-height: 1.5;\r\n\t\tdisplay: flex;\r\n\t}\r\n\r\n\t.tab-title .title-box {\r\n\t\tmargin-top: -4rpx;\r\n\t}\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=374f26c4&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=374f26c4&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1672107698934\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":""}