|
@@ -99,7 +99,8 @@ var noticeMixin = function () {// 通知消息
|
|
|
return `${link}${cell.content}`
|
|
|
},
|
|
|
noticeActivityText(cell) { // 最新活动
|
|
|
- const link = `<span data-id="${cell.thisId}" class="link" onclick="handleActivityClick($(this))">点击查看</span>`
|
|
|
+ const activityLink = isPC ? cell.pcLink : cell.appLink
|
|
|
+ const link = `<span data-link="${activityLink}" class="link" onclick="handleActivityClick($(this))">点击查看</span>`
|
|
|
return `${link}${cell.content}`
|
|
|
},
|
|
|
handleOrderClick($event){// 订单点击事件
|
|
@@ -172,8 +173,10 @@ var noticeMixin = function () {// 通知消息
|
|
|
window.open(`/info/detail-${id}-1.html`);
|
|
|
},
|
|
|
handleActivityClick($event) {
|
|
|
- const id = Number($event[0].attributes[0].value);
|
|
|
- window.open(`/page-${id}.html`);
|
|
|
+ const link = $event[0].attributes[0].value
|
|
|
+ if (link) {
|
|
|
+ window.open(link);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
};
|