|
@@ -187,6 +187,21 @@ const getChartInfo=async (type)=>{
|
|
|
|
|
|
setSeasonOpt(res.data.EdbInfoList[0])
|
|
|
}
|
|
|
+
|
|
|
+ // 向小程序发送分享数据
|
|
|
+ let postData = {
|
|
|
+ params:{
|
|
|
+ ChartInfoId:ChartInfoId,
|
|
|
+ searchVal:decodeURIComponent(route.query.searchVal)||'',
|
|
|
+ MyChartId:route.query.MyChartId||'',
|
|
|
+ MyChartClassifyId:route.query.MyChartClassifyId||'',
|
|
|
+ },
|
|
|
+ title: res.data.ChartInfo.ChartName,
|
|
|
+ shareImg:res.data.ChartInfo.ChartImage
|
|
|
+ };
|
|
|
+ wx.miniProgram.postMessage({ data: postData });
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
getChartInfo('init')
|
|
@@ -683,7 +698,7 @@ const handleGoSearch=()=>{
|
|
|
}
|
|
|
|
|
|
// 获取当前图表
|
|
|
-let searchVal=route.query.searchVal
|
|
|
+let searchVal=decodeURIComponent(route.query.searchVal)
|
|
|
let searchListData=ref([])//搜索的数据
|
|
|
const getSearchListData=async ()=>{
|
|
|
const res=await apiChartList({Keywords:searchVal,Page:1,Limit:10000,Authorization:route.query.token})
|