feat(share): 朋友圈分享(sharefriend=2)走文本分享但指引专门指向朋友圈

ShareGuideRequest 加 timeline 标记(sharefriend==2);指引框 timeline 时显示『分享到朋友圈步骤』
(打开微信→发现→朋友圈→长按相机发表文字→粘贴→发表),否则好友/群聊步骤。
This commit is contained in:
lanterngamescn
2026-06-27 15:58:58 +08:00
parent 0b6c5dfc54
commit f82ec89027
4 changed files with 20 additions and 6 deletions
@@ -7,6 +7,8 @@
export struct ShareGuideDialog {
/** 渠道:'wechat' | 'qq' | 'douyin'。 */
platform: string = 'wechat';
/** 是否朋友圈直发(true=微信朋友圈,引导发朋友圈;false=好友/群聊)。 */
timeline: boolean = false;
/** 动作回调:'open'(立即打开App| 'cancel'(稍后分享/点空白)。 */
onPick: (action: string) => void = () => { };
@@ -31,8 +33,17 @@ export struct ShareGuideDialog {
return '#07C160';
}
/** 各渠道"分享到好友或群聊"分步文案(差异主要在第 1 步进入聊天的入口)。 */
/** 步骤标题。 */
private stepHeader(): string {
return this.timeline ? '🎯 分享到朋友圈步骤:' : '🎯 分享到好友或群聊步骤:';
}
/** 分步文案:朋友圈直发一套;否则各渠道"好友或群聊"一套(差异在第 1 步进入聊天的入口)。 */
private steps(): string[] {
if (this.timeline) {
// 微信朋友圈(sharefriend==2 直发微信)
return ['打开微信,进入「发现」→「朋友圈」', '长按右上角相机图标(发表文字)', '在输入框长按粘贴内容', '点击「发表」即可分享'];
}
if (this.platform === 'qq') {
return ['打开QQ,进入「消息」列表', '选择好友或群聊进入聊天', '在输入框长按粘贴内容', '点击发送即可分享'];
}
@@ -83,7 +94,7 @@ export struct ShareGuideDialog {
.width('100%')
.margin({ top: 14 })
Text('🎯 分享到好友或群聊步骤:')
Text(this.stepHeader())
.fontSize(14)
.fontColor('#666666')
.width('100%')