diff --git a/index.html b/index.html
index c8d757c..e801852 100644
--- a/index.html
+++ b/index.html
@@ -19,14 +19,14 @@
console.log("🚀 ~ window.location.href:", window.location.href);
const urlParams = parseUrlParams();
- wx.miniProgram.postMessage({
- data: {
- type: "share_info",
- userType: urlParams?.userType || null,
- phone: urlParams?.phone || null,
- id: urlParams?.id || null,
- },
- });
+ // wx.miniProgram.postMessage({
+ // data: {
+ // type: "share_info",
+ // userType: urlParams?.userType || null,
+ // phone: urlParams?.phone || null,
+ // id: urlParams?.id || null,
+ // },
+ // });
// const currentRoute = getCurrentRoute();
// console.log("当前纯路由地址:", currentRoute); // 输出:/pages/detail/indexNewsInfo
diff --git a/src/pages/detail/indexNewsInfo.vue b/src/pages/detail/indexNewsInfo.vue
index df153d0..d59775e 100644
--- a/src/pages/detail/indexNewsInfo.vue
+++ b/src/pages/detail/indexNewsInfo.vue
@@ -125,6 +125,19 @@ onLoad(async (option: any) => {
columnName.value = res.data.columnName1;
newList(res.data.columnId1);
wxShare();
+
+ wx.miniProgram.postMessage({
+ data: {
+ type: "share_info",
+ userType: option?.userType || null,
+ phone: option?.phone || null,
+ id: option?.id || null,
+
+ path: "https://cankao.cs.com.cn/jnh/#/pages/detail/indexNewsInfo",
+ title: data.value.title,
+ imageUrl: "",
+ },
+ });
}
}
if (option?.phone) {