收藏
回答

APP启动小程序 报 bad_param?

APP启动小程序 报 bad_param

const path = `packageShop/pages/newShopItem/orderitem?orderId=${orderId}&fromApp=1&token=${encodeURIComponent(token)}&addressId=${addressId}`

plus.share.getServices((res) => {

let sweixin = null

for (let i = 0; i < res.length; i++) {

if (res[i].id === 'weixin') {

sweixin = res[i]

break

}

}

if (sweixin) {

sweixin.launchMiniProgram({

id: 'gh_01c679b43ae4',

type: 0,

path

})

} else {

this.$u.toast('未安装微信或微信版本过低')

}

}, () => {

this.$u.toast('跳转小程序失败')

})

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

2 个回答

  • 社区技术运营专员--许涛
    社区技术运营专员--许涛
    06-10

    你好,安卓,iOS还是鸿蒙

    06-10
    有用
    回复
  • 智能回答 智能回答 本次回答由AI生成
    06-10
    有用
    回复
登录 后发表内容