瀏覽代碼

持仓分析详情增加分享功能

jwyu 2 年之前
父節點
當前提交
e474aaf022
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      src/views/hzyb/chart/positionAnalysis/Index.vue

+ 11 - 0
src/views/hzyb/chart/positionAnalysis/Index.vue

@@ -157,6 +157,17 @@ async function getInfo(){
             chartListState[key].list=null
         }
     }
+    const postData={
+        path:'/pages/positionAnalysis/detail',
+        params:{
+            classify_name:route.query.classify_name,
+            classify_type:route.query.classify_type,
+            exchange:route.query.exchange,
+        },
+        title:`${route.query.classify_type} ${selectDate.value?moment(selectDate.value).format('YYYY-MM-DD'):''}持仓`||'持仓分析',
+        shareImg:''
+    }
+    wx.miniProgram.postMessage({ data: postData })
     
     nextTick(()=>{
         // 获取页面实际高度 传给pc端