head.js.map 12.1 KB
{"version":3,"sources":[null,"webpack:///C:/Users/lenovo/Desktop/hrApp_four/components/head.vue?073c","webpack:///C:/Users/lenovo/Desktop/hrApp_four/components/head.vue?eb10","webpack:///C:/Users/lenovo/Desktop/hrApp_four/components/head.vue?2674","uni-app:///components/head.vue","webpack:///C:/Users/lenovo/Desktop/hrApp_four/components/head.vue?8994","webpack:///C:/Users/lenovo/Desktop/hrApp_four/components/head.vue?5e70"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA2H;AAC3H;AACwD;AACL;AACa;;;AAGhE;AAC0K;AAC1K,gBAAgB,uLAAU;AAC1B,EAAE,0EAAM;AACR,EAAE,yFAAM;AACR,EAAE,kGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,6FAAU;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;AAAooB,CAAgB,gqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACqBxpB;AACA,cADA;AAEA,MAFA,kBAEA;AACA;AACA;AACA,oBAFA;AAGA;AACA,sBAJA;AAKA;AACA,mBANA;AAOA;AACA,iBARA;;AAUA,GAbA;AAcA;AACA;AACA,mBAFA;AAGA;AACA,iBAJA,EAIA;AACA,sBALA,EAKA;AACA;AACA,yBAPA,EAOA;AACA,oBARA,EAQA;AACA,oBATA,EASA;AACA,qBAVA,CAUA;AAVA,GAdA;AA0BA,SA1BA,qBA0BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAHA,MAGA;AACA;AACA;AACA;AACA,GAnDA;AAoDA;AACA;AACA,eAFA,yBAEA;AACA;AACA;AACA,6BADA;;AAGA;AACA;AACA,OANA,MAMA;AACA;AACA,kBADA;;AAGA;AACA,KAdA;AAeA;AACA,aAhBA,uBAgBA;AACA;AACA,4BADA;;AAGA,KApBA,EApDA,E;;;;;;;;;;;;;ACrBA;AAAA;AAAA;AAAA;AAAq6B,CAAgB,y6BAAG,EAAC,C;;;;;;;;;;;ACAz7B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/head.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./head.vue?vue&type=template&id=3de01b9b&name=head&\"\nvar renderjs\nimport script from \"./head.vue?vue&type=script&lang=js&\"\nexport * from \"./head.vue?vue&type=script&lang=js&\"\nimport style0 from \"./head.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../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  null,\n  null,\n  false,\n  components,\n  renderjs\n)\n\ncomponent.options.__file = \"components/head.vue\"\nexport default component.exports","export * from \"-!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./head.vue?vue&type=template&id=3de01b9b&name=head&\"","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 \"-!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./head.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./head.vue?vue&type=script&lang=js&\"","<template name=\"head\">\r\n\t<!-- 头部内容 -->\r\n\t<view class=\"headBoxBox\" :style=\"{height: headHeight + 'px'}\">\r\n\t\t<view class=\"headBox\" :style=\"{height: headHeight + 'px',background:'#'+ bgColor}\">\r\n\t\t\t<!-- 状态栏 -->\r\n\t\t\t<view class=\"state\" :style=\"{height: statusHeight + 'px'}\"></view>\r\n\t\t\t<!-- 导航栏 -->\r\n\t\t\t<view class=\"nav\" :style=\"{height: navHeight + 'px'}\">\r\n\t\t\t\t<!-- 返回按钮 -->\r\n\t\t\t\t<view :class=\"[backBtnColor ? 'backBtnWhite' : 'backBtnBlack']\" v-if=\"backBtn\" @click=\"backDefault\">\r\n\t\t\t\t</view>\r\n\t\t\t\t<!-- 顶部标题 -->\r\n\t\t\t\t<view class=\"title\" v-if=\"showTitle\">\r\n\t\t\t\t\t{{title}}\r\n\t\t\t\t</view>\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: \"head\",\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\t// 头部整体高度\r\n\t\t\t\theadHeight: '',\r\n\t\t\t\t//状态栏高度\r\n\t\t\t\tstatusHeight: '',\r\n\t\t\t\t//导航栏高度\r\n\t\t\t\tnavHeight: '',\r\n\t\t\t\t// 胶囊高度\r\n\t\t\t\tellipse: '',\r\n\t\t\t};\r\n\t\t},\r\n\t\tprops: {\r\n\t\t\t//背景色\r\n\t\t\tbgColor: String,\r\n\t\t\t// 标题\r\n\t\t\ttitle: String, //内容\r\n\t\t\tshowTitle: Boolean, //显隐\r\n\t\t\t// 返回按钮\r\n\t\t\tbackBtnColor: Boolean, //颜色 默认黑色 true为白色\r\n\t\t\tbackBtn: Boolean, // 按钮显隐\r\n\t\t\thowBack: Boolean, //返回方式 默认返回上一页 true为自定义返回页面\r\n\t\t\tcustomURL: String, //自定义返回路径 绝对路径\r\n\t\t},\r\n\t\tmounted() {\r\n\t\t\t// 设备信息\r\n\t\t\tlet detail = uni.getSystemInfoSync()\r\n\t\t\t// 获取设备的系统\r\n\t\t\tlet system = detail.system\r\n\t\t\t//获取状态栏高度\r\n\t\t\tthis.statusHeight = detail.statusBarHeight\r\n\t\t\t// 胶囊信息\r\n\t\t\tlet ellipse = uni.getMenuButtonBoundingClientRect()\r\n\t\t\t//获取胶囊高度\r\n\t\t\tthis.ellipse = ellipse.height\r\n\t\t\t//获取胶囊距顶部距离\r\n\t\t\tlet absTop = ellipse.top\r\n\t\t\t//计算导航栏高度 = (胶囊距顶部距离 - 状态栏高度) * 2 + 胶囊高度\r\n\t\t\tthis.navHeight = (absTop - this.statusHeight) * 2 + this.ellipse\r\n\t\t\t//计算整体高度\r\n\t\t\tlet cheack = /iOS/\r\n\t\t\t//判断设备型号\r\n\t\t\tif (cheack.test(system)) {\r\n\t\t\t\t// iOS\r\n\t\t\t\tthis.headHeight = this.statusHeight + this.navHeight + 4\r\n\t\t\t} else {\r\n\t\t\t\t//Android\r\n\t\t\t\tthis.headHeight = this.statusHeight + this.navHeight\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t//返回上一页\r\n\t\t\tbackDefault() {\r\n\t\t\t\tif (this.howBack) {\r\n\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\turl: this.customURL\r\n\t\t\t\t\t})\r\n\t\t\t\t\tconsole.log(\"请填写指定路径\");\r\n\t\t\t\t\tconsole.log(this.customURL);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tuni.navigateBack({\r\n\t\t\t\t\t\tdelta: 1\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\ttoAddress() {\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl: this.newAddress\r\n\t\t\t\t})\r\n\t\t\t},\r\n\r\n\t\t},\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t.headBoxBox {\r\n\t\twidth: 100%;\r\n\t}\r\n\r\n\t.headBox,\r\n\t.state,\r\n\t.nav {\r\n\t\twidth: 750rpx;\r\n\t}\r\n\r\n\t/* 头部整体内容 */\r\n\t.headBox {\r\n\t\tposition: fixed;\r\n\t\ttop: 0;\r\n\t\tleft: 0;\r\n\t\tz-index: 100;\r\n\t}\r\n\r\n\t/* 状态栏 */\r\n\t.state {\r\n\t\tposition: relative;\r\n\t}\r\n\r\n\t/* 导航栏 */\r\n\t.nav {\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t\tposition: relative;\r\n\t}\r\n\r\n\t.searchImg {\r\n\t\twidth: 32rpx;\r\n\t\theight: 32rpx;\r\n\t}\r\n\r\n\t.backBtnBlack {\r\n\t\tmargin-left: 32rpx;\r\n\t\tright: 50rpx;\r\n\t\ttop: 150rpx;\r\n\t\tcontent: \"\";\r\n\t\tdisplay: inline-block;\r\n\t\theight: 20rpx;\r\n\t\twidth: 20rpx;\r\n\t\tborder-width: 0 0 2px 2px;\r\n\t\tborder-color: #000;\r\n\t\tborder-style: solid;\r\n\t\ttransform: matrix(0.71, 0.71, -.71, 0.71, 0, 0);\r\n\t\t-webkit-transform: matrix(0.71, 0.71, -.71, 0.71, 0, 0);\r\n\t}\r\n\r\n\t.backBtnWhite {\r\n\t\tmargin-left: 32rpx;\r\n\t\tright: 50rpx;\r\n\t\ttop: 150rpx;\r\n\t\tcontent: \"\";\r\n\t\tdisplay: inline-block;\r\n\t\theight: 20rpx;\r\n\t\twidth: 20rpx;\r\n\t\tborder-width: 0 0 2px 2px;\r\n\t\tborder-color: #fff;\r\n\t\tborder-style: solid;\r\n\t\ttransform: matrix(0.71, 0.71, -.71, 0.71, 0, 0);\r\n\t\t-webkit-transform: matrix(0.71, 0.71, -.71, 0.71, 0, 0);\r\n\t}\r\n\r\n\t.bottomBtn {\r\n\t\tright: 50rpx;\r\n\t\ttop: 150rpx;\r\n\t\tcontent: \"\";\r\n\t\tdisplay: inline-block;\r\n\t\theight: 16rpx;\r\n\t\twidth: 16rpx;\r\n\t\tborder-width: 0 2px 2px 0;\r\n\t\tborder-color: #fff;\r\n\t\tborder-style: solid;\r\n\t\ttransform: matrix(0.71, 0.71, -.71, 0.71, 0, 0);\r\n\t\t-webkit-transform: matrix(0.71, 0.71, -.71, 0.71, 0, 0);\r\n\t}\r\n\r\n\t.address {\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t\tmargin-left: 32rpx;\r\n\t}\r\n\r\n\t.addressText {\r\n\t\tcolor: #fff;\r\n\t\tfont-weight: 600;\r\n\t\twidth: 96rpx;\r\n\t\toverflow: hidden;\r\n\t\twhite-space: nowrap;\r\n\t}\r\n\r\n\t.title {\r\n\t\tposition: absolute;\r\n\t\tleft: 50%;\r\n\t\ttop: 50%;\r\n\t\ttransform: translate(-50%, -50%);\r\n\t}\r\n</style>\r\n","import mod from \"-!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./head.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./head.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n    if(module.hot) {\n      // 1644301069668\n      var cssReload = require(\"C:/Users/lenovo/Downloads/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":""}