|
@@ -370,82 +370,82 @@ onMounted(async () => {
|
|
},
|
|
},
|
|
})
|
|
})
|
|
.then((view) => {
|
|
.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}`,
|
|
|
|
- `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);
|
|
|
|
-
|
|
|
|
- setTimeout(() => {
|
|
|
|
- if (tagid) {
|
|
|
|
- const clickTarget = document.querySelector(`[data-id="${tagid}"]`)
|
|
|
|
- if (clickTarget) {
|
|
|
|
- clickTarget.click();
|
|
|
|
- }
|
|
|
|
- tagid = null;
|
|
|
|
|
|
+ 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}`,
|
|
|
|
+ `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;
|
|
}
|
|
}
|
|
- }, 2000);
|
|
|
|
|
|
+ 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('rendered', (e) => {
|
|
|
|
- tagid && view.focus(tagid);
|
|
|
|
- }); //dom渲染完成
|
|
|
|
|
|
+ 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) {
|
|
|
|
+ const clickTarget = document.querySelector(`[data-id="${tagid}"]`)
|
|
|
|
+ if (clickTarget) {
|
|
|
|
+ clickTarget.click();
|
|
|
|
+ }
|
|
|
|
+ tagid = null;
|
|
|
|
+ }
|
|
|
|
+ }, 2000);
|
|
|
|
+ }
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ view.on('rendered', (e) => {
|
|
|
|
+ tagid && view.focus(tagid);
|
|
|
|
+ }); //dom渲染完成
|
|
|
|
+ });
|
|
|
|
+
|
|
app.use('TourPlayer');
|
|
app.use('TourPlayer');
|
|
|
|
|
|
app.TourManager.on('loaded', (list) => {
|
|
app.TourManager.on('loaded', (list) => {
|