search

Home  >  Q&A  >  body text

javascript - Ask a question about WeChat built-in page sharing

http://ww4.sinaimg.cn/large/a...
Please click on the picture to see it yourself (the company network is really difficult...)
Question: Do you want to ask for advice? Is there any way to change the introduction of the red block in the way of calling WeChat jssdk? The picture is shared by WeChat's built-in web page and captured by WeChat (personal feeling). The title is the title tag. I would like to ask if there is any tag that can be set up. Change it over!

PHP中文网PHP中文网2781 days ago490

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-05-19 10:14:40

    There is a desc attribute

    wx.ready(()=>{
        let shareConf={
          title: "优惠不容错过",
          link: location.href, 
          imgUrl: this.cdnHost+this.results.logo,
          success(result){
            this.toast=true;
            this.errmsg="确认分享";
          },
          cancel() { 
            this.toast=true;
            this.errmsg="取消分享";
          }
        }
        // 分享消息
        
        wx.onMenuShareAppMessage(Object.assign(shareConf,{
          desc: this.results.name, 
          type: 'link'
        }));
         // 分享到朋友圈
        wx.onMenuShareTimeline(shareConf); 
    })

    reply
    0
  • Cancelreply