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":["webpack:///C:/Users/Administrator/Documents/WeChat Files/wxid_4mbfe5m00xwy21/FileStorage/File/2024-07/uniapp/wechat/components/upload.vue?5523","webpack:///C:/Users/Administrator/Documents/WeChat Files/wxid_4mbfe5m00xwy21/FileStorage/File/2024-07/uniapp/wechat/components/upload.vue?055d","webpack:///C:/Users/Administrator/Documents/WeChat Files/wxid_4mbfe5m00xwy21/FileStorage/File/2024-07/uniapp/wechat/components/upload.vue?6a1e","webpack:///C:/Users/Administrator/Documents/WeChat Files/wxid_4mbfe5m00xwy21/FileStorage/File/2024-07/uniapp/wechat/components/upload.vue?d1be","uni-app:///components/upload.vue","webpack:///C:/Users/Administrator/Documents/WeChat Files/wxid_4mbfe5m00xwy21/FileStorage/File/2024-07/uniapp/wechat/components/upload.vue?a317","webpack:///C:/Users/Administrator/Documents/WeChat Files/wxid_4mbfe5m00xwy21/FileStorage/File/2024-07/uniapp/wechat/components/upload.vue?f59c"],"names":["props","imagelist","type","default","imgtype","imgsize","filetype","imgclass","text","videoSize","sourceType","computed","primaryColor","subColor","userInfo","methods","previewImage","urls","res_urls","uni","current","toDel","fileName","content","res_del","confirm","chooseImage","is_upload_img","chooseModel","count","param","res_upload","res_info","size","tempFiles","tempFilePath","console","title","filePath","i","formData","path","onPlay","onPause","onEnded","onTimeUpdate","onWaiting","onProgress","onLoadedMetaData"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAmH;AACnH;AAC0D;AACL;AACc;;;AAGnE;AACsN;AACtN,gBAAgB,iNAAU;AAC1B,EAAE,4EAAM;AACR,EAAE,iFAAM;AACR,EAAE,0FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,qFAAU;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,MAAM;AACN;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACnBA;AAAA;AAAA;AAAA;AAAk2B,CAAgB,oyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;ACuDt3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAIA;EACAA;IACA;IACAC;MACAC;MACAC;QACA;MACA;IACA;IACA;IACAC;MACAF;MACAC;QACA;MACA;IACA;IACA;IACAE;MACAH;MACAC;QACA;MACA;IACA;IACA;IACAG;MACAJ;MACAC;QACA;MACA;IACA;IACA;IACAI;MACAL;MACAC;QACA;MACA;IACA;IACA;IACAK;MACAN;MACAC;QACA;MACA;IACA;IACA;IACAM;MACAP;MACAC;QACA;MACA;IACA;IACA;IACAO;MACAR;MACAC;QACA;MACA;IACA;EACA;EACAQ;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;EACA;EACAC;IACAC;MACA;MACAC;MACAA;QACAC;MACA;MACAC;QACAC;QACAH;MACA;IACA;IACAI;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBACAC;gBAAA;gBAAA,OAGAH;kBACAI;gBACA;cAAA;gBAAA;gBAAA;gBAJAC;gBACAC;gBAAA,IAIAA;kBAAA;kBAAA;gBAAA;gBAAA;cAAA;gBACA;gBACA;kBACArB;kBACAH;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACAyB;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAEAtB,UAKA,OALAA,SACAC,UAIA,OAJAA,SACAC,WAGA,OAHAA,UACAG,YAEA,OAFAA,WACAC,aACA,OADAA;gBAEAT;gBACA0B;gBACAC;gBACAC;gBAEAA;gBAEAC;kBACAD;gBACA;gBACA;kBACAC;gBACA;gBACAA;gBAAA;gBAAA,OACAX;cAAA;gBAAA;gBAAA;gBAAAY;gBAAAC;gBAAA,KACAD;kBAAA;kBAAA;gBAAA;gBAAA;cAAA;gBAAA,iBAKAC,SAHAC,6DACAC,YAEAF,SAFAE,mCAEAF,SADAG;gBAEAC;gBAAA,MACA9B;kBAAA;kBAAA;gBAAA;gBACA;kBACA+B;gBACA;gBAAA;cAAA;gBAGAC,eACA;gBACA;kBACAD;gBACA;gBACAD;gBAAA,KACAT;kBAAA;kBAAA;gBAAA;gBACAY;cAAA;gBAAA;kBAAA;kBAAA;gBAAA;gBAAA;gBAAA,OAGA;kBACAD;kBACAE;oBACAtC;kBACA;gBACA;cAAA;gBAAA;gBANAuC;gBAOA;kBACAxC;oBACAwC;kBACA;gBACA;kBACAxC;oBACAwC;kBACA;gBACA;cAAA;gBAjBAF;gBAAA;gBAAA;cAAA;gBAAA;gBAAA;cAAA;gBAAA;gBAAA,OAsBA;kBACAD;kBACAE;oBACAtC;kBACA;gBACA;cAAA;gBAAA;gBANAuC;gBAOAxC;kBACAwC;gBACA;cAAA;gBAEA;gBACA;kBACArC;kBACAH;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACAyC;IACAC;IACAC;IACAC;IACAC;IACAC;IACAC;EACA;AACA;AAAA,4B;;;;;;;;;;;;;AC9OA;AAAA;AAAA;AAAA;AAAylD,CAAgB,m6CAAG,EAAC,C;;;;;;;;;;;ACA7mD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/upload.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./upload.vue?vue&type=template&id=1f6e267c&\"\nvar renderjs\nimport script from \"./upload.vue?vue&type=script&lang=js&\"\nexport * from \"./upload.vue?vue&type=script&lang=js&\"\nimport style0 from \"./upload.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 = \"components/upload.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!./upload.vue?vue&type=template&id=1f6e267c&\"","var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var g0 = _vm.imagelist.length\n var g1 = g0 < _vm.imgsize && _vm.imgsize > 1 ? _vm.imagelist.length : null\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0,\n g1: g1,\n },\n }\n )\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!./upload.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!./upload.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view\r\n\t\t:class=\"[{'flex-warp':!imgclass || imgclass =='mini'},{'flex-center flex-column':imgclass && imgclass != 'mini'}]\">\r\n\t\t<block v-for=\"(item,index) in imagelist\" :key=\"index\">\r\n\t\t\t<view class=\"rel item-child radius-16\" :class=\"[imgclass,{'margin': imgsize > 1}]\"\r\n\t\t\t\t:style=\"{border:imgclass=='apply'?`4rpx solid ${primaryColor}`:''}\">\r\n\t\t\t\t<!-- #ifdef H5 -->\r\n\t\t\t\t<view class=\"upload-img radius-16\" v-if=\"filetype == 'picture'\">\r\n\t\t\t\t\t<view @tap.stop=\"previewImage(item,imagelist)\" class=\"h5-image upload-img radius-16\"\r\n\t\t\t\t\t\t:style=\"{ backgroundImage : `url('${item.path}')`}\">\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<!-- #endif -->\r\n\t\t\t\t<!-- #ifndef H5 -->\r\n\t\t\t\t<image mode=\"aspectFill\" @tap.stop=\"previewImage(item,imagelist)\" class=\"upload-img radius-16\"\r\n\t\t\t\t\t:src=\"item.path\" v-if=\"filetype == 'picture'\"></image>\r\n\t\t\t\t<!-- #endif -->\r\n\r\n\t\t\t\t<video :id=\"`video_${index}`\" class=\"upload-video rel radius-16\" :loop=\"false\" enable-play-gesture\r\n\t\t\t\t\tenable-progress-gesture :show-center-play-btn=\"true\" :controls=\"true\" :src=\"item.path\"\r\n\t\t\t\t\t:data-id=\"item.id\" objectFit=\"cover\" :data-index=\"index\" @play=\"onPlay\" @pause=\"onPause\"\r\n\t\t\t\t\t@ended=\"onEnded\" @timeupdate=\"onTimeUpdate\" @waiting=\"onWaiting\" @progress=\"onProgress\"\r\n\t\t\t\t\t@loadedmetadata=\"onLoadedMetaData\" v-if=\"filetype == 'video'\">\r\n\t\t\t\t\t<cover-view @tap=\"toDel(index)\" class=\"item-delete abs flex-center f-icontext c-base\"\r\n\t\t\t\t\t\t:style=\"{background:primaryColor}\">\r\n\t\t\t\t\t\t删除\r\n\t\t\t\t\t</cover-view>\r\n\t\t\t\t</video>\r\n\r\n\t\t\t\t<block v-if=\"filetype == 'picture'\">\r\n\t\t\t\t\t<view @tap=\"toDel(index)\" class=\"guanbi abs flex-center\" :class=\"[imgclass]\" style=\"z-index: 1;\"\r\n\t\t\t\t\t\tv-if=\"imgsize>1\"><i class=\"iconfont icon-add rotate-45 c-base\"></i></view>\r\n\t\t\t\t\t<view @tap=\"chooseImage\" class=\"flex-center flex-column item-child upload-item radius-16 abs\"\r\n\t\t\t\t\t\t:class=\"[imgclass]\" style=\"top:0;margin-top:0;background:rgba(0,0,0,0.5);\" v-else>\r\n\t\t\t\t\t\t<view class=\"upload-icon flex-center c-title radius-10\">\r\n\t\t\t\t\t\t\t<i class=\"iconfont icon-camera\"></i>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view class=\"f-caption c-base mt-sm\">重新上传</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</block>\r\n\t\t\t</view>\r\n\t\t</block>\r\n\t\t<view @tap=\"chooseImage\" class=\"radius-16 flex-center flex-column item-child upload-item fill-body radius-16\"\r\n\t\t\t:class=\"[imgclass,{'margin': imgsize > 1}]\"\r\n\t\t\t:style=\"{border:imgclass=='apply'?`4rpx solid ${primaryColor}`:''}\" v-if=\"imagelist.length < imgsize\">\r\n\t\t\t<view class=\"upload-icon flex-center c-title radius-10\">\r\n\t\t\t\t<i class=\"iconfont icon-camera\"></i>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"f-caption c-caption mt-sm\" v-if=\"text\">{{text}}</view>\r\n\t\t\t<view class=\"cur-imgsize f-caption c-caption\" v-if=\"imgsize>1\">{{`${imagelist.length}/${imgsize}`}}</view>\r\n\t\t</view>\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} from 'vuex';\r\n\texport default {\r\n\t\tprops: {\r\n\t\t\t// 图片列表\r\n\t\t\timagelist: {\r\n\t\t\t\ttype: Array,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn []\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 图片参数名\r\n\t\t\timgtype: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn ''\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 图片张数\r\n\t\t\timgsize: {\r\n\t\t\t\ttype: Number,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn 9\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 上传类型\r\n\t\t\tfiletype: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn 'picture'\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 图片样式\r\n\t\t\timgclass: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn ''\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 备注信息\r\n\t\t\ttext: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn ''\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 视频大小限制\r\n\t\t\tvideoSize: {\r\n\t\t\t\ttype: Number,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn 50\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 上传类型\r\n\t\t\tsourceType: {\r\n\t\t\t\ttype: Number,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn 1\r\n\t\t\t\t}\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\tuserInfo: state => state.user.userInfo\r\n\t\t}),\r\n\t\tmethods: {\r\n\t\t\tpreviewImage(current, urls) {\r\n\t\t\t\tlet res_urls = [];\r\n\t\t\t\turls = this.$util.deepCopy(urls);\r\n\t\t\t\turls.forEach((item, index) => {\r\n\t\t\t\t\tres_urls.push(item.path)\r\n\t\t\t\t})\r\n\t\t\t\tuni.previewImage({\r\n\t\t\t\t\tcurrent: current.path,\r\n\t\t\t\t\turls: res_urls,\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tasync toDel(index) {\r\n\t\t\t\tlet fileName = this.filetype == 'picture' ? '图片' : '视频'\r\n\t\t\t\tlet [res_del, {\r\n\t\t\t\t\tconfirm\r\n\t\t\t\t}] = await uni.showModal({\r\n\t\t\t\t\tcontent: `请确认是否要删除${fileName}`,\r\n\t\t\t\t})\r\n\t\t\t\tif (!confirm) return;\r\n\t\t\t\tthis.imagelist.splice(index, 1);\r\n\t\t\t\tthis.$emit('del', {\r\n\t\t\t\t\timgtype: this.imgtype,\r\n\t\t\t\t\timagelist: this.imagelist\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\tasync chooseImage() {\r\n\t\t\t\tlet {\r\n\t\t\t\t\timgtype,\r\n\t\t\t\t\timgsize,\r\n\t\t\t\t\tfiletype,\r\n\t\t\t\t\tvideoSize,\r\n\t\t\t\t\tsourceType\r\n\t\t\t\t} = this;\r\n\t\t\t\tlet imagelist = this.$util.deepCopy(this.imagelist)\r\n\t\t\t\tlet is_upload_img = filetype == 'picture'\r\n\t\t\t\tlet chooseModel = is_upload_img ? 'chooseImage' : 'chooseVideo'\r\n\t\t\t\tlet count = 1\r\n\t\t\t\t// #ifndef H5\r\n\t\t\t\tcount = imgsize == 1 ? 1 : imgsize - imagelist.length * 1\r\n\t\t\t\t// #endif\r\n\t\t\t\tlet param = {\r\n\t\t\t\t\tcount\r\n\t\t\t\t}\r\n\t\t\t\tif (is_upload_img) {\r\n\t\t\t\t\tparam.sizeType = ['compressed']\r\n\t\t\t\t}\r\n\t\t\t\tparam.sourceType = sourceType == 1 ? ['camera', 'album'] : ['camera']\r\n\t\t\t\tlet [res_upload, res_info] = await uni[chooseModel](param)\r\n\t\t\t\tif (res_upload) return\r\n\t\t\t\tlet {\r\n\t\t\t\t\tsize = 0,\r\n\t\t\t\t\t\ttempFiles,\r\n\t\t\t\t\t\ttempFilePath = ''\r\n\t\t\t\t} = res_info\r\n\t\t\t\tconsole.log(is_upload_img, size, size / 1024 / 1024, \"=====size\")\r\n\t\t\t\tif (filetype == 'video' && size / 1024 / 1024 > videoSize) {\r\n\t\t\t\t\tthis.$util.showToast({\r\n\t\t\t\t\t\ttitle: `上传视频大小超过限制${videoSize}M`\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\tlet filePath = [];\r\n\t\t\t\t// 格式化图片参数\r\n\t\t\t\tthis.$util.showLoading({\r\n\t\t\t\t\ttitle: \"上传中\"\r\n\t\t\t\t});\r\n\t\t\t\tconsole.log(\"======tempFiles==tempFilePath\", tempFiles, tempFilePath)\r\n\t\t\t\tif (is_upload_img) {\r\n\t\t\t\t\tfor (let i = 0; i < tempFiles.length; i++) {\r\n\t\t\t\t\t\tlet {\r\n\t\t\t\t\t\t\tattachment_path: path\r\n\t\t\t\t\t\t} = await this.$api.base.uploadFile({\r\n\t\t\t\t\t\t\tfilePath: tempFiles[i].path,\r\n\t\t\t\t\t\t\tformData: {\r\n\t\t\t\t\t\t\t\ttype: this.filetype\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\tif (imgsize > 1) {\r\n\t\t\t\t\t\t\timagelist.push({\r\n\t\t\t\t\t\t\t\tpath\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\timagelist = [{\r\n\t\t\t\t\t\t\t\tpath\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} else {\r\n\t\t\t\t\tlet {\r\n\t\t\t\t\t\tattachment_path: path\r\n\t\t\t\t\t} = await this.$api.base.uploadFile({\r\n\t\t\t\t\t\tfilePath: tempFilePath,\r\n\t\t\t\t\t\tformData: {\r\n\t\t\t\t\t\t\ttype: this.filetype\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t\timagelist.push({\r\n\t\t\t\t\t\tpath\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\tthis.$util.hideAll()\r\n\t\t\t\tthis.$emit('upload', {\r\n\t\t\t\t\timgtype,\r\n\t\t\t\t\timagelist\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\tonPlay(e) {},\r\n\t\t\tonPause(e) {},\r\n\t\t\tonEnded(e) {},\r\n\t\t\tonTimeUpdate(e) {},\r\n\t\t\tonWaiting(e) {},\r\n\t\t\tonProgress(e) {},\r\n\t\t\tonLoadedMetaData(e) {},\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t.item-child {\r\n\t\twidth: 216rpx;\r\n\t\theight: 216rpx;\r\n\t\tbackground: #F7F7F7;\r\n\t\tmargin-bottom: 20rpx;\r\n\t}\r\n\r\n\t.margin {\r\n\t\tmargin: 0 21rpx 21rpx 0;\r\n\t}\r\n\r\n\t.item-child:nth-child(3n) {\r\n\t\tmargin-right: 0rpx;\r\n\t}\r\n\r\n\t.item-child.sm {\r\n\t\twidth: 140rpx;\r\n\t\theight: 140rpx;\r\n\t}\r\n\r\n\t.item-child.apply {\r\n\t\twidth: 176rpx;\r\n\t\theight: 176rpx;\r\n\t}\r\n\r\n\t.item-child.mini {\r\n\t\twidth: 196rpx;\r\n\t\theight: 196rpx;\r\n\t}\r\n\r\n\t.item-child.md {\r\n\t\twidth: 335rpx;\r\n\t\theight: 210rpx;\r\n\t\tmargin: 0rpx;\r\n\t}\r\n\r\n\t.item-child.lg {\r\n\t\twidth: 686rpx;\r\n\t\theight: 400rpx;\r\n\t}\r\n\r\n\t.upload-img,\r\n\t.upload-video {\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t}\r\n\r\n\r\n\t.upload-video {\r\n\t\t.item-delete {\r\n\t\t\twidth: 60rpx;\r\n\t\t\theight: 32rpx;\r\n\t\t\ttop: 0;\r\n\t\t\tright: 0;\r\n\t\t\tz-index: 2;\r\n\t\t}\r\n\t}\r\n\r\n\t.upload-item {\r\n\r\n\t\t.upload-icon {\r\n\t\t\twidth: 80rpx;\r\n\t\t\theight: 76rpx;\r\n\t\t\tbackground: #FFFFFF;\r\n\r\n\t\t\t.iconfont {\r\n\t\t\t\tfont-size: 40rpx;\r\n\t\t\t\tdisplay: block;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.cur-imgsize {\r\n\t\t\tline-height: 1.1;\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t.upload-item.margin {\r\n\t\tmargin-bottom: 0;\r\n\t}\r\n\r\n\t.item-child.apply {\r\n\t\t.upload-item {\r\n\t\t\twidth: 168rpx;\r\n\t\t\theight: 168rpx;\r\n\t\t}\r\n\t}\r\n\r\n\t.guanbi {\r\n\t\twidth: 32rpx;\r\n\t\theight: 32rpx;\r\n\t\tbackground: rgba(0, 0, 0, 0.2);\r\n\t\tborder-radius: 0 15rpx 0 0;\r\n\t\ttop: 0rpx;\r\n\t\tright: 0rpx;\r\n\t\tz-index: 1;\r\n\r\n\t\t.iconfont {\r\n\t\t\tfont-size: 28rpx;\r\n\t\t}\r\n\t}\r\n\r\n\t.guanbi.lg {\r\n\t\twidth: 50rpx;\r\n\t\theight: 50rpx;\r\n\r\n\t\t.iconfont {\r\n\t\t\tfont-size: 38rpx;\r\n\t\t}\r\n\t}\r\n</style>","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!./upload.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!./upload.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1720663115429\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":""} |