You cannot 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 line
21 KiB
Plaintext

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":["webpack:///C:/Users/土豆泥/Documents/HBuilderProjects/3/components/file-upload/file-upload.vue?6a04","webpack:///C:/Users/土豆泥/Documents/HBuilderProjects/3/components/file-upload/file-upload.vue?7fa0","webpack:///C:/Users/土豆泥/Documents/HBuilderProjects/3/components/file-upload/file-upload.vue?81c3","webpack:///C:/Users/土豆泥/Documents/HBuilderProjects/3/components/file-upload/file-upload.vue?7f8a","uni-app:///components/file-upload/file-upload.vue","webpack:///C:/Users/土豆泥/Documents/HBuilderProjects/3/components/file-upload/file-upload.vue?a7bd","webpack:///C:/Users/土豆泥/Documents/HBuilderProjects/3/components/file-upload/file-upload.vue?f411"],"names":["data","certificatesNum","nowList","oldList","removeList","loadShow","lists","computed","actionCompute","headerWithJtiCompute","props","value","type","default","width","height","fileId","filePath","thumbnailPath","delIcon","sortFlag","thumbnailFlag","loadSrc","action","maxSize","maxNum","upHeaderFild","echoPicList","headerWithJti","showProgress","limitTypeList","showTipsNumber","oneNumberStyle","uploadText","methods","upload","deleteItem","uni","title","content","success","list","imageSuccess","successImg","console","imageComplete","imageClick","urls","current","upError","loadSrcFn"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAoI;AACpI;AAC+D;AACL;AACsC;;;AAGhG;AACgL;AAChL,gBAAgB,yLAAU;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,aAAa,uSAEN;AACP,KAAK;AACL;AACA,aAAa,iSAEN;AACP,KAAK;AACL;AACA,aAAa,6SAEN;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;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACxEA;AAAA;AAAA;AAAA;AAA4pB,CAAgB,irBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACmDhrB;AAAA,gBACA;EACAA;IACA;MACA;MACAC;MACA;MACAC;MACA;MACAC;MACA;MACAC;MACAC;MACAC;IACA;EACA;;EACAC;IACAC;MACA;QACA;MACA;QACA;MACA;IACA;IACAC;MACA;QACA;UACA;QACA;MACA;QACA;MACA;IACA;EACA;EACAC;IACAC;MACAC;MACAC;QACA;MACA;IACA;IACAC;MACAF;MACAC;IACA;IACAE;MACAH;MACAC;IACA;IACA;IACAG;MACAJ;MACAC;IACA;IACA;IACAI;MACAL;MACAC;IACA;IACAK;MACAN;MACAC;IACA;IACA;IACAM;MACAP;MACAC;IACA;IACA;IACAO;MACAR;MACAC;IACA;IACA;IACAQ;MACAT;MACAC;IACA;IACAS;MACAV;MACAC;IACA;IACA;IACAU;MACAX;MACAC;IACA;IACA;IACAW;MACAZ;MACAC;IACA;;IACA;IACAY;MACAb;MACAC;IACA;IACA;IACAa;MACAd;MACAC;IACA;IACA;IACAc;MACAf;MACAC;QACA;MACA;IACA;IACA;IACAe;MACAhB;MACAC;QACA;MACA;IACA;IACA;IACAgB;MACAjB;MACAC;IACA;IACA;IACAiB;MACAlB;MACAC;QACA;MACA;IACA;IACA;IACAkB;MACAnB;MACAC;IACA;IACAmB;MACApB;MACAC;IACA;IACA;IACAoB;MACArB;MACAC;IACA;EACA;EACAqB;IACAC;MACA;IACA;IACA;IACAC;MAAA;MACAC;QACAC;QACAC;QACAC;UACA;YACA;YACAC;YACA;UACA;QACA;MACA;IAEA;IACA;IACAC;MAAA;MACA;QACA;QACA;MACA;MACA;MACA,+EACA,sEACA,+CACA;MACA;MACA;QACAC;MACA;MACA;MACAF;MACA;MACA;MACA;MACA;MACAG;IAEA;IACAC;MACA;MACA;IACA;IACAC;MAAA;MACA;QACA;MACA;MACAT;QACAU;QACAC;MACA;IACA;IACA;IACAC;MACA;MACA;IACA;IACA;IACAC;MACA;QACA;MACA;MACA;IACA;EACA;AACA;AAAA,4B;;;;;;;;;;;;;ACvQA;AAAA;AAAA;AAAA;AAA2wC,CAAgB,wuCAAG,EAAC,C;;;;;;;;;;;ACA/xC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/file-upload/file-upload.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./file-upload.vue?vue&type=template&id=520d372c&scoped=true&\"\nvar renderjs\nimport script from \"./file-upload.vue?vue&type=script&lang=js&\"\nexport * from \"./file-upload.vue?vue&type=script&lang=js&\"\nimport style0 from \"./file-upload.vue?vue&type=style&index=0&id=520d372c&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!E:\\\\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 \"520d372c\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/file-upload/file-upload.vue\"\nexport default component.exports","export * from \"-!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--17-0!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./file-upload.vue?vue&type=template&id=520d372c&scoped=true&\"","var components\ntry {\n components = {\n uImage: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-image/u-image\" */ \"@/uni_modules/uview-ui/components/u-image/u-image.vue\"\n )\n },\n uIcon: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-icon/u-icon\" */ \"@/uni_modules/uview-ui/components/u-icon/u-icon.vue\"\n )\n },\n uUpload: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-upload/u-upload\" */ \"@/uni_modules/uview-ui/components/u-upload/u-upload.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 var g0 = _vm.value.length\n var g1 = _vm.value.length\n var l0 = _vm.__map(_vm.value, function (item, index) {\n var $orig = _vm.__get_orig(item)\n var m0 = _vm.loadSrcFn(item[_vm.filePath])\n return {\n $orig: $orig,\n m0: m0,\n }\n })\n var g2 = _vm.value.length\n var g3 = _vm.showTipsNumber ? _vm.value.length : null\n if (!_vm._isMounted) {\n _vm.e0 = function ($event) {\n _vm.loadShow = false\n }\n }\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0,\n g1: g1,\n l0: l0,\n g2: g2,\n g3: g3,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./file-upload.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./file-upload.vue?vue&type=script&lang=js&\"","<!-- \r\n 上传图片组件 基于uview upload \r\n\t:action STring 上传文件的接口 可以不传 会有当前默认的参数\r\n\t:maxSize String 最大尺寸\r\n :maxNum String 最大数量\r\n\t:upHeaderFild String 请求后端字段头\r\n\t:echoPicList Array 回显图片列表\r\n\t:headerWithJti Object 请求头 可以不传 会有当前默认的参数\r\n\t:showProgress Boolean 是否显示进度条\r\n\t:limitTypeList Array 限制文件类型 ['png', 'jpg', 'jpeg']\r\n\t:showTipsNumber Boolean 是否显示上传数量限制\r\n\t@okCallBack fn 回调上传列表\r\n\t:oneNumberStyle Boolean 当图片最大值为1时可以通过次来使数量显示紧挨后面\r\n -->\r\n <template>\r\n\t\t<view style=\"display: flex;flex-wrap: wrap;\" :class=\"{agreementImage:oneNumberStyle}\" class=\"agreementImage\">\r\n\t\t\t<span v-for=\"(item,index) in value\" :key=\"index\" :style=\"{width:width,height:height,marginRight: (value.length == index + 1 )? '' : '16rpx',marginBottom:(value.length == index + 1 )? '' : '10rpx',position:'relative'}\" >\r\n\t\t\t\t<u-image :fade=\"false\" :src=\"item[filePath]\" width=\"100%\" height=\"100%\" @click=\"imageClick(item,index)\">\r\n\t\t\t\t\t<image slot=\"loading\" :style=\"{width:width,height:height}\" :src=\"loadSrcFn(item[filePath])\"></image>\r\n\t\t\t\t</u-image>\r\n\t\t\t\t<view class=\"del-icon\" v-if=\"delIcon\" @tap.stop=\"deleteItem(item,index)\">\r\n\t\t\t\t\t<u-icon name=\"close\" color=\"#fff\" size=\"15\" ></u-icon>\r\n\t\t\t\t</view>\r\n\t\t\t</span>\r\n\t\t\t<u-upload ref=\"uUpload\"\r\n\t\t\t :width=\"width\"\r\n\t\t\t :height=\"height\"\r\n\t\t\t :action=\"actionCompute\" \r\n\t\t\t :max-size=\"maxSize * 1024 * 1024\" \r\n\t\t\t :max-count=\"maxNum - value.length\" \r\n\t\t\t :show-upload-list=\"false\"\r\n\t\t\t :name=\"upHeaderFild\"\r\n\t\t\t :file-list=\"oldList\"\r\n\t\t\t :header=\"headerWithJtiCompute\"\r\n\t\t\t :show-progress='showProgress'\r\n\t\t\t :uploadText=\"uploadText\"\r\n\t\t\t defaultMaxCountFlag\r\n\t\t\t echoFlag\r\n\t\t\t @on-uploaded=\"loadShow = false\"\r\n\t\t\t @on-error=\"upError\"\r\n\t\t\t @on-success=\"imageSuccess\"\r\n\t\t\t @on-choose-complete=\"imageComplete\"\r\n\t\t\t :limitType=\"limitTypeList\" \r\n\t\t\t ></u-upload>\r\n\t\t\t <view class=\"number-tips end\" v-if=\"showTipsNumber\">\r\n\t\t\t \t({{value.length}}/{{maxNum}})\r\n\t\t\t </view>\r\n\t\t\t <my-loading :load-show=\"loadShow\" ref=\"auiLoading\" :mask=\"true\"></my-loading>\r\n\t\t</view>\r\n </template>\r\n <script>\r\n\t // import \"common/lixing-pbulic.scss\"\r\n\t export default{\r\n\t\t data(){\r\n\t\t\t return{\r\n\t\t\t\t // 上传数量\r\n\t\t\t\t certificatesNum:\"0\",\r\n\t\t\t\t // 当前图片列表 会在每次上传删除时回调给父组件\r\n\t\t\t\t nowList:[],\r\n\t\t\t\t // 回显图片\r\n\t\t\t\t oldList:[],\r\n\t\t\t\t // 要删除的图片\r\n\t\t\t\t removeList:[],\r\n\t\t\t\t loadShow:false,\r\n\t\t\t\t lists:[],//本次上传成功的本地图片列表用来当作加载中图片回显用\r\n\t\t\t }\r\n\t\t },\r\n\t\t computed:{\r\n\t\t\tactionCompute(){\r\n\t\t\t\tif(!this.action){\r\n\t\t\t\t\treturn 'D:/2024实习'\r\n\t\t\t\t}else{\r\n\t\t\t\t\treturn this.action\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\theaderWithJtiCompute(){\r\n\t\t\t\tif(!this.headerWithJti){\r\n\t\t\t\t\treturn {\r\n\t\t\t\t \"jti\":this.vuex_user.jti // token验证\r\n\t\t\t }\r\n\t\t\t\t}else{\r\n\t\t\t\t\treturn this.headerWithJti\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t },\r\n\t\t props:{\r\n\t\t\t value:{\r\n\t\t\t\ttype: Array,\r\n\t\t\t\tdefault:() => {\r\n\t\t\t\t return []\r\n\t\t\t }\r\n\t\t\t },\r\n\t\t\t width:{\r\n\t\t\t\t type:String,\r\n\t\t\t\t default:'200rpx'\r\n\t\t\t },\r\n\t\t\t height:{\r\n\t\t\t\t type:String,\r\n\t\t\t\t default:'200rpx'\r\n\t\t\t },\r\n\t\t\t // 上传成功后文件id 的 key 回显文件的key\r\n\t\t\t fileId: {\r\n\t\t\t type: String,\r\n\t\t\t default: \"fileId\",\r\n\t\t\t },\r\n\t\t\t // 上传成功后文件path 的 key 回显文件的key\r\n\t\t\t filePath: {\r\n\t\t\t type: String,\r\n\t\t\t default: \"filePath\",\r\n\t\t\t },\r\n\t\t\t thumbnailPath:{\r\n\t\t\t\t type: String,\r\n\t\t\t\t default: \"thumbnailPath\",\r\n\t\t\t },\r\n\t\t\t // 是否可删除\r\n\t\t\t delIcon:{\r\n\t\t\t\t type:Boolean,\r\n\t\t\t\t default:true\r\n\t\t\t },\r\n\t\t\t // 上传成功是否显示sort值\r\n\t\t\t sortFlag:{\r\n\t\t\t\t type:Boolean,\r\n\t\t\t\t default:true\r\n\t\t\t },\r\n\t\t\t // 是否需要缩略图\r\n\t\t\t thumbnailFlag:{\r\n\t\t\t\t type:Boolean,\r\n\t\t\t\t default:false\r\n\t\t\t },\r\n\t\t\t loadSrc:{\r\n\t\t\t\t type:String,\r\n\t\t\t\t default:\"http://file.hecrab.com/crab-net/yxs-loading.gif\"\r\n\t\t\t },\r\n\t\t\t // 上传文件的接口\r\n\t\t\t action:{\r\n\t\t\t\t type:String,\r\n\t\t\t\t default:''\r\n\t\t\t },\r\n\t\t\t // 最大尺寸\r\n\t\t\t maxSize:{\r\n\t\t\t\t type:[String,Number],\r\n\t\t\t\t default: '5' //'5 * 1024 * 1024'\r\n\t\t\t },\r\n\t\t\t // 最大数量\r\n\t\t\t maxNum:{\r\n\t\t\t\t type:[String,Number],\r\n\t\t\t\t default:'1'\r\n\t\t\t },\r\n\t\t\t // 请求后端字段头\r\n\t\t\t upHeaderFild:{\r\n\t\t\t\t type:String,\r\n\t\t\t\t default:'multipartFile'\r\n\t\t\t },\r\n\t\t\t // 回显图片列表\r\n\t\t\t echoPicList:{\r\n\t\t\t\t type:Array,\r\n\t\t\t\t default:()=>{\r\n\t\t\t\t\t return []\r\n\t\t\t\t }\r\n\t\t\t },\r\n\t\t\t // 请求头\r\n\t\t\t headerWithJti:{\r\n\t\t\t\t type:Object,\r\n\t\t\t\t default:()=>{\r\n\t\t\t\t\t return null\r\n\t\t\t\t }\r\n\t\t\t },\r\n\t\t\t // 是否显示进度条\r\n\t\t\t showProgress:{\r\n\t\t\t\t type:Boolean,\r\n\t\t\t\t default:true\r\n\t\t\t },\r\n\t\t\t // 限制文件类型\r\n\t\t\t limitTypeList:{\r\n\t\t\t\t type:Array,\r\n\t\t\t\t default:()=>{\r\n\t\t\t\t\t return ['png', 'jpg', 'jpeg']\r\n\t\t\t\t }\r\n\t\t\t },\r\n\t\t\t // 是否显示上传数量限制\r\n\t\t\t showTipsNumber:{\r\n\t\t\t\t type:Boolean,\r\n\t\t\t\t default:true\r\n\t\t\t },\r\n\t\t\t oneNumberStyle:{\r\n\t\t\t\ttype:Boolean,\r\n\t\t\t\tdefault:false\r\n\t\t\t },\r\n\t\t\t // 上传区域的提示文字\r\n\t\t\t uploadText: {\r\n\t\t\t \ttype: String,\r\n\t\t\t \tdefault: '选择图片'\r\n\t\t\t },\r\n\t\t },\r\n\t\t methods:{\r\n\t\t\t upload(){\r\n\t\t\t\t this.$refs.uUpload.upload()\r\n\t\t\t },\r\n\t\t\t // 删除图片事件\r\n\t\t\tdeleteItem(item, index){\r\n\t\t\t\tuni.showModal({\r\n\t\t\t\t\ttitle:\"提示\",\r\n\t\t\t\t\tcontent:\"您确定要删除此项吗\",\r\n\t\t\t\t\tsuccess:res=>{\r\n\t\t\t\t\t\tif(res.confirm){\r\n\t\t\t\t\t\t\tlet list = JSON.parse(JSON.stringify(this.value))\r\n\t\t\t\t\t\t\tlist.splice(index , 1);\r\n\t\t\t\t\t\t\tthis.$emit('input', list)\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\r\n\t\t\t},\r\n\t\t\t // 上传成功\r\n\t\t\timageSuccess(res, index, file, name) {\r\n\t\t\t\tif(!res.flag){\r\n\t\t\t\t\t// this.loadShow = false\r\n\t\t\t\t\treturn this.myError(res.msg);\r\n\t\t\t\t}\r\n\t\t\t\tif(this.value.length >= this.maxNum) return this.$u.toast(\"超出上传图片数量!\")\r\n\t\t\t\tlet successImg = {\r\n\t\t\t\t [this.fileId]: res.data.id,\r\n\t\t\t\t [this.filePath]: res.data.fullPath,\r\n\t\t\t\t}\r\n\t\t\t\tif(this.sortFlag)successImg.sort = this.value.length\r\n\t\t\t\tif(this.thumbnailFlag){\r\n\t\t\t\t successImg[this.thumbnailPath] = res.data.thumbnailPath\r\n\t\t\t\t}\r\n\t\t\t\tlet list = JSON.parse(JSON.stringify(this.value))\r\n\t\t\t\tlist.push(successImg)\r\n\t\t\t\tthis.$emit('input', list)\r\n\t\t\t\t// this.loadShow = false\r\n\t\t\t\tthis.$emit(\"okCallBack\" , list);\r\n\t\t\t\tthis.lists = file\r\n\t\t\t\tconsole.log(file)\r\n\r\n\t\t\t},\r\n\t\t\timageComplete(){\r\n\t\t\t\tthis.removeList=[]\r\n\t\t\t\tthis.loadShow = true\r\n\t\t\t},\r\n\t\t\timageClick(item,index){\r\n\t\t\t\tlet list = this.value.map((item) => {\r\n\t\t\t\t\treturn item[this.filePath]\r\n\t\t\t\t});\r\n\t\t\t\tuni.previewImage({\r\n\t\t\t\t\turls: list,\r\n\t\t\t\t\tcurrent:index\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\t// 抛错\r\n\t\t\tupError(res, index, lists, name){\r\n\t\t\t\tthis.loadShow = false\r\n\t\t\t\t// this.$u.toast(res)\r\n\t\t\t},\r\n\t\t\t// 如果找到了本地图片路径用本地路径加载图片 否则用默认加载中图片\r\n\t\t\tloadSrcFn(path){\r\n\t\t\t\tlet index = this.lists.findIndex(item=>{\r\n\t\t\t\t\treturn item.response && item.response.data && item.response.data.fullPath == path \r\n\t\t\t\t})\r\n\t\t\t\treturn index > -1 ? this.lists[index].url || this.loadSrc : this.loadSrc\r\n\t\t\t}\r\n\t\t }\r\n\t }\r\n </script>\r\n \r\n<style lang=\"scss\" scoped>\r\n.number-tips{\r\n\tfont-size: 28rpx;\r\n\tcolor: #999999;\r\n\ttext-align: right;\r\n}\r\n.del-icon{\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tright: 0;\r\n\twidth: 34rpx;\r\n\theight: 34rpx;\r\n\tbackground-color: #fa3534;\r\n\tdisplay: flex;\r\n\tjustify-content: center;\r\n\talign-items: center;\r\n\tborder-radius: 50%;\r\n}\r\n.agreementImage{\r\n\tdisplay: flex;\r\n\t.end{\r\n\t\tdisplay: flex;\r\n\t\talign-items: flex-end;\r\n\t\tflex: 1;\r\n\t\tjustify-content: flex-end;\r\n\t}\r\n}\r\n</style>\r\n","import mod from \"-!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./file-upload.vue?vue&type=style&index=0&id=520d372c&lang=scss&scoped=true&\"; export default mod; export * from \"-!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./file-upload.vue?vue&type=style&index=0&id=520d372c&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1722327078289\n var cssReload = require(\"E:/HBuilderX/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":""}