1 line
13 KiB
Plaintext
1 line
13 KiB
Plaintext
{"version":3,"sources":["webpack:///D:/老农商城/mall-laonong/components/status-nav/status-nav.vue?afcb","webpack:///D:/老农商城/mall-laonong/components/status-nav/status-nav.vue?f172","webpack:///D:/老农商城/mall-laonong/components/status-nav/status-nav.vue?7958","webpack:///D:/老农商城/mall-laonong/components/status-nav/status-nav.vue?d089","uni-app:///components/status-nav/status-nav.vue","webpack:///D:/老农商城/mall-laonong/components/status-nav/status-nav.vue?9c13","webpack:///D:/老农商城/mall-laonong/components/status-nav/status-nav.vue?c160"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAmI;AACnI;AAC8D;AACL;AACqC;;;AAG9F;AACoL;AACpL,gBAAgB,2LAAU;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;AAA4rB,CAAgB,0rBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC8BhtB;AACA,oBADA;AAEA;AACA;AACA;AACA,kBADA;AAEA,wBAFA,EAFA;;AAMA;AACA;AACA,kBADA;AAEA,qBAFA,EAPA;;AAWA;AACA;AACA,mBADA;AAEA,mBAFA,EAZA;;AAgBA;AACA;AACA,kBADA;AAEA,wBAFA,EAjBA;;AAqBA;AACA;AACA,mBADA;AAEA,mBAFA,EAtBA;;AA0BA;AACA;AACA,kBADA;AAEA,iBAFA,EA3BA;;AA+BA;AACA;AACA,kBADA;AAEA,kBAFA,EAhCA;;AAoCA;AACA;AACA,kBADA;AAEA,wBAFA,EArCA;;AAyCA;AACA;AACA,mBADA;AAEA,mBAFA,EA1CA;;AA8CA;AACA;AACA,kBADA;AAEA,sBAFA,EA/CA;;AAmDA;AACA;AACA,kBADA;AAEA,iBAFA,EApDA,EAFA;;;AA2DA,MA3DA,kBA2DA;AACA;AACA,8DADA;AAEA,iBAFA,EAEA;AACA,sBAHA;AAIA,oBAJA;;AAMA,GAlEA;AAmEA,SAnEA,qBAmEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAFA,EAEA,GAFA;AAGA,GA3EA;AA4EA;AACA;AACA,aAFA,uBAEA;AACA;AACA,sBAFA,CAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAZA,EAYA,IAZA;AAaA,KAlBA;AAmBA;AACA,UApBA,oBAoBA;AACA;AACA;AACA,6BADA;;AAGA,OAJA,MAIA;AACA;AACA,mCADA;;AAGA,OAJA;AAKA;AACA;AACA,kBADA;AAEA;AACA;AACA,8CADA;;AAGA,WANA;;AAQA;AACA,KAxCA,EA5EA,E;;;;;;;;;;;;;AC9BA;AAAA;AAAA;AAAA;AAAygC,CAAgB,m+BAAG,EAAC,C;;;;;;;;;;;ACA7hC;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-app开发版/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-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/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-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/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-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/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 v-if=\"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: '20rpx'\r\n\t\t\t},\r\n\t\t\t// 是否返回我的页面\r\n\t\t\tbackTag: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: ''\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\tif(this.backTag == 'backmy'){\r\n\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\turl:`/pages/my/my`\r\n\t\t\t\t\t})\r\n\t\t\t\t}else if(this.backTag == 'backindex'){\r\n\t\t\t\t\tuni.reLaunch({\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\telse{\r\n\t\t\t\t\tuni.navigateBack({\r\n\t\t\t\t\t\tdelta: 1,\r\n\t\t\t\t\t\tfail: () => {\r\n\t\t\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\t\t\turl: '/pages/tabbar/index/index'\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\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 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;\r\n\t}\r\n\r\n\t.tab-title {\r\n\t\twidth: 100%;\r\n\t\tfont-size: 36rpx;\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-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/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-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/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 // 1659578079776\n var cssReload = require(\"D:/HBuilderX-app开发版/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":""} |