鍍金池/ 問答/HTML5  HTML/ 老生常談,微信分享頁面ios沒有伸縮圖和描述

老生常談,微信分享頁面ios沒有伸縮圖和描述

微信掃描app里面的二維碼網(wǎng)址進入這個頁面,然后把這個頁面分享出去。安卓這邊一切正常,不管是分享朋友圈還是好友,如果從安卓分享給ios,ios也是正常顯示。但是ios直接進入網(wǎng)頁分享出去就會沒有伸縮圖和描述。。。百度的以前ios有版本問題但是感覺已經(jīng)修復了,不知道為何現(xiàn)在出現(xiàn)這種效果

clipboard.png
function initWeixin() {

var share = {
  title: '你的好友正在彈一彈里等你來挑戰(zhàn)',
  desc: '大眼睛陪練-專注為4-12歲琴童提供專業(yè)化和智能化的4對1練琴服務(wù)。',
  link: `https://wap.raintai.com/webapp/iphoneshare.html?avatar=${imgSrc}&name=${playName}&score=${playScore}&beatPerson=${beatPerson}`,
  imgUrl: 'https://wap.raintai.com/webapp/img/share/share.png',
  success: function () {
    
  }
};
$.ajax({
  url: url,
  type: 'GET',
  data: { 'url': location.href },
  async: true,
  dataType: 'json',
  success: function (data) {
    // console.log(data)
    // console.log(1)
    wx.config({
      debug: false,
      appId: data.appId,
      timestamp: data.timestamp,
      nonceStr: data.nonceStr,
      signature: data.signature,
      jsApiList: [
        'hideMenuItems',
        'onMenuShareTimeline',
        'onMenuShareAppMessage'
      ]
    });
    wx.error(function (res) {
      alert(res);
    });
    wx.ready(function () {
      wx.hideMenuItems({
        menuList: ["menuItem:copyUrl", "menuItem:openWithQQBrowser", "menuItem:openWithSafari"] // 要隱藏的菜單項,只能隱藏“傳播類”和“保護類”按鈕,所有menu項見附錄3
      });
      wx.onMenuShareTimeline(share);
      wx.onMenuShareAppMessage(share);
    });
  },
  error:function (error){
    alert(error)
  }
});

}

回答
編輯回答
夢一場

分享中帶有 紅包 搶 等關(guān)鍵字,也有可能導致縮略圖不顯示,只有自己可以看到

2018年4月27日 18:48
編輯回答
六扇門

我用ios訪問分享正常,一般出現(xiàn)這種情況主要是
1.該域名被加入wx黑名單
2.wx.config沒成功,可以看下服務(wù)器或前端的log

2018年8月30日 19:38