building-sign/unpackage/dist/dev/.sourcemap/mp-weixin/pagesB/notick/notick.js.map

1 line
9.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{"version":3,"sources":["uni-app:///main.js","webpack:///D:/Lee/工地打卡小程序/building-sign/pagesB/notick/notick.vue?c7f1","webpack:///D:/Lee/工地打卡小程序/building-sign/pagesB/notick/notick.vue?e615","webpack:///D:/Lee/工地打卡小程序/building-sign/pagesB/notick/notick.vue?ac71","webpack:///D:/Lee/工地打卡小程序/building-sign/pagesB/notick/notick.vue?922c","uni-app:///pagesB/notick/notick.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","components","tabbar","data","statusHeight","userType","radioList","radioIndex","noticeMsg","onLoad","onShow","methods","changeNotickStatus","getWorksiteNotice","worksite_id","console","savaNoticeEv","status","content","backEv","uni","delta"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,eAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAA+H;AAC/H;AAC0D;AACL;;;AAGrD;AACgL;AAChL,gBAAgB,uLAAU;AAC1B,EAAE,4EAAM;AACR,EAAE,6FAAM;AACR,EAAE,sGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,iGAAU;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,KAAK;AACL;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;AAAoqB,CAAgB,kqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;eC6BxrB;EACAC;IACAC;EACA;EACAC;IACA;MACAC;MAAA;MACAC;MAAA;MACAC;MACAC;MAAA;MACAC;IACA;EACA;EACAC,6BAEA;EACAC;IACA;IACA;EACA;EACAC;IACA;IACAC;MACA;QACA;QACA;QACA;MACA;IACA;IAEA;IACAC;MAAA;MACA;QAAAC;MAAA;QACA;UACAC;UACA;QACA;MACA;IACA;IAEA;IACAC;MAAA;MACA;QACAC;QACAC;MACA;MACA;QACA;UACA;YACA;cACA;YACA;cACA;YACA;UACA;YACA;UACA;QACA;UACA;UACA;YACA;cACA;YACA;cACA;YACA;UACA;QACA;MACA;IACA;IAEA;IACAC;MACAC;QACAC;MACA;IACA;EACA;AACA;AAAA,2B","file":"pagesB/notick/notick.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pagesB/notick/notick.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./notick.vue?vue&type=template&id=49e4bd28&scoped=true&\"\nvar renderjs\nimport script from \"./notick.vue?vue&type=script&lang=js&\"\nexport * from \"./notick.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 \"49e4bd28\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pagesB/notick/notick.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!./notick.vue?vue&type=template&id=49e4bd28&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!./notick.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!./notick.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"pad-x120\">\n\t\t<!-- 头部 -->\n\t\t<status-nav navBarTitle=\"公告管理\"></status-nav>\n\t\t<view class=\"content\" :style=\"{'padding-top':statusHeight+50+'px'}\">\r\n\t\t\t<!-- 公告状态 -->\r\n\t\t\t<view class=\"notick-status\">\r\n\t\t\t\t<view class=\"radio-item\" @tap=\"changeNotickStatus(index)\" v-for=\"(item,index) in radioList\" :key=\"index\">\r\n\t\t\t\t\t<view :class=\"radioIndex==index?'checked':''\"></view>\r\n\t\t\t\t\t<view class=\"font26\">{{item}}</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=\"notick-txt\">\r\n\t\t\t\t<view class=\"notick-tips font26\">请编辑公告内容</view>\r\n\t\t\t\t<textarea class=\"input font26\" name=\"msg\" v-model=\"noticeMsg\" placeholder=\"请填写公告内容\"></textarea>\r\n\t\t\t</view>\n\t\t\t<!-- 提交按钮 -->\n\t\t\t<view class=\"enter-detail-btns color-white font30\">\n\t\t\t\t<view class=\"btn\" @tap=\"savaNoticeEv('btn')\">发布</view>\n\t\t\t\t<view class=\"btn\" @tap=\"backEv\">取消</view>\n\t\t\t</view>\n\t\t</view>\r\n\t\t<!-- 尾部 -->\n\t\t<tabbar :userType=\"userType\" current=\"2\"></tabbar>\n\t</view>\n</template>\n<script>\n\timport tabbar from '@/components/tabbar/tabbar';\n\texport default {\n\t\tcomponents:{\n\t\t\ttabbar\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tstatusHeight:uni.getSystemInfoSync().statusBarHeight, //状态栏高度\n\t\t\t\tuserType:'director', //账户类型 工人worker 负责人director\r\n\t\t\t\tradioList:['开启','禁用'],\r\n\t\t\t\tradioIndex:0, //当前选择\n\t\t\t\tnoticeMsg:'', //公告内容\r\n\t\t\t}\n\t\t},\n\t\tonLoad(op) {\r\n\t\t\t\n\t\t},\n\t\tonShow() {\n\t\t\t// 获取工地公告\r\n\t\t\tthis.getWorksiteNotice();\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t// 改变公告开启状态\r\n\t\t\tchangeNotickStatus(index){\r\n\t\t\t\tif(this.radioIndex !== index){\r\n\t\t\t\t\tthis.radioIndex = index;\r\n\t\t\t\t\t// 发布公告\r\n\t\t\t\t\tthis.savaNoticeEv('change');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t// 获取工地公告\r\n\t\t\tgetWorksiteNotice(){\r\n\t\t\t\tthis.$requst.get('/api/v1/index/worksite-notice',{worksite_id:uni.getStorageSync('baseWorksiteId')}).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.noticeMsg = 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\t\r\n\t\t\t// 发布公告\r\n\t\t\tsavaNoticeEv(type){\r\n\t\t\t\tlet params = {\r\n\t\t\t\t\tstatus:this.radioIndex==0?1:0,\r\n\t\t\t\t\tcontent:this.noticeMsg\r\n\t\t\t\t}\r\n\t\t\t\tthis.$requst.post('/api/v1/manager/save-notice',params).then(res=>{\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\tif(type=='change'){\r\n\t\t\t\t\t\t\tif(this.radioIndex==0){\r\n\t\t\t\t\t\t\t\tthis.$toolAll.tools.showToast('已开启');\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tthis.$toolAll.tools.showToast('已禁用');\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tthis.$toolAll.tools.showToast('发布成功');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tthis.$toolAll.tools.showToast(res.msg);\r\n\t\t\t\t\t\tif(type=='change'){\r\n\t\t\t\t\t\t\tif(this.radioIndex==0){\r\n\t\t\t\t\t\t\t\tthis.radioIndex = 1;\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tthis.radioIndex = 0;\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\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})\r\n\t\t\t}\r\n\t\t}\n\t}\n</script>\n<style scoped>\n\t\n</style>"],"sourceRoot":""}