liyongli 1 год назад
Родитель
Сommit
b5c793d21c
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      src/view/IntangibleCulturalHeritageCeremony/index.vue

+ 5 - 5
src/view/IntangibleCulturalHeritageCeremony/index.vue

@@ -144,11 +144,6 @@ const onLoad = e => {
 const down = item => {
   console.log(window.$originData.orginParames.SL);
   if (isWechat) return showToast('请使用浏览器打开本页面');
-  if (window.$originData.orginParames.SL)
-    window.$originData.orginParames.SL.appClick({
-      page_name: item.title + '下载',
-      event_type: item.downUrl
-    });
   window
     .fetch(item.downUrl)
     .then(response => {
@@ -169,6 +164,11 @@ const down = item => {
       a.click();
       window.URL.revokeObjectURL(url); // 释放URL对象
       document.body.removeChild(a);
+      if (window.$originData.orginParames.SL)
+        window.$originData.orginParames.SL.Interactive.appClick({
+          page_name: item.title + '下载',
+          event_type: item.downUrl
+        });
     })
     .catch(error => {
       console.error('Error downloading file:', error);