扫描小程序码分享
图1为企业微信工具栏嵌入自己的网页,图2为手机打开呈空白页,图3为企业微信电脑端打开效果(正常显示内容)。
4 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
你好,请移步企微官方讨论区:https://developer.work.weixin.qq.com/community/question
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
// 发送问卷到当前会话
sendSurvey(item){
let that = this;
ww.sendChatMessage({
msgtype:"miniprogram", //消息类型,必填
enterChat: true, //为true时表示发送完成之后顺便进入会话,仅移动端3.1.10及以上版本支持该字段
miniprogram: {
appid: appId,//小程序的appid,企业已关联的任一个小程序
title: '请填写:' + item.name, //小程序消息的title
imgUrl: 'https://bmjzhi.oss-cn-shenzhen.aliyuncs.com/up/mjsapp/Image/survey-default-cover.png',//小程序消息的封面图。必须带http或者https协议头,否则报错 $apiName$:fail invalid imgUrl
page: 'pages/home/new-common-questionnaire/new-common-questionnaire?surveyId='+item.id //小程序消息打开后的路径,注意要以.html作为后缀,否则在微信端打开会提示找不到页面
},
success(res){
console.info('-----------',res)
that.$utils.showToast('分享成功,请发送')
fail(res){
console.info('*****-----',res)
that.$utils.showToast('分享失败'+JSON.stringify(res))
})
链接拼上.html试试
/pages/SetUp/dataPush/index.html?groupId=xxx这种
本回答由AI生成,可能已过期、失效或不适用于当前情形,请谨慎参考
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
你好,请移步企微官方讨论区:https://developer.work.weixin.qq.com/community/question
// 发送问卷到当前会话
sendSurvey(item){
let that = this;
ww.sendChatMessage({
msgtype:"miniprogram", //消息类型,必填
enterChat: true, //为true时表示发送完成之后顺便进入会话,仅移动端3.1.10及以上版本支持该字段
miniprogram: {
appid: appId,//小程序的appid,企业已关联的任一个小程序
title: '请填写:' + item.name, //小程序消息的title
imgUrl: 'https://bmjzhi.oss-cn-shenzhen.aliyuncs.com/up/mjsapp/Image/survey-default-cover.png',//小程序消息的封面图。必须带http或者https协议头,否则报错 $apiName$:fail invalid imgUrl
page: 'pages/home/new-common-questionnaire/new-common-questionnaire?surveyId='+item.id //小程序消息打开后的路径,注意要以.html作为后缀,否则在微信端打开会提示找不到页面
},
success(res){
console.info('-----------',res)
that.$utils.showToast('分享成功,请发送')
},
fail(res){
console.info('*****-----',res)
that.$utils.showToast('分享失败'+JSON.stringify(res))
},
})
},
链接拼上.html试试
/pages/SetUp/dataPush/index.html?groupId=xxx这种