diff --git a/pages/apply/index.vue b/pages/apply/index.vue index 5de1b35..915343d 100644 --- a/pages/apply/index.vue +++ b/pages/apply/index.vue @@ -30,6 +30,14 @@ export default { path, }; }, + onShareTimeline() { + let that = this; + let appInfo = uni.getStorageSync("miniApp-info"); + return { + title: appInfo.slogan || "你想找的厂都有,立即查看", + imageUrl: appInfo.sharePoster, + }; + }, }; diff --git a/pages/home/index.vue b/pages/home/index.vue index ff2d68d..110d76a 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -220,15 +220,16 @@ export default { }; }, onShareTimeline() { + let that = this; let appInfo = uni.getStorageSync("miniApp-info"); return { - // title: "你想找的厂都有,立即查看", title: appInfo.slogan || "你想找的厂都有,立即查看", imageUrl: appInfo.sharePoster, + query:`filterInfo=${JSON.stringify(that.getFilterData)}&cityInfo=${that.selectedCity}` }; }, onLoad(options) { - // console.log("options", options); + console.log("首页 onload", options); let that = this; that.navInfo = that.G.getNavInfo(); let sceneInfo = uni.getLaunchOptionsSync(); diff --git a/pages/message/index.vue b/pages/message/index.vue index af16d54..1d2d031 100644 --- a/pages/message/index.vue +++ b/pages/message/index.vue @@ -54,7 +54,7 @@