|  |  |  | 
|---|
|  |  |  | uploadAvatarSuccess (file) { | 
|---|
|  |  |  | console.log('file', file) | 
|---|
|  |  |  | const item = file.data[0] | 
|---|
|  |  |  | if (['.mp4', '.avi', '.flv', '.wmv'].indexOf(item.imgaddr) === -1) { | 
|---|
|  |  |  | if (['.mp4', '.avi', '.flv', '.wmv'].some(char => item.imgaddr.includes(char))) { | 
|---|
|  |  |  | this.fileList.push({ | 
|---|
|  |  |  | type: 0, | 
|---|
|  |  |  | type: 1, | 
|---|
|  |  |  | fileurl: item.imgaddr, | 
|---|
|  |  |  | fileurlFull: item.url | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | this.fileList.push({ | 
|---|
|  |  |  | type: 1, | 
|---|
|  |  |  | type: 0, | 
|---|
|  |  |  | fileurl: item.imgaddr, | 
|---|
|  |  |  | fileurlFull: item.url | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | 
|---|
|  |  |  | display: flex; | 
|---|
|  |  |  | flex-wrap: wrap; | 
|---|
|  |  |  | .item { | 
|---|
|  |  |  | width: 90px; | 
|---|
|  |  |  | max-height: 90px; | 
|---|
|  |  |  | width: 140px; | 
|---|
|  |  |  | max-height: 140px; | 
|---|
|  |  |  | margin-left: 10px; | 
|---|
|  |  |  | position: relative; | 
|---|
|  |  |  | .close{ | 
|---|
|  |  |  | 
|---|
|  |  |  | cursor: pointer; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | .img { | 
|---|
|  |  |  | width: 90px; | 
|---|
|  |  |  | width: 140px; | 
|---|
|  |  |  | max-height: 90px; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|