Skip to content

客服

打开客服会话

基础库 2.0.3 开始支持

功能描述:

进入客服会话。要求在用户发生过至少一次 touch 事件后才能调用。后台接入方式与小程序一致,详见 客服消息接入

js
BrickMiniGame.openCustomerService({
  showMessageCard: true, // 非必填
  sessionFrom: 'Brick_Minigame_Pay', // 非必填
})
  .then((res) => {
    console.log(res);
  })
  .catch((err) => {
    console.log(err);
  });

详细参数请参考:微信小游戏开发 openCustomerServiceConversation

打开小程序

基础库 2.2.0 开始支持,

功能描述:

打开另一个小程序

js
BrickMiniGame.openMiniProgram({
  appId: 'wx96****2096', // 非必填
  path: '', // 非必填
  extraData: {}, // 非必填
}).then((res) => {
  console.log(res);
});

详细参数请参考:微信小游戏开发 navigateToMiniProgram