|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<LoadingLogo v-if="hadVideo" :thumb="true" />
|
|
|
- <OpenVideo v-else @close="hadVideo = true" />
|
|
|
+ <OpenVideo v-else @close="handleCloseVideo" />
|
|
|
<Guide />
|
|
|
|
|
|
<div class="ui-view-layout" :class="{ show: show }" is-mobile="true">
|
|
@@ -131,10 +131,28 @@ const closetagtype = () => {
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
+const handleCloseVideo = () => {
|
|
|
+ hadVideo.value = true
|
|
|
+ console.log('result1:',hadVideo.value);
|
|
|
+ let treTag = tags.value.find(res => res.type == 'coupon')
|
|
|
+ console.log('reasureTag.value',treTag);
|
|
|
+ if(treTag){
|
|
|
+ store.commit('tag/setTagClickType', {
|
|
|
+ type: 'treasure',
|
|
|
+ data: treTag,
|
|
|
+ })
|
|
|
+ }
|
|
|
+}
|
|
|
const socket = computed(() => store.getters['rtc/socket']);
|
|
|
|
|
|
+const treasureTag = ref({
|
|
|
+ show:false,
|
|
|
+ tag:null
|
|
|
+})
|
|
|
+
|
|
|
const tags = computed(() => {
|
|
|
- return store.getters['tag/tags'] || [];
|
|
|
+ let list = store.getters['tag/tags'] || [];
|
|
|
+ return list
|
|
|
});
|
|
|
|
|
|
const isshoppingguide = computed(() => store.getters['shoppingguide']);
|
|
@@ -158,7 +176,7 @@ let VIDEOSCENELIST = [
|
|
|
'KJ-eur-WR9V913f23',
|
|
|
'KJ-eur-MBJF95ae80'
|
|
|
]
|
|
|
-console.log('result:',isMobile, Cache.get('HIDENVIDEOEXPIRES'));
|
|
|
+console.log('result:',isMobile, !Cache.get('HIDENVIDEOEXPIRES'),browser.getURLParam('role'));
|
|
|
|
|
|
if (!Cache.get('HIDENVIDEOEXPIRES') && isMobile) {
|
|
|
// if ((VIDEOSCENELIST.includes(browser.getURLParam('m')) && (browser.getURLParam('pose') == 'pano:188,qua:0.0013,-0.6099,0.001,0.7925'))||
|
|
@@ -166,10 +184,11 @@ if (!Cache.get('HIDENVIDEOEXPIRES') && isMobile) {
|
|
|
// Cache.set('HIDENVIDEOEXPIRES', 'yes', 1);
|
|
|
Cache.set('HIDENVIDEOEXPIRES', 'yes', 60 * 8 * 60);
|
|
|
hadVideo.value = false;
|
|
|
+ console.log('result:',hadVideo.value);
|
|
|
} else {
|
|
|
hadVideo.value = true;
|
|
|
}
|
|
|
-// }
|
|
|
+
|
|
|
|
|
|
if (browser.getURLParam('role')) {
|
|
|
hadVideo.value = true;
|
|
@@ -373,7 +392,8 @@ onMounted(async () => {
|
|
|
render(data) {
|
|
|
console.log('dataTagView',data);
|
|
|
if (data.type == 'waterfall' || data.type == 'exhibits') {
|
|
|
- return `<span class="tag-icon ${data.type == 'waterfall'?'waterfall':''} animate" style="background-image:url({{icon}})"></span>`;
|
|
|
+ return `<span class="tag-icon animate ${data.type == 'waterfall'?'waterfall':''}" style="background-image:url(${data.brand?.brandLogo?data.brand.brandLogo : data.icon})"></span>
|
|
|
+ <span class="tag-icon animate ${data.type == 'waterfall'?'waterfall':''}" style="display:${data.brand?.outlineImage?'inline-block':'none'};background-image:url(${data.brand && data.brand.outlineImage});position: absolute;top: 0;left: 0;"></span>`;
|
|
|
} else if (data.type == 'coupon') {
|
|
|
return `<span class="tag-icon coupon animate" style="background-image:url({{icon}})"></span>`;
|
|
|
} else if (data.type == 'applet_link') {
|
|
@@ -395,8 +415,10 @@ onMounted(async () => {
|
|
|
let priceMax = isFinite(Math.max.apply(null, arr)) ? Math.max.apply(null, arr) : 0;
|
|
|
let price = priceMin == priceMax ? priceMax : `${priceMin}-${priceMax}`;
|
|
|
let range = price==0?'':`${data.products[0] ? data.products[0].symbol : 'MOP$'} ${price} |`;
|
|
|
- return `<span class="tag-icon animate" style="background-image:url(${data.brand?.brandLogo?data.brand.brandLogo : data.icon})"></span>
|
|
|
- <span class="tag-icon animate" style="display:${data.brand?.outlineImage?'inline-block':'none'};background-image:url(${data.brand && data.brand.outlineImage});position: absolute;top: 0;left: 0;"></span>
|
|
|
+ // <span class="tag-icon animate" style="display:${data.brand?.outlineImage?'inline-block':'none'};background-image:url(${data.brand && data.brand.outlineImage});position: absolute;top: 0;left: 0;"></span>
|
|
|
+ // return `<span class="tag-icon animate" style="background-image:url(${data.brand?.brandLogo?data.brand.brandLogo : data.icon})"></span>
|
|
|
+ // <span class="tag-icon animate" style="display:${data.brand?.outlineImage?'inline-block':'none'};background-image:url(${data.brand && data.brand.outlineImage});position: absolute;top: 0;left: 0;"></span>
|
|
|
+ return `<span class="tag-icon animate" style="background-image:url({{icon}})"></span>
|
|
|
<div class="tag-body">
|
|
|
<div data-id="${data.sid}" class="tag-commodity">
|
|
|
<div style="background-image:url(${data.products[0] ? data.products[0].pic : ''})" class='tag-avatar'>
|
|
@@ -548,20 +570,21 @@ onMounted(async () => {
|
|
|
if (browser.getURLParam('roomId')) {
|
|
|
store.commit('showShoppingguide', true);
|
|
|
} else {
|
|
|
- if (!localStorage.getItem('user_guide')) {
|
|
|
- Dialog.confirm({
|
|
|
- showCloseIcon: false,
|
|
|
- okText: t('common.know'),
|
|
|
- content: "<span style='font-size: 16px; line-height: 1.5;'>" + t('common.notice') + '<span/>',
|
|
|
- title: `${t('common.tips')}:`,
|
|
|
- single: true,
|
|
|
- func: (state) => {
|
|
|
- if (state == 'ok') {
|
|
|
- localStorage.setItem('user_guide', Date.now());
|
|
|
- }
|
|
|
- },
|
|
|
- });
|
|
|
- }
|
|
|
+ //项目经理要求去掉
|
|
|
+ // if (!localStorage.getItem('user_guide')) {
|
|
|
+ // Dialog.confirm({
|
|
|
+ // showCloseIcon: false,
|
|
|
+ // okText: t('common.know'),
|
|
|
+ // content: "<span style='font-size: 16px; line-height: 1.5;'>" + t('common.notice') + '<span/>',
|
|
|
+ // title: `${t('common.tips')}:`,
|
|
|
+ // single: true,
|
|
|
+ // func: (state) => {
|
|
|
+ // if (state == 'ok') {
|
|
|
+ // localStorage.setItem('user_guide', Date.now());
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // });
|
|
|
+ // }
|
|
|
}
|
|
|
|
|
|
// app.resource.tags(`https://glp-vr.cdfmembers.com/cdf/hot/${browser.getURLParam('m')}/hot.json?rnd=${Math.random()}`);
|