修改扫码后分享参数错误bug

This commit is contained in:
DESKTOP-RQ919RC\Pc 2025-04-08 18:58:19 +08:00
parent d898941c09
commit 8e590b707b
5 changed files with 15 additions and 1 deletions

View File

@ -572,18 +572,26 @@ Page({
})
return title
},
getPath() {
let ids = []
const list = this.data.list || []
list.forEach(element => ids.push(element.id))
return `/pages/projectComparison/projectComparison?ids=${ids}`
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
return {
title: this.getShareTitle(),
path: this.getPath(),
}
},
onShareTimeline() {
return {
title: this.getShareTitle(),
path: this.getPath(),
}
},

View File

@ -936,11 +936,13 @@ Page({
onShareAppMessage() {
return {
title: `${ this.data.info.schoolalias || this.data.info.schoolname || '' }】 - ${this.data.info.name_zh}`,
path: `/pages/projectDetails/projectDetails?uniqid=${this.data.info.uniqid}`,
}
},
onShareTimeline() {
return {
title: `${ this.data.info.schoolalias || this.data.info.schoolname || '' }】 - ${this.data.info.name_zh}`,
path: `/pages/projectDetails/projectDetails?uniqid=${this.data.info.uniqid}`,
}
},

View File

@ -1480,6 +1480,7 @@ navigator {
line-height: 51rpx;
padding: 22.5rpx 0;
word-break: break-word;
white-space: pre-line;
}
.index {

View File

@ -1197,6 +1197,7 @@ navigator {
line-height: 51rpx;
padding: 22.5rpx 0;
word-break: break-word;
white-space: pre-line;
}
.details-box .issue-bj .issue .index {
width: 54rpx;

View File

@ -676,11 +676,13 @@ Page({
onShareAppMessage() {
return {
title: "【寄托港校项目库】- " + this.data.info.name,
path: `/pages/projectSchoolHomepage/projectSchoolHomepage?id=${ this.data.info.id }`
}
},
onShareTimeline() {
return {
title: "【寄托港校项目库】- " + this.data.info.name,
path: `/pages/projectSchoolHomepage/projectSchoolHomepage?id=${ this.data.info.id }`
}
},