|
@@ -14,6 +14,7 @@
|
|
:max-count="1"
|
|
:max-count="1"
|
|
:size-type="['compressed']"
|
|
:size-type="['compressed']"
|
|
@on-success="getImgUrl"
|
|
@on-success="getImgUrl"
|
|
|
|
+ @on-error="onError"
|
|
@on-remove="onRemove"
|
|
@on-remove="onRemove"
|
|
@on-uploaded="isAdd = true"
|
|
@on-uploaded="isAdd = true"
|
|
:before-upload="filterFileType"
|
|
:before-upload="filterFileType"
|
|
@@ -87,15 +88,15 @@
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
action: this.$uploadUrl,
|
|
action: this.$uploadUrl,
|
|
- maxSize: 2 * 1024 * 1024, //限制文件大小 2M
|
|
|
|
|
|
+ maxSize: 5 * 1024 * 1024, //限制文件大小 2M
|
|
btnLoading: false, //防止重复点击
|
|
btnLoading: false, //防止重复点击
|
|
isAdd: true,
|
|
isAdd: true,
|
|
imgUrls:[],
|
|
imgUrls:[],
|
|
uploadCustom:true,
|
|
uploadCustom:true,
|
|
uploadOptions:{
|
|
uploadOptions:{
|
|
"text":"上传营业执照",
|
|
"text":"上传营业执照",
|
|
- "imgSrc":"../../static/img/authentication/xiangji@3x.png",
|
|
|
|
- "bgc":"../../static/img/authentication/business@3x.png"
|
|
|
|
|
|
+ "imgSrc":"~@/static/img/authentication/xiangji@3x.png",
|
|
|
|
+ "bgc":"~@/static/img/authentication/business@3x.png"
|
|
},
|
|
},
|
|
tupian: "",
|
|
tupian: "",
|
|
inputContent: null,
|
|
inputContent: null,
|
|
@@ -143,6 +144,9 @@
|
|
console.log(res)
|
|
console.log(res)
|
|
this.imgUrls.push(res);
|
|
this.imgUrls.push(res);
|
|
},
|
|
},
|
|
|
|
+ onError(error){
|
|
|
|
+ console.log(error)
|
|
|
|
+ },
|
|
onRemove(index) {
|
|
onRemove(index) {
|
|
this.imgUrls.splice(index, 1);
|
|
this.imgUrls.splice(index, 1);
|
|
},
|
|
},
|