parent
fa39606861
commit
498ef3a993
|
@ -335,7 +335,8 @@ export default {
|
||||||
this.form.REVIEW_TIME = uni.$u.timeFormat(event.value, 'yyyy-mm-dd')
|
this.form.REVIEW_TIME = uni.$u.timeFormat(event.value, 'yyyy-mm-dd')
|
||||||
},
|
},
|
||||||
fnAfterRead(event) {
|
fnAfterRead(event) {
|
||||||
var houzhui = event.file.url.replace(/.+\./, "");
|
console.log(event.file)
|
||||||
|
var houzhui = event.file.name.substring(event.file.name.lastIndexOf('.') + 1);
|
||||||
console.log(houzhui);
|
console.log(houzhui);
|
||||||
if (houzhui == "jpg" || houzhui == "png") {
|
if (houzhui == "jpg" || houzhui == "png") {
|
||||||
this.form.fileList.push(event.file)
|
this.form.fileList.push(event.file)
|
||||||
|
@ -346,7 +347,8 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fnAfterRead1(event) {
|
fnAfterRead1(event) {
|
||||||
var houzhui = event.file.url.replace(/.+\./, "");
|
console.log(event.file)
|
||||||
|
var houzhui = event.file.name.substring(event.file.name.lastIndexOf('.') + 1);
|
||||||
console.log(houzhui);
|
console.log(houzhui);
|
||||||
if (houzhui == "jpg" || houzhui == "png") {
|
if (houzhui == "jpg" || houzhui == "png") {
|
||||||
this.form.fileListBack.push(event.file)
|
this.form.fileListBack.push(event.file)
|
||||||
|
|
Loading…
Reference in New Issue