企业内部开发 客户端API JS-SDK 政民沟通 微信进入居民上报小程序
微信进入居民上报小程序
最后更新:2021/08/12
可联系渠道经理采购或代理智慧硬件接口已支持设备 联系渠道经理
微信进入居民上报小程序
最后更新:2021/08/12

政府单位可在微信的H5门户中通过微信的开放标签配置「居民上报」小程序跳转入口,居民点击后进入「居民上报」小程序反馈问题。点击查看开放标签跳转小程序的使用方法,再按以下说明往开放标签传入对应的参数,即可完成跳转。

请求参数

参数必须说明
username固定填企业微信居民上报小程序username: gh_57702a7fcb71
path跳转到小程序的路径,路径格式固定为:pages/feedback/feedback?strcorpid=${strcorpid}&userid=${userid}
strcorpid企业corpid
userid企业成员的userid

调用示例

<wx-open-launch-weapp
  id="launch-btn"
  username="gh_57702a7fcb71"
  path="pages/feedback/feedback?strcorpid=${strcorpid}&userid=${userid}">
  <template>
    <style>.btn { padding: 12px }</style>
    <button class="btn">进入直播间</button>
  </template>
</wx-open-launch-weapp>
<script>
  var btn = document.getElementById('launch-btn');
  btn.addEventListener('launch', function (e) {
    console.log('success');
  });
  btn.addEventListener('error', function (e) {
    console.log('fail', e.detail);
  });
</script>
上一篇
微信H5页面唤起填写学生资料页面
下一篇
办公