diff --git a/pets-fe/components/bottom-sheet/bottom-sheet.js b/pets-fe/components/bottom-sheet/bottom-sheet.js index 4984391..d88579d 100644 --- a/pets-fe/components/bottom-sheet/bottom-sheet.js +++ b/pets-fe/components/bottom-sheet/bottom-sheet.js @@ -101,6 +101,7 @@ Component({ reportDetail: null, proInfo: null, saving: false, + posterSaving: false, }, observers: { show: function (show) { diff --git a/pets-fe/components/bottom-sheet/bottom-sheet.wxml b/pets-fe/components/bottom-sheet/bottom-sheet.wxml index 49d23cb..b8f9567 100644 --- a/pets-fe/components/bottom-sheet/bottom-sheet.wxml +++ b/pets-fe/components/bottom-sheet/bottom-sheet.wxml @@ -198,7 +198,14 @@ module.exports.sel = function (map, key, index, def) { 健康状态:{{poster ? poster.headline : '稳定成长'}} 生成自:肉垫计划 - + + + + + + diff --git a/pets-fe/components/bottom-sheet/bottom-sheet.wxss b/pets-fe/components/bottom-sheet/bottom-sheet.wxss index ec6d21d..4857492 100644 --- a/pets-fe/components/bottom-sheet/bottom-sheet.wxss +++ b/pets-fe/components/bottom-sheet/bottom-sheet.wxss @@ -79,3 +79,6 @@ margin-left:var(--sp-1);font-size:var(--fs-cap);font-weight:var(--fw-b); color:var(--primary-ink);background:var(--primary-soft);padding:2rpx var(--sp-1);border-radius:var(--r-full); } + +/* 离屏画布:挪到可视区外而不是 display:none,否则 selectorQuery 取不到节点 */ +.poster-canvas{position:fixed;left:-9999rpx;top:0;width:600rpx;height:840rpx} diff --git a/pets-fe/pages/report/report.js b/pets-fe/pages/report/report.js index f8eeb97..c37d532 100644 --- a/pets-fe/pages/report/report.js +++ b/pets-fe/pages/report/report.js @@ -62,9 +62,12 @@ Page({ wx.navigateTo({ url: '/pages/ai/ai' }); }, onShareAppMessage() { - return { title: '看看我家毛孩子的成长报告', path: '/pages/report/report' }; + // 带上宠物名,转发出去别人一眼知道是谁家的 + const n = (this.data.pet && this.data.pet.name) || '我家毛孩子'; + return { title: `${n} 的成长报告`, path: '/pages/report/report' }; }, onShareTimeline() { - return { title: '看看我家毛孩子的成长报告' }; + const n = (this.data.pet && this.data.pet.name) || '我家毛孩子'; + return { title: `${n} 的成长报告` }; }, });