1 line
12 KiB
Plaintext
1 line
12 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/office/phy/HSLink/HSLink-app/pages/notice-edit/notice-edit.vue?4636","webpack:///D:/office/phy/HSLink/HSLink-app/pages/notice-edit/notice-edit.vue?35e4","webpack:///D:/office/phy/HSLink/HSLink-app/pages/notice-edit/notice-edit.vue?44c5","webpack:///D:/office/phy/HSLink/HSLink-app/pages/notice-edit/notice-edit.vue?fe20","uni-app:///pages/notice-edit/notice-edit.vue","webpack:///D:/office/phy/HSLink/HSLink-app/pages/notice-edit/notice-edit.vue?4097","webpack:///D:/office/phy/HSLink/HSLink-app/pages/notice-edit/notice-edit.vue?844a"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,6G;AACAA,UAAU,CAACC,mBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAoI;AACpI;AAC+D;AACL;AACqC;;;AAG/F;AAC2K;AAC3K,gBAAgB,kLAAU;AAC1B,EAAE,iFAAM;AACR,EAAE,kGAAM;AACR,EAAE,2GAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,sGAAU;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;AAAgpB,CAAgB,8oBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC2CpqB,uF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eACA,EACA,cADA,EAGA,IAHA,kBAGA,CACA,8CACA,2BACA,kCACA,SACA;AACA,4BAFA,GAIA,CAXA,EAYA,MAZA,oBAYA,CAEA,CAdA,EAeA;;;mEAIA,wBAnBA,oCAmBA,CAnBA,EAmBA,CACA,iBACA,gBACA,WADA,EAEA,oBAFA,EAGA,OAHA,mBAGA,GAHA,EAGA,CACA,kBACA,yCACA,uBADA,IAEA,IAFA,CAEA,gBACA,2BACA,qBACA,gBACA,eADA,EAEA,aAFA,IAIA,wBACA,mBACA,QADA,IAGA,CAJA,EAIA,IAJA,EAKA,CACA,CAfA,EAeA,gBACA,wBACA,CAjBA,EAkBA,CAnBA,MAmBA,iBACA;AACA;AACA,OA1BA;;AA4BA,GAjDA;AAkDA,SAlDA,qBAkDA;AACA,GAnDA;AAoDA;AACA;;;AAGA,gBAJA,0BAIA;AACA;AACA,8BADA;AAEA,oCAFA;AAGA,oCAHA;AAIA,wCAJA;AAKA,UALA,CAKA;AACA;AACA;AACA;AACA,2BADA;AAEA,yBAFA;;AAIA;AACA;AACA,sBADA;;AAGA,WAJA,EAIA,IAJA;AAKA;AACA,OAlBA,EAkBA;AACA;AACA,OApBA;AAqBA,KA1BA,EApDA,E;;;;;;;;;;;;;AC5CA;AAAA;AAAA;AAAA;AAA28B,CAAgB,q6BAAG,EAAC,C;;;;;;;;;;;ACA/9B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/notice-edit/notice-edit.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/notice-edit/notice-edit.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./notice-edit.vue?vue&type=template&id=0fc8cfc6&scoped=true&\"\nvar renderjs\nimport script from \"./notice-edit.vue?vue&type=script&lang=js&\"\nexport * from \"./notice-edit.vue?vue&type=script&lang=js&\"\nimport style0 from \"./notice-edit.vue?vue&type=style&index=0&id=0fc8cfc6&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../work/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 \"0fc8cfc6\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/notice-edit/notice-edit.vue\"\nexport default component.exports","export * from \"-!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./notice-edit.vue?vue&type=template&id=0fc8cfc6&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 \"-!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./notice-edit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./notice-edit.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"page\">\n\t\t<view class=\"cu-item height\">\r\n\t\t\t<view class=\"action\">\r\n\t\t\t\t<text class=\"text-black\">文章名称:</text>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"cu-item title\">\r\n\t\t\t<textarea placeholder=\"请输入文章名称\"\r\n\t\t\t\t\t\tv-model=\"noticeInfo.title\"\r\n\t\t\t\t\t\tmaxlength=50\r\n\t\t\t></textarea>\r\n\t\t</view>\r\n\t\t<view class=\"cu-item height\">\r\n\t\t\t<view class=\"action\">\r\n\t\t\t\t<text class=\"text-black\">文章标签:</text>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"cu-item label\">\r\n\t\t\t<textarea placeholder=\"请输入文章标签\"\r\n\t\t\t\t\t\tv-model=\"noticeInfo.label\"\r\n\t\t\t\t\t\tmaxlength=4\r\n\t\t\t></textarea>\r\n\t\t</view>\r\n\t\t<view class=\"cu-item\">\r\n\t\t\t<view class=\"action\">\r\n\t\t\t\t<text class=\"text-black\">文章内容:</text>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"cu-item content\">\r\n\t\t\t<textarea placeholder=\"请输入文章内容\"\r\n\t\t\t\t\t\tv-model=\"noticeInfo.content\"\r\n\t\t\t\t\t\tauto-height=\"true\"\r\n\t\t\t\t\t\tmaxlength=2000\r\n\t\t\t></textarea>\r\n\t\t</view>\r\n\t\t<view class=\"button\">\r\n\t\t\t<button type=\"default\" @tap=\"preservation\">保存</button>\r\n\t\t</view>\r\n\t</view>\n</template>\n\n<script>\r\n\timport request from '@/util/request.js';\n\texport default {\r\n\t\tcomponents: {\r\n\t\t},\n\t\tdata() {\r\n\t\t\tlet noticeInfo = uni.getStorageSync('notice');\r\n\t\t\tnoticeInfo.fabulous = true;\r\n\t\t\tnoticeInfo.messageFabulous = true;\r\n\t\t\treturn {\r\n\t\t\t\t//文章信息\n\t\t\t\tnoticeInfo: noticeInfo,\r\n\t\t\t}\n\t\t},\r\n\t\tonLoad() {\r\n\t\t\t\r\n\t\t},\r\n\t\t/**\r\n\t\t * 删除\r\n\t\t * @param {Object} e\r\n\t\t */\r\n\t\tonNavigationBarButtonTap(e) {\r\n\t\t\tlet _this = this;\r\n\t\t\tuni.showModal({\r\n\t\t\t title: '删除',\r\n\t\t\t content: '确认删除这篇文章?',\r\n\t\t\t success(res) {\r\n\t\t\t if (res.confirm) {\r\n\t\t\t request.post('/hs/deleteOne',{\r\n\t\t\t \tid: _this.noticeInfo.id\r\n\t\t\t }).then(res => {\r\n\t\t\t \tconsole.log(\"删除这篇文章\",res);\r\n\t\t\t\t\t\t\tif (res.data === 1) {\r\n\t\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\t\ticon: 'loading',\r\n\t\t\t\t\t\t\t\t\ttitle: '删除成功'\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\t\t\tuni.navigateBack({\r\n\t\t\t\t\t\t\t\t\t\tdelta: 1\r\n\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t},1000)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t },err=>{\r\n\t\t\t \tconsole.log(\"err\",err);\r\n\t\t\t })\r\n\t\t\t } else if (res.cancel) {\r\n\t\t\t console.log('用户点击取消');\r\n\t\t\t }\r\n\t\t\t }\r\n\t\t\t});\r\n\t\t},\r\n\t\tmounted() {\r\n\t\t},\n\t\tmethods: {\r\n\t\t\t/**\r\n\t\t\t * 保存\r\n\t\t\t */\r\n\t\t\tpreservation() {\r\n\t\t\t\trequest.post('/hs/updateOneContent',{\r\n\t\t\t\t\tid: this.noticeInfo.id,\r\n\t\t\t\t\tlabel: this.noticeInfo.label,\r\n\t\t\t\t\ttitle: this.noticeInfo.title,\r\n\t\t\t\t\tcontent: this.noticeInfo.content,\r\n\t\t\t\t}).then(res => {\r\n\t\t\t\t\tconsole.log(\"保存文章\",res);\r\n\t\t\t\t\tif (res.data === 1) {\r\n\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\ticon: 'loading',\r\n\t\t\t\t\t\t\ttitle: '保存成功'\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\tuni.navigateBack({\r\n\t\t\t\t\t\t\t\tdelta: 1\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t},1000)\r\n\t\t\t\t\t}\r\n\t\t\t\t},err=>{\r\n\t\t\t\t\tconsole.log(\"err\",err);\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t}\n\t}\n</script>\n\n<style scoped>\r\n\t.button{\r\n\t\tpadding: 40rpx 100rpx;\r\n\t}\r\n\t.cu-item{\r\n\t\tpadding: 20rpx;\r\n\t}\r\n\t.title{\r\n\t\tpadding-top: 0;\r\n\t}\r\n\t.title, .label, .content{\r\n\t\tbackground-color: #F1F1F1;\r\n\t\tborder-radius: 10rpx;\r\n\t\tpadding: 20rpx;\r\n\t\tmargin: 20rpx;\r\n\t}\r\n\t.title textarea, .label textarea, .content textarea{\r\n\t\twidth: 100%;\r\n\t}\r\n\t.title textarea{\r\n\t\theight: 128rpx;\r\n\t\tfont-weight: bold;\r\n\t}\r\n\t.label textarea{\r\n\t\theight: 80rpx;\r\n\t}\r\n\t.page{\r\n\t\tbackground-color: #FFFFFF;\r\n\t}\n</style>\n","import mod from \"-!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./notice-edit.vue?vue&type=style&index=0&id=0fc8cfc6&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./notice-edit.vue?vue&type=style&index=0&id=0fc8cfc6&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1602301329261\n var cssReload = require(\"D:/office/work/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":""} |