|
@@ -296,7 +296,7 @@ onMounted(async () => {
|
|
if (tag.type == "coupon") {
|
|
if (tag.type == "coupon") {
|
|
try {
|
|
try {
|
|
document.querySelector(`[data-tag-id="${tag.sid}"] .tag-icon`).style.display = 'none'
|
|
document.querySelector(`[data-tag-id="${tag.sid}"] .tag-icon`).style.display = 'none'
|
|
- let hotcontent = JSON.parse(tag.hotContent);
|
|
|
|
|
|
+ let hotcontent = (typeof tag.hotContent =='string') ? JSON.parse(tag.hotContent) : tag.hotContent;
|
|
browser.openLink(
|
|
browser.openLink(
|
|
"/subPackage/pages/activity/activity?pageId=" + hotcontent.couponLink,
|
|
"/subPackage/pages/activity/activity?pageId=" + hotcontent.couponLink,
|
|
`https://m.cdfmembers.com/shop/600667208/showactivity?pageId=${hotcontent.couponLink}`,
|
|
`https://m.cdfmembers.com/shop/600667208/showactivity?pageId=${hotcontent.couponLink}`,
|
|
@@ -313,7 +313,7 @@ onMounted(async () => {
|
|
console.log(tag);
|
|
console.log(tag);
|
|
|
|
|
|
try {
|
|
try {
|
|
- let hotcontent = tag.hotContent;
|
|
|
|
|
|
+ let hotcontent = (typeof tag.hotContent =='string') ? JSON.parse(tag.hotContent) : tag.hotContent;
|
|
browser.openLink(
|
|
browser.openLink(
|
|
"/subPackage/pages/home/home?pageType=2&pageId=" + hotcontent.liveLink,
|
|
"/subPackage/pages/home/home?pageType=2&pageId=" + hotcontent.liveLink,
|
|
`https://m.cdfmembers.com/shop/600667208/showactivity?pageId=${hotcontent.liveLink}`,
|
|
`https://m.cdfmembers.com/shop/600667208/showactivity?pageId=${hotcontent.liveLink}`,
|