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
20 KiB
1 lines
20 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/Administrator/Documents/WeChat Files/wxid_4mbfe5m00xwy21/FileStorage/File/2024-07/uniapp/wechat/dynamic/pages/technician/edit.vue?d294","webpack:///C:/Users/Administrator/Documents/WeChat Files/wxid_4mbfe5m00xwy21/FileStorage/File/2024-07/uniapp/wechat/dynamic/pages/technician/edit.vue?bf5e","webpack:///C:/Users/Administrator/Documents/WeChat Files/wxid_4mbfe5m00xwy21/FileStorage/File/2024-07/uniapp/wechat/dynamic/pages/technician/edit.vue?bab5","webpack:///C:/Users/Administrator/Documents/WeChat Files/wxid_4mbfe5m00xwy21/FileStorage/File/2024-07/uniapp/wechat/dynamic/pages/technician/edit.vue?6865","uni-app:///dynamic/pages/technician/edit.vue","webpack:///C:/Users/Administrator/Documents/WeChat Files/wxid_4mbfe5m00xwy21/FileStorage/File/2024-07/uniapp/wechat/dynamic/pages/technician/edit.vue?6ac2","webpack:///C:/Users/Administrator/Documents/WeChat Files/wxid_4mbfe5m00xwy21/FileStorage/File/2024-07/uniapp/wechat/dynamic/pages/technician/edit.vue?ab2e"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","options","subForm","id","cover","imgs","type","title","text","lat","lng","address","rule","name","checkType","errorMsg","regType","lockTap","computed","primaryColor","subColor","configInfo","userInfo","location","haveShieldOper","onLoad","bg","methods","initIndex","path","imgUpload","imagelist","e","imgtype","toChooseLocation","addrLat","addrLng","locaLat","locaLng","param","uni","validate","item","submit","url","msg","methodModel","status","key","val","setTimeout","openType"],"mappings":"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","file":"dynamic/pages/technician/edit.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './dynamic/pages/technician/edit.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./edit.vue?vue&type=template&id=1030c21c&\"\nvar renderjs\nimport script from \"./edit.vue?vue&type=script&lang=js&\"\nexport * from \"./edit.vue?vue&type=script&lang=js&\"\nimport style0 from \"./edit.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/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 = \"dynamic/pages/technician/edit.vue\"\nexport default component.exports","export * from \"-!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./edit.vue?vue&type=template&id=1030c21c&\"","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.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./edit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./edit.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"dynamic-technician-add\">\r\n\t\t<view class=\"pd-lg\">\r\n\t\t\t<view class=\"pb-md\" :class=\"[{'flex-warp': subForm.type == 2 }]\">\r\n\t\t\t\t<view class=\"mr-md\" v-if=\"subForm.type == 2\">\r\n\t\t\t\t\t<upload @upload=\"imgUpload\" @del=\"imgUpload\" :imagelist=\"subForm.cover\" filetype=\"picture\"\r\n\t\t\t\t\t\timgtype=\"cover\" text=\"上传封面\" :imgsize=\"1\">\r\n\t\t\t\t\t</upload>\r\n\t\t\t\t</view>\r\n\t\t\t\t<upload @upload=\"imgUpload\" @del=\"imgUpload\" :imagelist=\"subForm.imgs\"\r\n\t\t\t\t\t:filetype=\"subForm.type == 1 ? 'picture' : 'video'\" imgtype=\"imgs\"\r\n\t\t\t\t\t:text=\"subForm.type == 1 ? '上传图片' : '上传视频'\" :imgsize=\"subForm.type == 1 ? 9 : 1\">\r\n\t\t\t\t</upload>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"space-md\"></view>\r\n\t\t\t<input v-model=\"subForm.title\" class=\"f-mini-title c-title\" type=\"text\" placeholder=\"填写标题有更多赞哟~\"\r\n\t\t\t\tplaceholder-class=\"f-mini-title c-caption\" maxlength=\"10\" />\r\n\t\t\t<view class=\"space-lg b-1px-b\"></view>\r\n\t\t\t<view class=\"space-lg\"></view>\r\n\t\t\t<textarea v-model=\"subForm.text\" class=\"textarea f-desc c-title\" maxlength=\"400\"\r\n\t\t\t\tplaceholder=\"还有更多的想法也一起写到正文吧~\" placeholder-class=\"f-desc c-caption\"></textarea>\r\n\t\t</view>\r\n\t\t<view @tap.stop=\"toChooseLocation\" class=\"pt-lg pl-lg pr-md flex-center f-desc\">\r\n\t\t\t<i class=\"iconfont icon-dingwei\"></i>\r\n\t\t\t<view class=\"flex-1 ml-sm mr-lg c-title ellipsis-2\">\r\n\t\t\t\t{{subForm.lat ? subForm.address : '添加地点'}}\r\n\t\t\t</view>\r\n\t\t\t<i class=\"iconfont icongengduo\"></i>\r\n\t\t</view>\r\n\t\t<view class=\"space-max-footer\"></view>\r\n\t\t<fix-bottom-button @confirm=\"submit\" :text=\"[{text:subForm.id?'编辑动态':'发布动态',type:'confirm'}]\" bgColor=\"#fff\">\r\n\t\t</fix-bottom-button>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport {\r\n\t\tmapState,\r\n\t\tmapActions,\r\n\t\tmapMutations\r\n\t} from \"vuex\"\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\toptions: {},\r\n\t\t\t\tsubForm: {\r\n\t\t\t\t\tid: 0,\r\n\t\t\t\t\tcover: [],\r\n\t\t\t\t\timgs: [],\r\n\t\t\t\t\ttype: 1,\r\n\t\t\t\t\ttitle: '',\r\n\t\t\t\t\ttext: '',\r\n\t\t\t\t\tlat: '',\r\n\t\t\t\t\tlng: '',\r\n\t\t\t\t\taddress: ''\r\n\t\t\t\t},\r\n\t\t\t\trule: [{\r\n\t\t\t\t\t\tname: \"cover\",\r\n\t\t\t\t\t\tcheckType: \"isNotNull\",\r\n\t\t\t\t\t\terrorMsg: \"请上传封面图\"\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\tname: \"imgs\",\r\n\t\t\t\t\t\tcheckType: \"isNotNull\",\r\n\t\t\t\t\t\terrorMsg: \"\"\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\tname: \"title\",\r\n\t\t\t\t\t\tcheckType: \"isNotNull\",\r\n\t\t\t\t\t\terrorMsg: \"请输入标题\",\r\n\t\t\t\t\t\tregType: 2\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tname: \"text\",\r\n\t\t\t\t\t\tcheckType: \"isNotNull\",\r\n\t\t\t\t\t\terrorMsg: \"请输入正文内容\",\r\n\t\t\t\t\t\tregType: 2\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tname: \"address\",\r\n\t\t\t\t\t\tcheckType: \"isNotNull\",\r\n\t\t\t\t\t\terrorMsg: \"请选择定位地点\"\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\tlockTap: false\r\n\t\t\t}\r\n\t\t},\r\n\t\tcomputed: mapState({\r\n\t\t\tprimaryColor: state => state.config.configInfo.primaryColor,\r\n\t\t\tsubColor: state => state.config.configInfo.subColor,\r\n\t\t\tconfigInfo: state => state.config.configInfo,\r\n\t\t\tuserInfo: state => state.user.userInfo,\r\n\t\t\tlocation: state => state.user.location,\r\n\t\t\thaveShieldOper: state => state.user.haveShieldOper,\r\n\t\t}),\r\n\t\tonLoad(options) {\r\n\t\t\tlet {\r\n\t\t\t\ttype\r\n\t\t\t} = options\r\n\t\t\ttype = type * 1\r\n\t\t\tthis.options = options\r\n\t\t\tthis.subForm.type = type\r\n\t\t\tthis.rule[1].errorMsg = type == 1 ? '请上传图片' : '请上传视频'\r\n\t\t\tthis.initIndex()\r\n\t\t\tthis.$util.setNavigationBarColor({\r\n\t\t\t\tbg: this.primaryColor\r\n\t\t\t})\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t...mapMutations(['updateUserItem']),\r\n\t\t\tasync initIndex() {\r\n\t\t\t\tlet {\r\n\t\t\t\t\tid = 0\r\n\t\t\t\t} = this.options\r\n\t\t\t\tif (!id) return\r\n\t\t\t\tlet data = await this.$api.dynamic.coachDynamicInfo({\r\n\t\t\t\t\tid\r\n\t\t\t\t})\r\n\t\t\t\tdata.cover = [{\r\n\t\t\t\t\tpath: data.cover\r\n\t\t\t\t}]\r\n\t\t\t\tdata.imgs = data.imgs.map(item => {\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tpath: item\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\tfor (let key in this.subForm) {\r\n\t\t\t\t\tthis.subForm[key] = data[key]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\timgUpload(e) {\r\n\t\t\t\tlet {\r\n\t\t\t\t\timagelist,\r\n\t\t\t\t\timgtype\r\n\t\t\t\t} = e;\r\n\t\t\t\tthis.subForm[imgtype] = imagelist;\r\n\t\t\t},\r\n\t\t\t// 选择地区\r\n\t\t\tasync toChooseLocation(e) {\r\n\t\t\t\tawait this.$util.checkAuth({\r\n\t\t\t\t\ttype: 'userLocation'\r\n\t\t\t\t})\r\n\t\t\t\tlet {\r\n\t\t\t\t\tlat: locaLat = '',\r\n\t\t\t\t\tlng: locaLng = ''\r\n\t\t\t\t} = this.location\r\n\t\t\t\tlet {\r\n\t\t\t\t\tid = 0,\r\n\t\t\t\t\t\tlat: addrLat,\r\n\t\t\t\t\t\tlng: addrLng\r\n\t\t\t\t} = this.subForm\r\n\r\n\t\t\t\tif (id) {\r\n\t\t\t\t\tlocaLat = addrLat\r\n\t\t\t\t\tlocaLng = addrLng\r\n\t\t\t\t}\r\n\r\n\t\t\t\tlet param = {}\r\n\t\t\t\tif (!locaLat && !locaLng) {\r\n\t\t\t\t\t// #ifdef H5\r\n\t\t\t\t\tif (this.$jweixin.isWechat()) {\r\n\t\t\t\t\t\tthis.$util.showLoading()\r\n\t\t\t\t\t\tawait this.$jweixin.wxReady2();\r\n\t\t\t\t\t\tlet {\r\n\t\t\t\t\t\t\tlatitude,\r\n\t\t\t\t\t\t\tlongitude\r\n\t\t\t\t\t\t} = await this.$jweixin.getWxLocation()\r\n\t\t\t\t\t\tlocaLat = latitude\r\n\t\t\t\t\t\tlocaLng = longitude\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// #endif\r\n\t\t\t\t\t// #ifdef APP-PLUS\r\n\t\t\t\t\tlet location = await this.$util.getBmapLocation()\r\n\t\t\t\t\tlocaLat = location.lat\r\n\t\t\t\t\tlocaLng = location.lng\r\n\t\t\t\t\t// #endif\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// #ifndef MP-WEIXIN\r\n\t\t\t\tparam = {\r\n\t\t\t\t\tlatitude: locaLat,\r\n\t\t\t\t\tlongitude: locaLng\r\n\t\t\t\t}\r\n\t\t\t\t// #endif\r\n\t\t\t\tlet [, {\r\n\t\t\t\t\taddress = '',\r\n\t\t\t\t\tlongitude: lng,\r\n\t\t\t\t\tlatitude: lat,\r\n\t\t\t\t}] = await uni.chooseLocation(param);\r\n\t\t\t\tif (!lng) return\r\n\t\t\t\tthis.subForm.address = address\r\n\t\t\t\tthis.subForm.lat = lat\r\n\t\t\t\tthis.subForm.lng = lng\r\n\t\t\t},\r\n\t\t\t//表单验证\r\n\t\t\tvalidate(param) {\r\n\t\t\t\tlet validate = new this.$util.Validate();\r\n\t\t\t\tthis.rule.map(item => {\r\n\t\t\t\t\tlet {\r\n\t\t\t\t\t\tname,\r\n\t\t\t\t\t} = item\r\n\t\t\t\t\tvalidate.add(param[name], item);\r\n\t\t\t\t})\r\n\t\t\t\tlet message = validate.start();\r\n\t\t\t\treturn message;\r\n\t\t\t},\r\n\t\t\tasync submit() {\r\n\t\t\t\tlet subForm = this.$util.deepCopy(this.subForm)\r\n\t\t\t\tsubForm.imgs = subForm.imgs && subForm.imgs.length > 0 ? subForm.imgs.map(item => {\r\n\t\t\t\t\treturn item.path\r\n\t\t\t\t}) : []\r\n\t\t\t\tlet url = subForm.type == 1 ? subForm.imgs.length > 0 ? subForm.imgs[0] : '' : subForm.cover && subForm\r\n\t\t\t\t\t.cover.length > 0 ? subForm.cover[0].path : ''\r\n\t\t\t\tsubForm.cover = url\r\n\t\t\t\tlet msg = this.validate(subForm);\r\n\t\t\t\tif (msg) {\r\n\t\t\t\t\tthis.$util.showToast({\r\n\t\t\t\t\t\ttitle: msg\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (this.lockTap) return\r\n\t\t\t\tthis.lockTap = true\r\n\t\t\t\tthis.$util.showLoading()\r\n\t\t\t\ttry {\r\n\t\t\t\t\tlet methodModel = subForm.id ? 'dynamicUpdate' : 'dynamicAdd'\r\n\t\t\t\t\tlet {\r\n\t\t\t\t\t\tstatus = 1\r\n\t\t\t\t\t} = await this.$api.dynamic[methodModel](subForm)\r\n\t\t\t\t\tthis.$util.hideAll()\r\n\t\t\t\t\tthis.$util.showToast({\r\n\t\t\t\t\t\ttitle: status == 1 ? '正在审核中' : subForm.id ? `编辑成功` : `发布成功`\r\n\t\t\t\t\t})\r\n\t\t\t\t\tthis.updateUserItem({\r\n\t\t\t\t\t\tkey: 'haveShieldOper',\r\n\t\t\t\t\t\tval: 1\r\n\t\t\t\t\t})\r\n\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\tthis.$util.back()\r\n\t\t\t\t\t\tthis.$util.goUrl({\r\n\t\t\t\t\t\t\turl: 1,\r\n\t\t\t\t\t\t\topenType: `navigateBack`\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}, 2000)\r\n\t\t\t\t} catch (e) {\r\n\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\tthis.lockTap = false\r\n\t\t\t\t\t\tthis.$util.hideAll()\r\n\t\t\t\t\t}, 2000)\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\tpage {\r\n\t\tbackground: #fff;\r\n\t}\r\n\r\n\t.dynamic-technician-add {\r\n\t\t.icon-dingwei {\r\n\t\t\tfont-size: 28rpx;\r\n\t\t}\r\n\r\n\t\t.icongengduo {\r\n\t\t\tfont-size: 26rpx;\r\n\t\t\tcolor: #9B9B9B;\r\n\t\t}\r\n\r\n\t\t.textarea {\r\n\t\t\twidth: 690rpx;\r\n\t\t}\r\n\t}\r\n</style>\n","import mod from \"-!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./edit.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./edit.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1720663116654\n var cssReload = require(\"C:/Users/Administrator/Downloads/HBuilderX.3.99.2023122611/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":""} |