javascript - Ask a question about WeChat built-in page sharing
PHP中文网
PHP中文网 2017-05-19 10:12:40
0
1
397

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中文网

认证0级讲师

reply all(1)
巴扎黑

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); 
})
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!