|
@@ -117,6 +117,9 @@ export default {
|
|
|
if (this.userInfo.photoMethod == '1') {
|
|
if (this.userInfo.photoMethod == '1') {
|
|
|
this.imgArr = val || [];
|
|
this.imgArr = val || [];
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ if (this.formData.mediaInfos) {
|
|
|
|
|
+ this.downloadImage(this.formData.mediaInfos);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
deep: true,
|
|
deep: true,
|
|
@@ -125,19 +128,19 @@ export default {
|
|
|
},
|
|
},
|
|
|
activated() {
|
|
activated() {
|
|
|
// 授权
|
|
// 授权
|
|
|
- getTicketFun(['downloadImage']).then(() => {
|
|
|
|
|
- this.imgArr = [];
|
|
|
|
|
- // <!-- 0=企业微信,1=H5相机 -->
|
|
|
|
|
- if (this.formData) {
|
|
|
|
|
- if (this.userInfo.photoMethod == '1') {
|
|
|
|
|
- this.imgArr = this.formData.collectionItemList[0].fileInfoList || [];
|
|
|
|
|
- } else {
|
|
|
|
|
- if (this.formData.mediaInfos) {
|
|
|
|
|
- this.downloadImage(this.formData.mediaInfos);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ // getTicketFun(['downloadImage']).then(() => {
|
|
|
|
|
+ // this.imgArr = [];
|
|
|
|
|
+ // // <!-- 0=企业微信,1=H5相机 -->
|
|
|
|
|
+ // if (this.formData) {
|
|
|
|
|
+ // if (this.userInfo.photoMethod == '1') {
|
|
|
|
|
+ // this.imgArr = this.formData.collectionItemList[0].fileInfoList || [];
|
|
|
|
|
+ // } else {
|
|
|
|
|
+ // if (this.formData.mediaInfos) {
|
|
|
|
|
+ // this.downloadImage(this.formData.mediaInfos);
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
|
|
+ // });
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|