|
@@ -371,74 +371,81 @@ onMounted(async () => {
|
|
|
})
|
|
|
.then((view) => {
|
|
|
view.on('click', (e) => {
|
|
|
- var tag = e.data;
|
|
|
- // 聚焦當前點擊的熱點
|
|
|
- view.focus(tag.sid).then(() => {
|
|
|
- if (tag.type == 'coupon') {
|
|
|
- try {
|
|
|
- if (isshoppingguide.value) {
|
|
|
- return;
|
|
|
- }
|
|
|
- document.querySelector(`[data-tag-id="${tag.sid}"] .tag-icon`).style.display = 'none';
|
|
|
- let hotcontent = typeof tag.hotContent == 'string' ? JSON.parse(tag.hotContent) : tag.hotContent;
|
|
|
- browser.openLink(
|
|
|
- '/subPackage/pages/activity/activity?pageId=' + hotcontent.couponLink,
|
|
|
- `https://m.cdfmembers.com/shop/600667208/showactivity?pageId=${hotcontent.couponLink}`,
|
|
|
- `/pages/showactivity/showactivity?pageId=${hotcontent.couponLink}`
|
|
|
- );
|
|
|
- apis.burying_point({ type: 2 });
|
|
|
- } catch (error) {}
|
|
|
- } else if (tag.type == 'waterfall') {
|
|
|
- store.commit('tag/setTagClickType', {
|
|
|
- type: 'waterfall',
|
|
|
- data: tag,
|
|
|
- });
|
|
|
- guideclicktag(tag);
|
|
|
- } else if (tag.type == 'applet_link') {
|
|
|
- try {
|
|
|
- if (isshoppingguide.value) {
|
|
|
- return;
|
|
|
- }
|
|
|
- let hotcontent = typeof tag.hotContent == 'string' ? JSON.parse(tag.hotContent) : tag.hotContent;
|
|
|
- browser.openLink(
|
|
|
- '/subPackage/pages/home/home?pageType=2&pageId=' + hotcontent.liveLink,
|
|
|
- `https://m.cdfmembers.com/shop/600667208/showactivity?pageId=${hotcontent.liveLink}`,
|
|
|
- `/pages/showactivity/showactivity?pageId=${hotcontent.liveLink}`
|
|
|
- );
|
|
|
- } catch (error) {}
|
|
|
- } else if (tag.type == 'link_scene') {
|
|
|
- guideclicktag(tag);
|
|
|
- let sceneFirstView = tag.hotContent.sceneFirstView;
|
|
|
- window.location.href = jumpNewScene(sceneFirstView);
|
|
|
- }
|
|
|
- });
|
|
|
+ var tag = e.data;
|
|
|
+ // 聚焦當前點擊的熱點
|
|
|
+ view.focus(tag.sid).then(() => {
|
|
|
+ if (tag.type == 'coupon') {
|
|
|
+ try {
|
|
|
+ if (isshoppingguide.value) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ document.querySelector(`[data-tag-id="${tag.sid}"] .tag-icon`).style.display = 'none';
|
|
|
+ let hotcontent = typeof tag.hotContent == 'string' ? JSON.parse(tag.hotContent) : tag.hotContent;
|
|
|
+ browser.openLink(
|
|
|
+ '/subPackage/pages/activity/activity?pageId=' + hotcontent.couponLink,
|
|
|
+ `https://m.cdfmembers.com/shop/600667208/showactivity?pageId=${hotcontent.couponLink}`,
|
|
|
+ `/pages/showactivity/showactivity?pageId=${hotcontent.couponLink}`,
|
|
|
+ `https://glp.cdfmembers.com/showactivity/${hotcontent.couponLink}`
|
|
|
+ );
|
|
|
+ apis.burying_point({ type: 2 });
|
|
|
+ } catch (error) {}
|
|
|
+ } else if (tag.type == 'waterfall') {
|
|
|
+ store.commit('tag/setTagClickType', {
|
|
|
+ type: 'waterfall',
|
|
|
+ data: tag,
|
|
|
+ });
|
|
|
+ guideclicktag(tag);
|
|
|
+ } else if (tag.type == 'applet_link') {
|
|
|
+ try {
|
|
|
+ if (isshoppingguide.value) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ let hotcontent = typeof tag.hotContent == 'string' ? JSON.parse(tag.hotContent) : tag.hotContent;
|
|
|
+ browser.openLink(
|
|
|
+ '/subPackage/pages/home/home?pageType=2&pageId=' + hotcontent.liveLink,
|
|
|
+ `https://m.cdfmembers.com/shop/600667208/showactivity?pageId=${hotcontent.liveLink}`,
|
|
|
+ `/pages/showactivity/showactivity?pageId=${hotcontent.liveLink}`,
|
|
|
+ `https://m.cdfmembers.com/shop/600667208/showactivity?pageId=${hotcontent.liveLink}`,
|
|
|
+ );
|
|
|
+ } catch (error) {}
|
|
|
+ } else if (tag.type == 'link_scene') {
|
|
|
+ guideclicktag(tag);
|
|
|
+ let sceneFirstView = tag.hotContent.sceneFirstView;
|
|
|
+ window.location.href = jumpNewScene(sceneFirstView);
|
|
|
+ }
|
|
|
});
|
|
|
+ });
|
|
|
|
|
|
- view.on('focus', (e) => {
|
|
|
- document.querySelectorAll('[xui_tags_view] >div').forEach((el) => {
|
|
|
- if (el.getAttribute('data-tag-type') == 'link_scene' || el.getAttribute('data-tag-type') == 'commodity') {
|
|
|
- el.querySelector('.tag-body').classList.remove('show');
|
|
|
- el.style.zIndex = 'auto';
|
|
|
- }
|
|
|
- });
|
|
|
- if (e.data.type == 'commodity' || e.data.type == 'link_scene') {
|
|
|
- e.target.style.zIndex = '999';
|
|
|
- e.target.querySelector('.tag-body').classList.add('show');
|
|
|
- e.target.querySelector('.tag-commodity').removeEventListener('click', onClickTagInfo);
|
|
|
- e.target.querySelector('.tag-commodity').addEventListener('click', onClickTagInfo);
|
|
|
+ view.on('focus', (e) => {
|
|
|
+ document.querySelectorAll('[xui_tags_view] >div').forEach((el) => {
|
|
|
+ if (el.getAttribute('data-tag-type') == 'link_scene' || el.getAttribute('data-tag-type') == 'commodity') {
|
|
|
+ el.querySelector('.tag-body').classList.remove('show');
|
|
|
+ el.style.zIndex = 'auto';
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (e.data.type == 'commodity' || e.data.type == 'link_scene') {
|
|
|
+ e.target.style.zIndex = '999';
|
|
|
+ e.target.querySelector('.tag-body').classList.add('show');
|
|
|
+ e.target.querySelector('.tag-commodity').removeEventListener('click', onClickTagInfo);
|
|
|
+ e.target.querySelector('.tag-commodity').addEventListener('click', onClickTagInfo);
|
|
|
|
|
|
+ setTimeout(() => {
|
|
|
if (tagid) {
|
|
|
- document.querySelector(`[data-id="${tagid}"]`) && document.querySelector(`[data-id="${tagid}"]`).click();
|
|
|
+ const clickTarget = document.querySelector(`[data-id="${tagid}"]`)
|
|
|
+ if (clickTarget) {
|
|
|
+ clickTarget.click();
|
|
|
+ }
|
|
|
tagid = null;
|
|
|
}
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- view.on('rendered', (e) => {
|
|
|
- tagid && view.focus(tagid);
|
|
|
- }); //dom渲染完成
|
|
|
+ }, 2000);
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
+ view.on('rendered', (e) => {
|
|
|
+ tagid && view.focus(tagid);
|
|
|
+ }); //dom渲染完成
|
|
|
+ });
|
|
|
+
|
|
|
app.use('TourPlayer');
|
|
|
|
|
|
app.TourManager.on('loaded', (list) => {
|
|
@@ -500,7 +507,7 @@ onMounted(async () => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- app.resource.tags(`${process.env.VUE_APP_RESOURCE_URL}cdf/hot/${browser.getURLParam('m')}/hot.json?rnd=${Math.random()}`);
|
|
|
+ app.resource.tags(`https://glp-vr.cdfmembers.com/cdf/hot/${browser.getURLParam('m')}/hot.json?rnd=${Math.random()}`);
|
|
|
useMusicPlayer();
|
|
|
});
|
|
|
app.Scene.on('panorama.videorenderer.resumerender', () => {
|
|
@@ -744,8 +751,11 @@ onMounted(async () => {
|
|
|
}
|
|
|
|
|
|
.waterfall {
|
|
|
- width: 90px !important;
|
|
|
- height: 90px !important;
|
|
|
+ width: 120px !important;
|
|
|
+ height: 120px !important;
|
|
|
+ &.animate {
|
|
|
+ animation: tag-animate-zoom 2s -1s linear infinite !important;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.applet_link {
|