1 |
- {"version":3,"sources":["webpack:///./src/components/module/contribute/contribute-info.vue","webpack:///src/components/module/contribute/contribute-info.vue","webpack:///./src/components/module/contribute/contribute-info.vue?19e8","webpack:///./src/components/module/contribute/contribute-info.vue?3ac9","webpack:///./src/components/module/contribute/contribute-tab.vue","webpack:///src/components/module/contribute/contribute-tab.vue","webpack:///./src/components/module/contribute/contribute-tab.vue?efcc","webpack:///./src/components/module/contribute/contribute-tab.vue?618e","webpack:///./src/assets/icon/success.png","webpack:///./src/assets/icon/yunshangchuan.png","webpack:///./src/components/module/contribute/contribute-upload.vue","webpack:///src/components/module/contribute/contribute-upload.vue","webpack:///./src/components/module/contribute/contribute-upload.vue?7d39","webpack:///./src/components/module/contribute/contribute-upload.vue?3e3c","webpack:///./node_modules/core-js/modules/_string-trim.js","webpack:///./src/components/module/contribute/contribute-tab.vue?f463","webpack:///./node_modules/core-js/modules/es6.number.constructor.js","webpack:///./src/components/module/contribute/contribute-info.vue?ce77","webpack:///./src/assets/icon/del_white.png","webpack:///./src/components/module/contribute/contribute-upload.vue?e38c","webpack:///./node_modules/core-js/modules/_string-ws.js"],"names":["render","_vm","this","_c","_self","staticClass","attrs","icon","_v","_s","params","title","file_path","split","length","on","$event","$emit","showFileIcon","fileIcon","_m","_e","directives","name","rawName","value","expression","domProps","target","composing","$set","_l","tagsList","tag","tag_index","key","require","delTag","tagValue","type","indexOf","_k","keyCode","addTag","apply","arguments","desc","staticRenderFns","props","Object","String","Boolean","default","data","computed","fileType","getFileType","getFileIcon","concat","methods","push","label","join","index","splice","uploadImage","config","_this","uploadFile","file","then","_ref","cover","component","tabList","item","class","select","current","_","$router","Number","module","exports","ref","httpRequest","accept","tipValue","btnValue","maskShow","percentage","Function","required","$export","defined","fails","spaces","space","non","ltrim","RegExp","rtrim","exporter","KEY","exec","ALIAS","exp","FORCE","fn","trim","P","F","string","TYPE","replace","global","has","cof","inheritIfRequired","toPrimitive","gOPN","f","gOPD","dP","$trim","NUMBER","$Number","Base","proto","prototype","BROKEN_COF","TRIM","toNumber","argument","it","third","radix","maxCode","first","charCodeAt","NaN","code","digits","slice","i","l","parseInt","that","valueOf","call","keys","j","constructor"],"mappings":"iNAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,mBAAmB,CAACF,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,MAAM,CAACE,YAAY,OAAOC,MAAM,CAAC,IAAML,EAAIM,KAAK,IAAM,MAAMJ,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACJ,EAAIO,GAAG,aAAaP,EAAIQ,GAAGR,EAAIS,OAAOC,OAAO,IAAIV,EAAIQ,GAAGR,EAAIS,OAAOT,EAAIW,WACpUX,EAAIS,OAAOT,EAAIW,WAAWC,MAAM,KAC9BZ,EAAIS,OAAOT,EAAIW,WAAWC,MAAM,KAAKC,OAAS,GAEhD,IAAI,gBAAgBX,EAAG,MAAM,CAACE,YAAY,QAAQU,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOf,EAAIgB,MAAM,kBAAkB,CAAChB,EAAIO,GAAG,YAAaP,EAAIiB,aAAcf,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,MAAM,CAACE,YAAY,SAAS,CAACJ,EAAIO,GAAG,UAAUL,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,MAAM,CAACE,YAAY,qBAAqB,CAACF,EAAG,MAAM,CAACE,YAAY,qBAAqB,CAACF,EAAG,MAAM,CAACE,YAAY,gBAAgBC,MAAM,CAAC,IAAML,EAAIkB,cAAclB,EAAImB,GAAG,SAASnB,EAAIoB,KAAKlB,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,MAAM,CAACE,YAAY,SAAS,CAACJ,EAAIO,GAAG,UAAUL,EAAG,QAAQ,CAACmB,WAAW,CAAC,CAACC,KAAK,Q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AAQC,K,kCCnEzC,W,mBCAA5C,EAAOC,QAAU,soC,kCCAjB,W,mBCAAD,EAAOC,QAAU","file":"js/chunk-b1855c92.4435d748.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"contribute-info\"},[_c('div',{staticClass:\"header\"},[_c('div',{staticClass:\"left\"},[_c('img',{staticClass:\"icon\",attrs:{\"src\":_vm.icon,\"alt\":\"\"}}),_c('div',{staticClass:\"name\"},[_vm._v(\"\\n \"+_vm._s(_vm.params.title)+\".\"+_vm._s(_vm.params[_vm.file_path]\n ? _vm.params[_vm.file_path].split(\".\")[\n _vm.params[_vm.file_path].split(\".\").length - 1\n ]\n : \"\")+\"\\n \")])]),_c('div',{staticClass:\"again\",on:{\"click\":function($event){return _vm.$emit('handleAgain')}}},[_vm._v(\"重新上传\")])]),(_vm.showFileIcon)?_c('div',{staticClass:\"item\"},[_c('div',{staticClass:\"label\"},[_vm._v(\"*文件:\")]),_c('div',{staticClass:\"file-icon\"},[_c('div',{staticClass:\"file-icon-content\"},[_c('div',{staticClass:\"file-icon-img-box\"},[_c('img',{staticClass:\"file-icon-img\",attrs:{\"src\":_vm.fileIcon}})]),_vm._m(0)])])]):_vm._e(),_c('div',{staticClass:\"item\"},[_c('div',{staticClass:\"label\"},[_vm._v(\"*标题:\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.params.title),expression:\"params.title\"}],staticClass:\"title\",domProps:{\"value\":(_vm.params.title)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.params, \"title\", $event.target.value)}}})]),_c('div',{staticClass:\"item\"},[_c('div',{staticClass:\"label\"},[_vm._v(\"*标签:\")]),_c('div',{staticClass:\"tags-box\"},[_vm._l((_vm.tagsList),function(tag,tag_index){return _c('div',{key:tag_index,staticClass:\"tag\"},[_c('span',[_vm._v(_vm._s(tag))]),_c('img',{staticClass:\"icon\",attrs:{\"src\":require(\"@/assets/icon/del_white.png\")},on:{\"click\":function($event){return _vm.delTag(tag_index)}}})])}),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.tagValue),expression:\"tagValue\"},{name:\"show\",rawName:\"v-show\",value:(_vm.tagsList.length != 20),expression:\"tagsList.length != 20\"}],staticClass:\"entry\",attrs:{\"type\":\"text\",\"placeholder\":\"按回车键Enter创建标签\"},domProps:{\"value\":(_vm.tagValue)},on:{\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.addTag.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_vm.tagValue=$event.target.value}}}),_c('div',{staticClass:\"tips\"},[_vm._v(\"还可以添加\"+_vm._s(20 - _vm.tagsList.length)+\"个标签\")])],2)]),_c('div',{staticClass:\"item\"},[_c('div',{staticClass:\"label\"},[_vm._v(\"简介:\")]),_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.params.desc),expression:\"params.desc\"}],staticClass:\"desc\",attrs:{\"placeholder\":\"填写更全面的信息,让更多人看到你吧!\"},domProps:{\"value\":(_vm.params.desc)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.params, \"desc\", $event.target.value)}}})]),_c('div',{staticClass:\"item\"},[_c('div',{staticClass:\"label\"}),_c('div',{staticClass:\"btn-box\"},[_c('div',{staticClass:\"btn confirm\",on:{\"click\":function($event){return _vm.$emit('confirm')}}},[_vm._v(\"立即投稿\")]),_c('div',{staticClass:\"btn cancel\",on:{\"click\":function($event){return _vm.$emit('cancel')}}},[_vm._v(\"取消\")])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"file-icon-tips\"},[_c('span',[_vm._v(\"支持pdf、word、压缩文件等多种格式,单个文件最大支持20MB\")])])\n}]\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"contribute-info\">\r\n <div class=\"header\">\r\n <div class=\"left\">\r\n <img class=\"icon\" :src=\"icon\" alt=\"\" />\r\n <div class=\"name\">\r\n {{ params.title }}.{{\r\n params[file_path]\r\n ? params[file_path].split(\".\")[\r\n params[file_path].split(\".\").length - 1\r\n ]\r\n : \"\"\r\n }}\r\n </div>\r\n </div>\r\n <div class=\"again\" @click=\"$emit('handleAgain')\">重新上传</div>\r\n </div>\r\n <!-- <div class=\"item\">\r\n <div class=\"label\">*封面:</div>\r\n <div class=\"cover\">\r\n <el-upload\r\n class=\"cover-upload\"\r\n action=\"-\"\r\n ref=\"upload\"\r\n :show-file-list=\"false\"\r\n :http-request=\"uploadImage\"\r\n >\r\n <div class=\"cover-content\">\r\n <div class=\"cover-img-box\" v-if=\"params.cover\">\r\n <img class=\"cover-img\" :src=\"params.cover\" />\r\n <div class=\"change-cover\">更改封面</div>\r\n </div>\r\n <div class=\"cover-upload\" v-else>\r\n <i class=\"el-icon-plus avatar-uploader-icon\"></i>\r\n </div>\r\n <div class=\"cover-tips\">\r\n <span>支持jpg、jpeg、png等多种格式,单张图片最大支持20MB</span>\r\n </div>\r\n </div>\r\n </el-upload>\r\n </div>\r\n </div> -->\r\n <div class=\"item\" v-if=\"showFileIcon\">\r\n <div class=\"label\">*文件:</div>\r\n <div class=\"file-icon\">\r\n <div class=\"file-icon-content\">\r\n <div class=\"file-icon-img-box\">\r\n <img class=\"file-icon-img\" :src=\"fileIcon\" />\r\n </div>\r\n <div class=\"file-icon-tips\">\r\n <span>支持pdf、word、压缩文件等多种格式,单个文件最大支持20MB</span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"item\">\r\n <div class=\"label\">*标题:</div>\r\n <input class=\"title\" v-model=\"params.title\" />\r\n </div>\r\n <div class=\"item\">\r\n <div class=\"label\">*标签:</div>\r\n <div class=\"tags-box\">\r\n <div class=\"tag\" v-for=\"(tag, tag_index) in tagsList\" :key=\"tag_index\">\r\n <span>{{ tag }}</span>\r\n <img\r\n class=\"icon\"\r\n src=\"@/assets/icon/del_white.png\"\r\n @click=\"delTag(tag_index)\"\r\n />\r\n </div>\r\n <input\r\n type=\"text\"\r\n class=\"entry\"\r\n placeholder=\"按回车键Enter创建标签\"\r\n v-model=\"tagValue\"\r\n v-show=\"tagsList.length != 20\"\r\n @keydown.enter=\"addTag\"\r\n />\r\n <div class=\"tips\">还可以添加{{ 20 - tagsList.length }}个标签</div>\r\n </div>\r\n </div>\r\n <div class=\"item\">\r\n <div class=\"label\">简介:</div>\r\n <textarea\r\n class=\"desc\"\r\n v-model=\"params.desc\"\r\n placeholder=\"填写更全面的信息,让更多人看到你吧!\"\r\n ></textarea>\r\n </div>\r\n <div class=\"item\">\r\n <div class=\"label\"></div>\r\n <div class=\"btn-box\">\r\n <div class=\"btn confirm\" @click=\"$emit('confirm')\">立即投稿</div>\r\n <div class=\"btn cancel\" @click=\"$emit('cancel')\">取消</div>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { getFileIcon, getFileType } from \"@/common/util\";\r\nimport { uploadFile } from \"@/common/service\";\r\nexport default {\r\n name: \"ContributeInfo\",\r\n props: {\r\n // 参数信息\r\n params: {\r\n type: Object,\r\n },\r\n // 图标\r\n icon: {\r\n type: String,\r\n },\r\n // 文件路径字段\r\n file_path: {\r\n type: String,\r\n },\r\n // 显示文件类型\r\n showFileIcon: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n },\r\n data() {\r\n return {\r\n // 标签列表\r\n tagsList: [],\r\n // 标签内容\r\n tagValue: \"\",\r\n };\r\n },\r\n computed: {\r\n fileType() {\r\n return getFileType(this.params[this.file_path] || \"\");\r\n },\r\n fileIcon() {\r\n return getFileIcon(`${this.fileType}_refer`);\r\n },\r\n },\r\n methods: {\r\n // 添加标签\r\n addTag() {\r\n if (!this.tagValue || this.tagsList.length == 20) return;\r\n this.tagsList.push(this.tagValue);\r\n this.params.label = this.tagsList.join(\",\");\r\n this.tagValue = \"\";\r\n },\r\n // 删除标签\r\n delTag(index) {\r\n this.tagsList.splice(index, 1);\r\n this.params.label = this.tagsList.join(\",\");\r\n },\r\n // 上传图片\r\n uploadImage(config) {\r\n uploadFile(config.file).then(({ data }) => {\r\n this.params.cover = data;\r\n });\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.contribute-info {\r\n .header {\r\n width: calc(100% - 40px);\r\n height: 70px;\r\n background: #0054f7;\r\n border-radius: 10px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n padding: 0 20px;\r\n .left {\r\n display: flex;\r\n align-items: center;\r\n .icon {\r\n width: 26px;\r\n height: 23px;\r\n }\r\n .name {\r\n font-size: 16px;\r\n font-weight: 400;\r\n color: #ffffff;\r\n margin-left: 10px;\r\n }\r\n }\r\n .again {\r\n width: 80px;\r\n height: 32px;\r\n text-align: center;\r\n line-height: 32px;\r\n background: #ffffff;\r\n border-radius: 4px;\r\n font-size: 14px;\r\n font-weight: 500;\r\n color: #0054f7;\r\n cursor: pointer;\r\n }\r\n }\r\n .item {\r\n width: 100%;\r\n display: flex;\r\n align-items: flex-start;\r\n margin-top: 20px;\r\n .label {\r\n height: 50px;\r\n width: 80px;\r\n line-height: 50px;\r\n text-align: left;\r\n font-size: 18px;\r\n font-weight: 400;\r\n color: #222222;\r\n }\r\n .cover {\r\n height: 200px;\r\n width: calc(100% - 100px);\r\n margin-top: 14px;\r\n > .cover-upload {\r\n width: 100%;\r\n height: 100%;\r\n }\r\n .cover-content {\r\n width: 100%;\r\n height: 100%;\r\n display: flex;\r\n .cover-upload {\r\n width: 360px;\r\n height: 200px;\r\n border: 1px dashed #868686;\r\n border-radius: 10px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n font-size: 40px;\r\n }\r\n .cover-upload:hover {\r\n }\r\n .cover-img-box {\r\n width: 360px;\r\n height: 200px;\r\n position: relative;\r\n .cover-img {\r\n width: 100%;\r\n height: 100%;\r\n border-radius: 8px;\r\n }\r\n .change-cover {\r\n width: 100%;\r\n height: 40px;\r\n text-align: center;\r\n line-height: 40px;\r\n background: rgba(0, 0, 0, 0.4);\r\n border-radius: 0px 0px 8px 8px;\r\n font-size: 14px;\r\n font-weight: 400;\r\n color: #ffffff;\r\n position: absolute;\r\n left: 0;\r\n bottom: 0;\r\n }\r\n }\r\n .cover-tips {\r\n height: 200px;\r\n width: 240px;\r\n font-size: 14px;\r\n font-weight: 400;\r\n color: #929292;\r\n text-align: left;\r\n margin-left: 15px;\r\n display: flex;\r\n align-items: flex-end;\r\n user-select: none;\r\n }\r\n }\r\n }\r\n .file-icon {\r\n height: 200px;\r\n width: calc(100% - 100px);\r\n margin-top: 14px;\r\n .file-icon-content {\r\n width: 100%;\r\n height: 100%;\r\n display: flex;\r\n .file-icon-img-box {\r\n width: 200pxpx;\r\n height: 200px;\r\n position: relative;\r\n .file-icon-img {\r\n width: 100%;\r\n height: 100%;\r\n border-radius: 8px;\r\n }\r\n }\r\n .file-icon-tips {\r\n height: 200px;\r\n width: 240px;\r\n font-size: 14px;\r\n font-weight: 400;\r\n color: #929292;\r\n text-align: left;\r\n margin-left: 15px;\r\n display: flex;\r\n align-items: flex-end;\r\n user-select: none;\r\n }\r\n }\r\n }\r\n .title {\r\n width: calc(100% - 95px);\r\n height: 50px;\r\n border-radius: 6px;\r\n border: 1px solid #cccccc;\r\n padding: 0 15px;\r\n box-sizing: border-box;\r\n font-size: 16px;\r\n font-weight: 400;\r\n color: #222222;\r\n outline: none;\r\n }\r\n .tags-box {\r\n width: calc(100% - 95px);\r\n min-height: 40px;\r\n border-radius: 6px;\r\n border: 1px solid #cccccc;\r\n padding: 5px 15px;\r\n box-sizing: border-box;\r\n display: flex;\r\n align-items: center;\r\n flex-wrap: wrap;\r\n position: relative;\r\n .tag {\r\n display: flex;\r\n align-items: center;\r\n height: 35px;\r\n padding: 5px 15px;\r\n box-sizing: border-box;\r\n background: #0054f7;\r\n border-radius: 4px;\r\n margin: 3.5px 10px 3.5px 0;\r\n span {\r\n font-size: 14px;\r\n font-weight: 400;\r\n color: #ffffff;\r\n }\r\n .icon {\r\n width: 14px;\r\n height: 14px;\r\n margin-left: 5px;\r\n }\r\n }\r\n\r\n .entry {\r\n border: none;\r\n outline: none;\r\n height: 40px;\r\n width: 40%;\r\n min-width: 300px;\r\n max-width: 600px;\r\n font-size: 16px;\r\n font-weight: 400;\r\n color: #222222;\r\n }\r\n .entry::placeholder {\r\n font-size: 16px;\r\n font-weight: 400;\r\n color: rgba(34, 34, 34, 0.3);\r\n }\r\n .tips {\r\n height: 40px;\r\n font-size: 16px;\r\n font-weight: 400;\r\n color: #222222;\r\n position: absolute;\r\n line-height: 40px;\r\n padding: 1px 0;\r\n right: 15px;\r\n bottom: 5px;\r\n }\r\n }\r\n .desc {\r\n width: calc(100% - 95px);\r\n height: 200px;\r\n border-radius: 6px;\r\n border: 1px solid #cccccc;\r\n padding: 15px;\r\n box-sizing: border-box;\r\n font-size: 16px;\r\n font-weight: 400;\r\n color: #222222;\r\n outline: none;\r\n resize: none;\r\n }\r\n .desc::placeholder {\r\n font-size: 16px;\r\n font-weight: 400;\r\n color: #c1c1c1;\r\n }\r\n .btn-box {\r\n display: flex;\r\n .btn {\r\n width: 120px;\r\n height: 48px;\r\n text-align: center;\r\n line-height: 48px;\r\n border-radius: 6px;\r\n font-size: 17px;\r\n font-weight: 400;\r\n border: 1px solid transparent;\r\n cursor: pointer;\r\n }\r\n .confirm {\r\n background: #0054f7;\r\n color: #ffffff;\r\n }\r\n .cancel {\r\n border: 1px solid #979797;\r\n color: #131415;\r\n margin-left: 30px;\r\n }\r\n }\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./contribute-info.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./contribute-info.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./contribute-info.vue?vue&type=template&id=30ad7116&scoped=true&\"\nimport script from \"./contribute-info.vue?vue&type=script&lang=js&\"\nexport * from \"./contribute-info.vue?vue&type=script&lang=js&\"\nimport style0 from \"./contribute-info.vue?vue&type=style&index=0&id=30ad7116&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"30ad7116\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"contribute-tab\"},_vm._l((_vm.tabList),function(item,index){return _c('div',{staticClass:\"tab-item\",class:{ select: index == _vm.current },on:{\"click\":(_) => {\n !index ? _vm.$emit('changeTab', index) : _vm.$router.push('contact-online');\n }}},[_vm._v(\"\\n \"+_vm._s(item.name)+\"\\n \")])}),0)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"contribute-tab\">\r\n <div\r\n class=\"tab-item\"\r\n v-for=\"(item, index) in tabList\"\r\n :class=\"{ select: index == current }\"\r\n @click=\"\r\n (_) => {\r\n !index ? $emit('changeTab', index) : $router.push('contact-online');\r\n }\r\n \"\r\n >\r\n {{ item.name }}\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: \"ContributeTab\",\r\n props: {\r\n current: {\r\n type: Number,\r\n default: 0,\r\n },\r\n },\r\n data() {\r\n return {\r\n tabList: [{ name: \"无偿投稿\" }, { name: \"有偿投稿\" }],\r\n };\r\n },\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.contribute-tab {\r\n width: 100%;\r\n height: 50px;\r\n border-bottom: 1px solid rgba(151, 151, 151, 0.2);\r\n display: flex;\r\n justify-content: flex-start;\r\n align-items: center;\r\n .tab-item {\r\n font-size: 22px;\r\n font-weight: 400;\r\n color: #555555;\r\n user-select: none;\r\n box-sizing: border-box;\r\n height: 50px;\r\n line-height: 50px;\r\n }\r\n .tab-item:nth-child(2) {\r\n margin-left: 5%;\r\n }\r\n .select {\r\n color: #0054f7;\r\n border-bottom: 5px solid #0054f7;\r\n transition: 0.1s all;\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./contribute-tab.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./contribute-tab.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./contribute-tab.vue?vue&type=template&id=11e1fca0&scoped=true&\"\nimport script from \"./contribute-tab.vue?vue&type=script&lang=js&\"\nexport * from \"./contribute-tab.vue?vue&type=script&lang=js&\"\nimport style0 from \"./contribute-tab.vue?vue&type=style&index=0&id=11e1fca0&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"11e1fca0\",\n null\n \n)\n\nexport default component.exports","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAYAAAAdHLWhAAAAAXNSR0IArs4c6QAADZtJREFUeF7tXX10FNUV/73Z2dkJJLaKp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1fqwCJb0SFL8KVv4GSjGAYtcU8WARnwSLQH2L9crH2AGKuwBqTA2LBQe9DqCjHC9JwF4ZgCwDyNJkxS7sBiR+/PRtcclWWkYFbAv2QogOBKEDAfS1PId3JFc13gYlGyCSDejqrUtUP8FpUNwrQYk4wZyDJNQLCHUDSBdo6AJE/trrZ0QhLHvkLgDbIWA7QLcD4qegYp3Z+tpOAuZOCTLCAQZeDvKgBvJAhdyoAUtrgCTX4xDqMwGEZMvNfICMgJmBbbMAuRy0LEBZgFzOAZeT9z/C376lwgux6QAAAABJRU5ErkJggg==\"","module.exports = __webpack_public_path__ + \"img/yunshangchuan.04bc9d18.png\";","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"contribute-upload\"},[_c('el-upload',{ref:\"upload\",staticClass:\"upload-body\",attrs:{\"drag\":\"\",\"action\":\"-\",\"show-file-list\":false,\"http-request\":_vm.httpRequest,\"accept\":_vm.accept}},[_c('div',{staticClass:\"upload-content\"},[_c('img',{staticClass:\"icon\",attrs:{\"src\":require(\"@/assets/icon/yunshangchuan.png\"),\"alt\":\"\"}}),_c('div',{staticClass:\"info\"},[_vm._v(_vm._s(_vm.tipValue))]),_c('div',{staticClass:\"btn\"},[_vm._v(_vm._s(_vm.btnValue))])])]),(_vm.maskShow)?_c('div',{staticClass:\"mask\"},[_c('el-progress',{attrs:{\"type\":\"circle\",\"percentage\":_vm.percentage}})],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"contribute-upload\">\r\n <el-upload\r\n drag\r\n class=\"upload-body\"\r\n action=\"-\"\r\n ref=\"upload\"\r\n :show-file-list=\"false\"\r\n :http-request=\"httpRequest\"\r\n :accept=\"accept\"\r\n >\r\n <div class=\"upload-content\">\r\n <img class=\"icon\" src=\"@/assets/icon/yunshangchuan.png\" alt=\"\" />\r\n <div class=\"info\">{{ tipValue }}</div>\r\n <div class=\"btn\">{{ btnValue }}</div>\r\n </div>\r\n </el-upload>\r\n <div class=\"mask\" v-if=\"maskShow\">\r\n <el-progress type=\"circle\" :percentage=\"percentage\"></el-progress>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name:'ContributeUpload',\r\n props: {\r\n // 文件类型过滤\r\n accept: {\r\n type: String,\r\n default: \"\",\r\n },\r\n // 文件上传\r\n httpRequest: {\r\n type: Function,\r\n required: true,\r\n },\r\n // 按钮文本\r\n btnValue: {\r\n type: String,\r\n default: \"\",\r\n },\r\n // 提醒文本\r\n tipValue: {\r\n type: String,\r\n default: \"\",\r\n },\r\n // 遮罩状态-\r\n maskShow: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n // 上传进度\r\n percentage: {\r\n type: Number,\r\n default: 0,\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.contribute-upload {\r\n width: 100%;\r\n position: relative;\r\n user-select: none;\r\n ::v-deep .el-upload {\r\n width: 800px;\r\n height: 430px;\r\n }\r\n ::v-deep .el-upload-dragger {\r\n width: 100%;\r\n height: calc(100% - 2px);\r\n border-radius: 20px;\r\n border: 1px dashed #868686;\r\n cursor: auto;\r\n }\r\n // ::v-deep .el-upload-dragger:hover {\r\n // border: 1px dashed #0054f7;\r\n // }\r\n\r\n .upload-body {\r\n width: 100%;\r\n display: flex;\r\n justify-content: center;\r\n margin: 60px 0;\r\n }\r\n .upload-content {\r\n height: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n .icon {\r\n width: 160px;\r\n height: 160px;\r\n }\r\n .info {\r\n font-size: 15px;\r\n font-weight: 400;\r\n color: #222222;\r\n margin: 0px 0 30px;\r\n }\r\n .btn {\r\n width: 130px;\r\n height: 40px;\r\n text-align: center;\r\n line-height: 40px;\r\n background: #0054f7;\r\n border-radius: 32px;\r\n font-size: 16px;\r\n font-weight: 500;\r\n color: #ffffff;\r\n cursor: pointer;\r\n }\r\n }\r\n .mask {\r\n width: 800px;\r\n height: 430px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n position: absolute;\r\n left: calc(50% - 400px);\r\n top: 0;\r\n z-index: 15;\r\n background: rgba(0,0,0,.8);\r\n border-radius: 20px;\r\n margin-top: 60px;\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./contribute-upload.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./contribute-upload.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./contribute-upload.vue?vue&type=template&id=4a70bb2a&scoped=true&\"\nimport script from \"./contribute-upload.vue?vue&type=script&lang=js&\"\nexport * from \"./contribute-upload.vue?vue&type=script&lang=js&\"\nimport style0 from \"./contribute-upload.vue?vue&type=style&index=0&id=4a70bb2a&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4a70bb2a\",\n null\n \n)\n\nexport default component.exports","var $export = require('./_export');\nvar defined = require('./_defined');\nvar fails = require('./_fails');\nvar spaces = require('./_string-ws');\nvar space = '[' + spaces + ']';\nvar non = '\\u200b\\u0085';\nvar ltrim = RegExp('^' + space + space + '*');\nvar rtrim = RegExp(space + space + '*$');\n\nvar exporter = function (KEY, exec, ALIAS) {\n var exp = {};\n var FORCE = fails(function () {\n return !!spaces[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];\n if (ALIAS) exp[ALIAS] = fn;\n $export($export.P + $export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function (string, TYPE) {\n string = String(defined(string));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = exporter;\n","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./contribute-tab.vue?vue&type=style&index=0&id=11e1fca0&prod&lang=scss&scoped=true&\"","'use strict';\nvar global = require('./_global');\nvar has = require('./_has');\nvar cof = require('./_cof');\nvar inheritIfRequired = require('./_inherit-if-required');\nvar toPrimitive = require('./_to-primitive');\nvar fails = require('./_fails');\nvar gOPN = require('./_object-gopn').f;\nvar gOPD = require('./_object-gopd').f;\nvar dP = require('./_object-dp').f;\nvar $trim = require('./_string-trim').trim;\nvar NUMBER = 'Number';\nvar $Number = global[NUMBER];\nvar Base = $Number;\nvar proto = $Number.prototype;\n// Opera ~12 has broken Object#toString\nvar BROKEN_COF = cof(require('./_object-create')(proto)) == NUMBER;\nvar TRIM = 'trim' in String.prototype;\n\n// 7.1.3 ToNumber(argument)\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, false);\n if (typeof it == 'string' && it.length > 2) {\n it = TRIM ? it.trim() : $trim(it, 3);\n var first = it.charCodeAt(0);\n var third, radix, maxCode;\n if (first === 43 || first === 45) {\n third = it.charCodeAt(2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (it.charCodeAt(1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i\n default: return +it;\n }\n for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {\n code = digits.charCodeAt(i);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nif (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {\n $Number = function Number(value) {\n var it = arguments.length < 1 ? 0 : value;\n var that = this;\n return that instanceof $Number\n // check on 1..constructor(foo) case\n && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)\n ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);\n };\n for (var keys = require('./_descriptors') ? gOPN(Base) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES6 (in case, if modules with ES6 Number statics required before):\n 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +\n 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (has(Base, key = keys[j]) && !has($Number, key)) {\n dP($Number, key, gOPD(Base, key));\n }\n }\n $Number.prototype = proto;\n proto.constructor = $Number;\n require('./_redefine')(global, NUMBER, $Number);\n}\n","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./contribute-info.vue?vue&type=style&index=0&id=30ad7116&prod&lang=scss&scoped=true&\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAwtJREFUWEfNmM9PE1EQx7/T7QKBlEC7e+Biol408QASIVHCyejBs0biXSVR459iIok/zhKNdw4aTwRNgFS4GDhoTLxAsq+F0EAs23bMLF2zlHb37bZN2uO+eTOfvpl582YIMX/7+/vnXde9TUQzAC4z8zkAmbqaEhH9AbDFzCumaX4aGRn5HccE6Qgzc0opdQ/AEwDXAWjtA8AAvgFYsCzrIxHVouxFKlZK3WTmlwAuRSkLWyeiLQDPLMv6EirXapGZB4rF4gtmfsjMkeA6sETERPQ2m80+J6K/zfY0NbSzs2On0+klANd0DCWQWa9UKnfGxsacxr1ngATGNM1lZm7LRVGQRLTtuu5sI9QpIHFToVAQmG6dTCPnumVZs0H3nQIqFAqva7Xao6h/18n1VCr1JpfLPfZ1/geSbALwuVMBrAstgQ7glp99HlD9nvnRbmrrQpwJZKKtXC53Re4pD6hYLN6vVqvvkyrsxD7DMOay2ewHD8hxnBUAN6IU5/N5uK6LiYkJ9Pf3h4qXy2VsbGzANE1MTk5GqZb1r7Ztz9Du7u4FwzB+6pSDtbU1HBwcYHBw0DPSCkpgBP7o6AjDw8OYmprSAWLTNC+S4zgS4a90dhwfH3uGDg8PW0IFYYaGhjzwvr4+HfUiM09KqXfM/EB3RxhUmzAgokUByjPzVV0gkWsGJd99NyU4Gc88EX0Xl0k9seIANYOSbxIzSWHq9pUASdUNT5kWtMGTEpE2YURFuS2gYMyItqjs0/CCB5TIZUEYAfFd1iaUShTUjTD+xecHdVIoL6jjpn0zGP+CDFvTcNdJ2se5GHUM6siEwM1Tva35pVM6VldXUSqVIoM3CJXJZDA9Pa1zQCelI25xrVQqGB8f1yqum5ubSKfT8YqrAPXC8wPAnG3bJ8+PnnugCVRPPWH9iOupR37ddQNKqeUuNoiN2RbeBol0TzWKPn4daqlbDSMRrbuuq9dK+1A9NWwIOrpT4xgA20T0NPE4JgjFzMbe3t7darWaaGBlGMbC6OhoZwZWjWnR7ZHeP2HLCzN5PiMhAAAAAElFTkSuQmCC\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./contribute-upload.vue?vue&type=style&index=0&id=4a70bb2a&prod&lang=scss&scoped=true&\"","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n"],"sourceRoot":""}
|