交流专区
服务市场
开发者平台
学堂
文档
小程序
  • 常用主页

    小程序

    小游戏

    企业微信

    微信支付

  • 服务市场
    微信学堂
    文档
登录
切换主页

暂无个人介绍

关注私信

正在关注

0

关注者

0

获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
文章 回答 提问 收藏 关注问题
  • vue pc端项目 wx.invoke is not a function?

    1、html.index引入 <script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> <script src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"></script> 2、main.js let wx = window.wx; // index.html中引入外部js,获取js暴露的wx console.log(wx) //wx对象可以正常输出 3、wx.agentConfig注入成功,但是checkResult:{openExistedChatWithMsg: false}, 还有 wx.invoke is not a function wx.agentConfig({ corpid: jsapiSignature.appId, // 必填,企业微信的corpid,必须与当前登录的企业一致 agentid: 1000033, // 必填,企业微信的应用id (e.g. 1000247) timestamp: jsapiSignature.timestamp, // 必填,生成签名的时间戳 nonceStr: jsapiSignature.nonceStr, // 必填,生成签名的随机串 signature: jsapiSignature.signature,// 必填,签名,见附录-JS-SDK使用权限签名算法 jsApiList: ['openExistedChatWithMsg'], //必填,传入需要使用的接口名称 success: (res)=>{ console.log(res) wx.invoke("openExistedChatWithMsg", { chatId: appChatId, msg: { msgtype: "link", link: { title: name, desc: "", url: window.location.href, imgUrl: "" } } },(res2)=>{ console.log(res2,'msg') if (res2.err_msg == "openExistedChatWithMsg:ok"){ }else{ } }); } })

    2021-09-24
关闭

选择需要上架的开放服务

  • 模板开发

    针对行业、场景的小程序代开发服务,帮助企业快速搭建小程序

    上架
  • 插件

    提供可被小程序直接使用、丰富小程序能力的功能模块

    上架
  • 小商店服务

    为小商店商家提供更多的能力,帮助商家经营好小商店

    上架
关闭

案例类型

  • 小程序
  • 插件
  • 关于腾讯
  • 运营规范
  • 文档中心
  • 辟谣中心
  • 客服中心
  • Copyright © 2012-2025 Tencent. All Rights Reserved.