瀏覽代碼

活动报告修改

jwyu 2 年之前
父節點
當前提交
613fe859f1
共有 1 個文件被更改,包括 10 次插入6 次删除
  1. 10 6
      pages-activity/detail.vue

+ 10 - 6
pages-activity/detail.vue

@@ -522,12 +522,16 @@ export default {
 
         // 跳转webview 打开报告
         handleOpenReport() {
-            uni.navigateTo({
-                url: "/pages-activity/reportDetail",
-                success:(res)=>{
-                    res.eventChannel.emit('webUrl', { url:  this.info.reportLink})
-                }
-            });
+            if(this.info.is_new_report==1){//新报告
+                uni.navigateTo({ url: '/pages-report/reportDetail?reportId='+this.info.report_id })
+            }else{
+                uni.navigateTo({
+                    url: "/pages-activity/reportDetail",
+                    success:(res)=>{
+                        res.eventChannel.emit('webUrl', { url:  this.info.reportLink})
+                    }
+                });
+            }
         },
 
         // 复制链接