feat(share): 文本分享指引框重做为分步引导卡片(参考截图),去掉系统分享
ShareGuideDialog: 居中卡片 标题{渠道}分享准备完成 + 内容已复制到剪贴板 + 微信/QQ/抖音三套分步指引
+ 两按钮(稍后分享/立即打开{渠道},渠道主题色)。文本不再提供系统分享(移除onGuideAction system分支+systemText)。
容器移除 contentKind 接线。
This commit is contained in:
@@ -241,13 +241,8 @@ export class ShareProvider implements CapabilityProvider {
|
||||
if (platform === 'wechat') {
|
||||
this.reportResult(2, reportType);
|
||||
}
|
||||
} else if (action === 'system') {
|
||||
this.systemText(uiCtx, bean);
|
||||
if (platform === 'wechat') {
|
||||
this.reportResult(2, reportType);
|
||||
}
|
||||
} else {
|
||||
// cancel
|
||||
// 稍后分享 / 取消:仅微信回执取消。
|
||||
if (platform === 'wechat') {
|
||||
this.reportResult(3, reportType);
|
||||
}
|
||||
@@ -299,14 +294,6 @@ export class ShareProvider implements CapabilityProvider {
|
||||
|
||||
// —— 系统分享(图片可靠交付 / 文本兜底;文本不下发 url)——
|
||||
|
||||
private systemText(uiCtx: common.UIAbilityContext, bean: SharetypeBean): void {
|
||||
const text: string = buildShareText(bean.title, bean.description);
|
||||
const record: systemShare.SharedRecord = {
|
||||
utd: utd.UniformDataType.PLAIN_TEXT, content: text !== '' ? text : ' ',
|
||||
};
|
||||
this.showSystemShare(uiCtx, record);
|
||||
}
|
||||
|
||||
private systemImage(uiCtx: common.UIAbilityContext, filePath: string, bean: SharetypeBean): void {
|
||||
const typeId: string =
|
||||
utd.getUniformDataTypeByFilenameExtension(this.extOf(filePath), utd.UniformDataType.IMAGE);
|
||||
|
||||
Reference in New Issue
Block a user