1 line
8.1 KiB
Plaintext
1 line
8.1 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/Lee/工地打卡小程序/building-sign/pagesA/singlePage/singlePage.vue?8c43","webpack:///D:/Lee/工地打卡小程序/building-sign/pagesA/singlePage/singlePage.vue?f27f","webpack:///D:/Lee/工地打卡小程序/building-sign/pagesA/singlePage/singlePage.vue?096a","webpack:///D:/Lee/工地打卡小程序/building-sign/pagesA/singlePage/singlePage.vue?0665","uni-app:///pagesA/singlePage/singlePage.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,6G,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,mBAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAmI;AACnI;AAC8D;AACL;;;AAGzD;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;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,oMAEN;AACP,KAAK;AACL;AACA,aAAa,kOAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACtCA;AAAA;AAAA;AAAA;AAAwqB,CAAgB,sqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;ACe5rB;AACA;AACA,kBADA,EADA;;AAIA,MAJA,kBAIA;AACA;AACA,2DADA,EACA;AACA,wBAFA,EAEA;AACA,mBAHA,EAGA;AACA,iBAJA,CAIA;AAJA;AAMA,GAXA;AAYA,QAZA,kBAYA,EAZA,EAYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GA5BA;AA6BA,mBA7BA,6BA6BA,GA7BA,EA6BA;AACA;AACA,mBADA;AAEA,sCAFA;AAGA,wCAHA;;AAKA;AACA;AACA,GArCA;AAsCA;AACA;AACA,mBAFA,2BAEA,GAFA,EAEA;AACA;AACA;AACA;AACA;AACA;AACA,OALA;AAMA,KATA,EAtCA,E","file":"pagesA/singlePage/singlePage.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pagesA/singlePage/singlePage.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./singlePage.vue?vue&type=template&id=44f8418b&scoped=true&\"\nvar renderjs\nimport script from \"./singlePage.vue?vue&type=script&lang=js&\"\nexport * from \"./singlePage.vue?vue&type=script&lang=js&\"\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 \"44f8418b\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pagesA/singlePage/singlePage.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!./singlePage.vue?vue&type=template&id=44f8418b&scoped=true&\"","var components\ntry {\n components = {\n statusNav: function() {\n return import(\n /* webpackChunkName: \"components/status-nav/status-nav\" */ \"@/components/status-nav/status-nav.vue\"\n )\n },\n tabbar: function() {\n return import(\n /* webpackChunkName: \"components/tabbar/tabbar\" */ \"@/components/tabbar/tabbar.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\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!./singlePage.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!./singlePage.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"pad-x120\">\r\n\t\t<!-- 头部 -->\r\n\t\t<status-nav :navBarTitle=\"pageTitle\"></status-nav>\r\n\t\t<view class=\"content\" :style=\"{'padding-top':statusHeight+50+'px'}\">\r\n\t\t\t<view class=\"single-page font26\">\r\n\t\t\t\t<rich-text :nodes=\"content\"></rich-text>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 尾部 -->\r\n\t\t<tabbar :userType=\"userType\" current=\"2\"></tabbar>\r\n\t</view>\r\n</template>\r\n<script>\r\n\timport tabbar from '@/components/tabbar/tabbar';\r\n\texport default {\r\n\t\tcomponents:{\r\n\t\t\ttabbar\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tstatusHeight:uni.getSystemInfoSync().statusBarHeight, //状态栏高度\r\n\t\t\t\tuserType:'worker', //账户类型 工人:worker 负责人:director\r\n\t\t\t\tpageTitle:'', //页面标题\r\n\t\t\t\tcontent:'', //内容\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad(op) {\r\n\t\t\tif(op.type == 'manual'){\r\n\t\t\t\tthis.pageTitle = '员工手册';\r\n\t\t\t\t// 获取内容\r\n\t\t\t\tthis.getSinglePageEv('/api/v1/index/handbook')\r\n\t\t\t}\r\n\t\t\tif(op.type == 'security'){\r\n\t\t\t\tthis.pageTitle = '安全告知';\r\n\t\t\t\t// 获取内容\r\n\t\t\t\tthis.getSinglePageEv('/api/v1/index/safe-notice')\r\n\t\t\t}\r\n\t\t\tif(op.type == 'notice'){\r\n\t\t\t\tthis.pageTitle = '公告';\r\n\t\t\t\t// 获取内容\r\n\t\t\t\tthis.getSinglePageEv('/api/v1/index/notice')\r\n\t\t\t}\r\n\t\t},\r\n\t\tonShareAppMessage(res) {\r\n\t\t\tlet shareObj = {\r\n\t\t\t\ttitle:'工地打卡',\r\n\t\t\t\tpath: '/pages/pagehome/pagehome',\r\n\t\t\t\timageUrl:'/static/share-logo.jpg',\r\n\t\t\t}\r\n\t\t\t// 返回shareObj\r\n\t\t\treturn shareObj;\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t// 获取内容\r\n\t\t\tgetSinglePageEv(url){\r\n\t\t\t\tthis.$requst.get(url).then(res=>{\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\tconsole.log(res,'单页内容');\r\n\t\t\t\t\t\tthis.content = res.data.content;\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<style scoped>\r\n\t\r\n</style>"],"sourceRoot":""} |