You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
21 KiB
1 lines
21 KiB
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/life/goodsDetails/index.vue?c61b","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/life/goodsDetails/index.vue?79e1","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/life/goodsDetails/index.vue?2122","uni-app:///pages/life/goodsDetails/index.vue","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/life/goodsDetails/index.vue?eaf9","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/life/goodsDetails/index.vue?a14c"],"names":["createPage","Page"],"mappings":"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","file":"pages/life/goodsDetails/index.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/life/goodsDetails/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=df4b64ce&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=less&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\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 = \"pages/life/goodsDetails/index.vue\"\nexport default component.exports","export * from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=df4b64ce&\"","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 \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"index-box\">\r\n\t\t<!-- \r\n\t\t 更多api,请前往:https://developers.weixin.qq.com/miniprogram/dev/api/media/editor/EditorContext.html \r\n\t\t 字体图标,微信小程序官方的确没有给出名称\r\n\t\t-->\r\n\t\t<view class=\"container\">\r\n\t\t\t<editor id=\"editor\" show-img-size :read-only=\"isEdit\" show-img-resize show-img-toolbar class=\"ql-container\"\r\n\t\t\t :placeholder=\"placeholder\" @statuschange=\"onStatusChange\" @ready=\"onEditorReady\">\r\n\t\t\t</editor>\r\n\t\t</view>\r\n\r\n\t\t<view class=\"toolbar\" @touchend.stop=\"format\" :style=\"'bottom: ' + (isIOS ? keyboardHeight : 0) + 'px'\">\r\n\t\t\t<i class=\"iconfont icon-charutupian\" @touchend.stop=\"insertImage\"></i>\r\n\t\t\t<i :class=\"'iconfont icon-format-header-1 ' + (formats.header === 1 ? 'ql-active' : '')\" data-name=\"header\"\r\n\t\t\t :data-value=\"1\"></i>\r\n\t\t\t<i :class=\"'iconfont icon-format-header-2 ' + (formats.header === 2 ? 'ql-active' : '')\" data-name=\"header\"\r\n\t\t\t :data-value=\"2\"></i>\r\n\t\t\t<i :class=\"'iconfont icon-format-header-3 ' + (formats.header === 3 ? 'ql-active' : '')\" data-name=\"header\"\r\n\t\t\t :data-value=\"3\"></i>\r\n\t\t\t<!-- <i :class=\"'iconfont icon-format-header-4 ' + (formats.header === 4 ? 'ql-active' : '')\" data-name=\"header\" :data-value=\"4\"></i> -->\r\n\t\t\t<!-- <i :class=\"'iconfont icon-format-header-5 ' + (formats.header === 5 ? 'ql-active' : '')\" data-name=\"header\" :data-value=\"5\"></i> -->\r\n\t\t\t<!-- <i :class=\"'iconfont icon-format-header-6 ' + (formats.header === 6 ? 'ql-active' : '')\" data-name=\"header\" :data-value=\"6\"></i>-->\r\n\t\t\t<i :class=\"'iconfont icon-zitijiacu ' + (formats.bold ? 'ql-active' : '')\" data-name=\"bold\"></i>\r\n\t\t\t<i :class=\"'iconfont icon-zitishanchuxian ' + (formats.strike ? 'ql-active' : '')\" data-name=\"strike\"></i>\r\n\t\t\t<i :class=\"'iconfont icon-zitixieti ' + (formats.italic ? 'ql-active' : '')\" data-name=\"italic\"></i>\r\n\t\t\t<i :class=\"'iconfont icon-zuoduiqi ' + (formats.align === 'left' ? 'ql-active' : '')\" data-name=\"align\" data-value=\"left\"></i>\r\n\t\t\t<i :class=\"'iconfont icon-juzhongduiqi ' + (formats.align === 'center' ? 'ql-active' : '')\" data-name=\"align\"\r\n\t\t\t data-value=\"center\"></i>\r\n\t\t\t<i :class=\"'iconfont icon-youduiqi ' + (formats.align === 'right' ? 'ql-active' : '')\" data-name=\"align\" data-value=\"right\"></i>\r\n\t\t\t<i :class=\"'iconfont icon-zuoyouduiqi ' + (formats.align === 'justify' ? 'ql-active' : '')\" data-name=\"align\"\r\n\t\t\t data-value=\"justify\"></i>\r\n\t\t\t<i :class=\"'iconfont icon-line-height ' + (formats.lineHeight ? 'ql-active' : '')\" data-name=\"lineHeight\" data-value=\"2\"></i>\r\n\t\t\t<!-- <i :class=\"'iconfont icon-Character-Spacing ' + (formats.letterSpacing ? 'ql-active' : '')\" data-name=\"letterSpacing\"\r\n\t\t\t data-value=\"2em\"></i>\r\n\t\t\t<i :class=\"'iconfont icon-722bianjiqi_duanqianju ' + (formats.marginTop ? 'ql-active' : '')\" data-name=\"marginTop\"\r\n\t\t\t data-value=\"20px\"></i>\r\n\t\t\t<i :class=\"'iconfont icon-723bianjiqi_duanhouju ' + (formats.micon-previewarginBottom ? 'ql-active' : '')\" data-name=\"marginBottom\"\r\n\t\t\t data-value=\"20px\"></i> -->\r\n\t\t\t<i class=\"iconfont icon-clearedformat\" @tap=\"removeFormat\"></i>\r\n\t\t\t<i :class=\"'iconfont icon-font ' + (formats.fontFamily ? 'ql-active' : '')\" data-name=\"fontFamily\" data-value=\"Pacifico\"></i>\r\n\t\t\t<i :class=\"'iconfont icon-fontsize ' + (formats.fontSize === '24px' ? 'ql-active' : '')\" data-name=\"fontSize\"\r\n\t\t\t data-value=\"24px\"></i>\r\n\t\t\t<i :class=\"'iconfont icon-text_color ' + (formats.color === fontColor ? 'ql-active' : '')\" data-name=\"color\"\r\n\t\t\t :data-value=\"fontColor\" @tap=\"open\"></i>\r\n\t\t\t<i :class=\"'iconfont icon-fontbgcolor ' + (formats.backgroundColor === '#00ff00' ? 'ql-active' : '')\" data-name=\"backgroundColor\"\r\n\t\t\t data-value=\"#00ff00\"></i>\r\n\t\t\t<!-- 引用黄河浪的color取色器 -->\r\n\t\t\t<i class=\"iconfont icon-date\" @tap=\"insertDate\"></i>\r\n\t\t\t<!-- <i class=\"iconfont icon-undo\" @tap=\"undo\"></i> -->\r\n\t\t\t<!-- <i class=\"iconfont icon-redo\" @tap=\"redo\"></i> -->\r\n\t\t\t<!-- <i :class=\"'iconfont icon-zitixiahuaxian ' + (formats.underline ? 'ql-active' : '')\" data-name=\"underline\"></i> -->\r\n\t\t\t<!-- <i class=\"iconfont icon--checklist\" data-name=\"list\" data-value=\"check\"></i> -->\r\n\t\t\t<!-- <i :class=\"'iconfont icon-youxupailie ' + (formats.list === 'ordered' ? 'ql-active' : '')\" data-name=\"list\" data-value=\"ordered\"></i> -->\r\n\t\t\t<!-- <i :class=\"'iconfont icon-wuxupailie ' + (formats.list === 'bullet' ? 'ql-active' : '')\" data-name=\"list\" data-value=\"bullet\"></i> -->\r\n\t\t\t<!-- <i class=\"iconfont icon-outdent\" data-name=\"indent\" data-value=\"-1\"></i> -->\r\n\t\t\t<!-- <i class=\"iconfont icon-indent\" data-name=\"indent\" data-value=\"+1\"></i> -->\r\n\t\t\t<!-- <i class=\"iconfont icon-fengexian\" @tap=\"insertDivider\"></i> -->\r\n\t\t\t<!-- <i class=\"iconfont icon-preview\" @tap=\"store\" id=\"2\"></i> -->\r\n\t\t\t<!-- <i :class=\"'iconfont icon-zitixiabiao ' + (formats.script === 'sub' ? 'ql-active' : '')\" data-name=\"script\"\r\n\t\t\t data-value=\"sub\"></i> -->\r\n\t\t\t<!-- <i :class=\"'iconfont icon-zitishangbiao ' + (formats.script === 'super' ? 'ql-active' : '')\" data-name=\"script\"\r\n\t\t\t data-value=\"super\"></i> -->\r\n\t\t\t<!-- <i class=\"iconfont icon-quanping\"></i> -->\r\n\t\t\t<!-- <i class=\"iconfont icon-shanchu\" @tap=\"clear\"></i> -->\r\n\t\t\t<!-- <i :class=\"'iconfont icon-direction-rtl ' + (formats.direction === 'rtl' ? 'ql-active' : '')\" data-name=\"direction\"\r\n\t\t\t data-value=\"rtl\"></i> -->\r\n\t\t\t<!-- <i class=\"iconfont icon-baocun\" @tap=\"store\" id=\"1\"></i> -->\r\n\t\t</view>\r\n\t\t<t-color-picker ref=\"colorPicker\" :color=\"color\" @confirm=\"confirm\" @cancel=\"cancel\"></t-color-picker>\r\n\t\t<view class=\"btn-box\">\r\n\t\t\t<view class=\"preview-btn\" @tap=\"store\" id=\"2\">预览</view>\r\n\t\t\t<view class=\"preview-btn\" @tap=\"store\" id=\"1\">保存</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport tColorPicke from '@/components/t-color-picker.vue';\r\n\timport { chooseImage } from \"@/utils\"\r\n\tvar _self;\r\n\texport default {\r\n\t\tcomponents: {\r\n\t\t\t't-color-picker': tColorPicke\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tcolor: {\r\n\t\t\t\t\tr: 255,\r\n\t\t\t\t\tg: 0,\r\n\t\t\t\t\tb: 0,\r\n\t\t\t\t\ta: 0.6\r\n\t\t\t\t},\r\n\t\t\t\tisEdit: false,\r\n\t\t\t\tfontColor: '#000',\r\n\t\t\t\tformats: {},\r\n\t\t\t\treadOnly: false,\r\n\t\t\t\tplaceholder: '开始输入...',\r\n\t\t\t\teditorHeight: 300,\r\n\t\t\t\tkeyboardHeight: 0,\r\n\t\t\t\tisIOS: false\r\n\t\t\t};\r\n\t\t},\r\n\t\tonLoad() {\r\n\t\t\t_self = this;\r\n\t\t},\r\n\r\n\t\tmethods: {\r\n\t\t\tcancel() {\r\n\t\t\t\tthis.isEdit = false;\r\n\t\t\t},\r\n\t\t\topen() {\r\n\t\t\t\tthis.$refs.colorPicker.open();\r\n\t\t\t\tthis.isEdit = true;\r\n\t\t\t\t// uni.hideKeyboard();\r\n\t\t\t},\r\n\t\t\thideKey() {\r\n\t\t\t\tuni.hideKeyboard();\r\n\t\t\t},\r\n\t\t\tasync confirm(e) {\r\n\t\t\t\tthis.isEdit = false;\r\n\t\t\t\tthis.fontColor = await e.hex;\r\n\t\t\t\tthis.onStatusChange({\r\n\t\t\t\t\tdetail: {\r\n\t\t\t\t\t\tcolor: e.hex\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tthis.$forceUpdate();\r\n\t\t\t},\r\n\t\t\treadOnlyChange() {\r\n\t\t\t\tthis.readOnly = !this.readOnly\r\n\t\t\t},\r\n\t\t\tonEditorReady() {\r\n\t\t\t\tuni.createSelectorQuery().select('#editor').context(function(res) {\r\n\t\t\t\t\tconsole.log(res,'res.context')\r\n\t\t\t\t\t_self.editorCtx = res.context;\r\n\t\t\t\t}).exec();\r\n\t\t\t},\r\n\t\t\tundo() {\r\n\t\t\t\tthis.editorCtx.undo();\r\n\t\t\t},\r\n\r\n\t\t\tredo() {\r\n\t\t\t\tthis.editorCtx.redo();\r\n\t\t\t},\r\n\r\n\t\t\tblur() {\r\n\t\t\t\tthis.editorCtx.blur();\r\n\t\t\t},\r\n\r\n\t\t\tformat(e) {\r\n\t\t\t\t// this.hideKey();\r\n\t\t\t\tlet {\r\n\t\t\t\t\tname,\r\n\t\t\t\t\tvalue\r\n\t\t\t\t} = e.target.dataset;\r\n\t\t\t\tif (!name) return; // console.log('format', name, value)\r\n\t\t\t\tthis.editorCtx.format(name, value);\r\n\t\t\t},\r\n\r\n\t\t\tonStatusChange(e) {\r\n\t\t\t\tthis.formats = e.detail;\r\n\t\t\t},\r\n\r\n\t\t\tinsertDivider() {\r\n\t\t\t\tthis.editorCtx.insertDivider({\r\n\t\t\t\t\tsuccess: function() {\r\n\t\t\t\t\t\tconsole.log('insert divider success');\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\r\n\t\t\tstore(e) {\r\n\t\t\t\tthis.editorCtx.getContents({\r\n\t\t\t\t\tsuccess: function(res) {\r\n\t\t\t\t\t\tif(e.currentTarget.id == 1){\r\n\t\t\t\t\t\t\tlet pages = getCurrentPages()\r\n\t\t\t\t\t\t\tlet page = pages[pages.length - 2]\r\n\t\t\t\t\t\t\tconsole.log(page)\r\n\t\t\t\t\t\t\tpage.$vm.description = res.html\r\n\t\t\t\t\t\t\tconsole.log(page,'pagepagepage')\r\n\t\t\t\t\t\t\tconsole.log('保存内容:', res.html)\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} else{\r\n\t\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\t\turl: `../preview/preview?rich=${encodeURIComponent(res.html)}`\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\r\n\t\t\tclear() {\r\n\t\t\t\tthis.editorCtx.clear({\r\n\t\t\t\t\tsuccess: function(res) {\r\n\t\t\t\t\t\tconsole.log(\"clear success\");\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\r\n\t\t\tremoveFormat() {\r\n\t\t\t\tthis.editorCtx.removeFormat();\r\n\t\t\t},\r\n\r\n\t\t\tinsertDate() {\r\n\t\t\t\tconst date = new Date();\r\n\t\t\t\tconst formatDate = `${date.getFullYear()}/${date.getMonth() + 1}/${date.getDate()}`;\r\n\t\t\t\tthis.editorCtx.insertText({\r\n\t\t\t\t\ttext: formatDate\r\n\t\t\t\t});\r\n\t\t\t},\r\n\r\n\t\t\tinsertImage() {\r\n\t\t\t\t// const that = this;\r\n\t\t\t\tchooseImage((img)=>{\r\n\t\t\t\t\t_self.editorCtx.insertImage({\r\n\t\t\t\t\t\tsrc: img,\r\n\t\t\t\t\t\twidth: '80%',\r\n\t\t\t\t\t\tsuccess: function() {\r\n\t\t\t\t\t\t\tconsole.log('insert image success');\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\t\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n</script>\r\n<style lang=\"less\">\r\n\t@import \"./editor.css\";\r\n\t.index-box{\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t}\r\n\t.btn-box{\r\n\t\twidth: 100%;\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t\tjustify-content: space-around;\r\n\t\tposition: fixed;\r\n\t\tbottom: 0;\r\n\t\t.preview-btn{\r\n\t\t\twidth: 230rpx;\r\n\t\t\theight: 80rpx;\r\n\t\t\tbackground: linear-gradient(134deg, #FFA782 0%, #FF6D31 100%);\r\n\t\t\ttext-align: center;\r\n\t\t\tline-height: 80rpx;\r\n\t\t\tfont-size: 38rpx;\r\n\t\t\tfont-weight: 500;\r\n\t\t\tborder-radius: 40rpx;\r\n\t\t\tcolor: #fff;\r\n\t\t\tmargin: 32rpx auto;\r\n\t\t}\r\n\t}\r\n</style>\n","import mod from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--10-oneOf-1-0!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--10-oneOf-1-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--10-oneOf-1-2!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--10-oneOf-1-3!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\less-loader\\\\dist\\\\cjs.js??ref--10-oneOf-1-4!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--10-oneOf-1-5!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=less&\"; export default mod; export * from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--10-oneOf-1-0!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--10-oneOf-1-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--10-oneOf-1-2!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--10-oneOf-1-3!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\less-loader\\\\dist\\\\cjs.js??ref--10-oneOf-1-4!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--10-oneOf-1-5!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=less&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1634873776117\n var cssReload = require(\"D:/Program Files/HBuilderX.3.1.13.20210514/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":""} |