收藏
回答

鸿蒙三方跳转打开小程序无响应,怎么才能正确打开微信的小程序?

let context = getContext(this) as common.UIAbilityContext; 

let LaunchMiniProgramReq =new WXOpenSdk.LaunchMiniProgramReq

LaunchMiniProgramReq.userName = arr[2]

LaunchMiniProgramReq.path = newPath

LaunchMiniProgramReq.miniprogramType = 0

const WXApi = WXOpenSdk.WXAPIFactory.createWXAPI('key')

let success = await WXApi.sendReq(context,LaunchMiniProgramReq)

回答关注问题邀请回答
收藏

1 个回答

  • Demons
    Demons
    1天前

    你好,麻烦在手机微信那里上传下日志: 我->设置->帮助与反馈右上角有个上报日志的入口,麻烦提供一下微信号,时间点

    1天前
    有用
    回复
登录 后发表内容