收藏
回答

使用企业微信客户端发送小程序卡片到会话,小程序卡片在手机打开为空白页?,在PC端却能正常打开页面内容


图1为企业微信工具栏嵌入自己的网页,图2为手机打开呈空白页,图3为企业微信电脑端打开效果(正常显示内容)。

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

4 个回答

  • 社区技术运营-wwen
    社区技术运营-wwen
    2024-12-24

    你好,请移步企微官方讨论区:https://developer.work.weixin.qq.com/community/question

    2024-12-24
    有用
    回复
  • 程序员bobSo|轻匀体重管理
    程序员bobSo|轻匀体重管理
    2024-12-20

    // 发送问卷到当前会话

    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))

               },

    })

    },

    2024-12-20
    有用 1
    回复 2
    • 华仔
      华仔
      03-24
      已解决 手动点赞
      03-24
      回复
    • 华仔
      华仔
      03-24
      第三方推送的时候链接是这样的/pages/index/index.html?quickIssueId=320
      03-24
      回复
  • Bean
    Bean
    07-03

    链接拼上.html试试

    /pages/SetUp/dataPush/index.html?groupId=xxx这种

    07-03
    有用
    回复
  • 智能回答 智能回答 该问答由AI生成
    2024-12-20
    有用
登录 后发表内容