|
@@ -95,6 +95,7 @@
|
|
|
import 'swiper/css/pagination';
|
|
|
|
|
|
import { parseUrlParams, judgeIsMobile } from '@/utils';
|
|
|
+ import { MESSAGE_KEY } from '@/types';
|
|
|
|
|
|
import ModelIcon from '@hotspot/assets/images/model-icon.png';
|
|
|
import ImageIcon from '@hotspot/assets/images/img-icon.png';
|
|
@@ -186,7 +187,7 @@
|
|
|
}/data/${this.id}/hot/js/data.js?time=${Math.random()}`;
|
|
|
let result = await fetch(url).then((response) => response.json());
|
|
|
const resData = result[this.m];
|
|
|
- console.log('----', resData);
|
|
|
+
|
|
|
if (resData) {
|
|
|
this.audio = resData.backgroundMusic;
|
|
|
// 只有单独的音频上传
|
|
@@ -285,9 +286,10 @@
|
|
|
this.lastVideo = video;
|
|
|
},
|
|
|
handlePreview(idx) {
|
|
|
- this.$viewerApi({
|
|
|
- images: [this.curList[idx]],
|
|
|
- });
|
|
|
+ window.parent.postMessage(
|
|
|
+ { type: MESSAGE_KEY.SHOW_VIEWER, images: [this.curList[idx]] },
|
|
|
+ '*'
|
|
|
+ );
|
|
|
},
|
|
|
},
|
|
|
};
|