|
|
|
@ -277,8 +277,12 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
console.log("我是图片列表", this.terminalPhoto);
|
|
|
|
|
if (this.terminalPhoto) {
|
|
|
|
|
this.changeBigPic(this.terminalPhoto[0], 0);
|
|
|
|
|
// console.log(this.terminalPhoto[0].path);
|
|
|
|
|
// 进行其他操作
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//console.log(this.terminalPhoto[0]);
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
terminalPhoto: {
|
|
|
|
@ -421,13 +425,18 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
//获取第一张大图
|
|
|
|
|
changeBigPic(data, i) {
|
|
|
|
|
if (data) {
|
|
|
|
|
console.log("aaaaaaaaaaaaaaaaaaaaa", data.mediaType);
|
|
|
|
|
this.mediaType = data.mediaType !== null ? data.mediaType : 0;
|
|
|
|
|
|
|
|
|
|
this.picDataAlarm = data;
|
|
|
|
|
this.srcList = [];
|
|
|
|
|
this.localPoints = [];
|
|
|
|
|
this.activeSmall = i;
|
|
|
|
|
this.mediaType = data.mediaType;
|
|
|
|
|
|
|
|
|
|
this.currentPicPath = data.path;
|
|
|
|
|
this.srcList.push(data.path);
|
|
|
|
|
|
|
|
|
|
if (data.width != undefined) {
|
|
|
|
|
this.radioPx = data.width + "x" + data.height;
|
|
|
|
|
} else {
|
|
|
|
@ -471,6 +480,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
// 调整滚动容器的scrollLeft
|
|
|
|
|
scrollContainer.scrollLeft = scrollDistance;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
loadImage() {
|
|
|
|
|
console.log("loading");
|
|
|
|
|