收藏
回答

ios分享失败,安卓正常?

angular项目中,

代码如下:

MenuShareKit.onMenuShare({
  title: '调试',
  desc: '手机端、PC端全端口无缝协同设计',
  link: 'https://pretpm.zbjsaas.com/#/deepCoupling/v-main',
  imgUrl: baseUrl + '/assets/img/deep/share.jpg',
});

static createSharedConfig() {
  const href = encodeURIComponent(window.location.origin + '/');
  const newData = '&data=' + Date.parse(new Date() + '') + '&authorizerAppid=' + environment.wxAppId;
  const head = document.getElementsByTagName('body')[0];
  const script = document.createElement('script');
  script.setAttribute('type', 'text/javascript');
  script.setAttribute('src', environment.wxAuthUrl + '/jsSdk/config.js?url=' + href + newData);
  script.setAttribute('id', 'wxconfig');
  head.appendChild(script);
}
结果为:
<script type="text/javascript" src="https://yjqa.zbjsaas.com/wlm/jsSdk/config.js?url=https%3A%2F%2Fdevng.zbjsaas.com%2Ftpartnermall%2F&amp;data=1587375020000&amp;authorizerAppid=wx81a47ac834894fd9" id="wxconfig"></script>
但是ios分享出来的页面无法进入https://pretpm.zbjsaas.com/#/deepCoupling/v-main页面 然路径为:
https://pretpm.zbjsaas.com/?wmWxUserinfo=%7B%22openid%22%3A%22ozkr5v7Uvn_qaSTVggyzuq666INI%22%2C%22nickname%22%3A%22%E6%9C%A8%E6%9B%9C%E5%8A%A0%22%2C%22sex%22%3A1%2C%22language%22%3A%22zh_CN%22%2C%22city%22%3A%22%22%2C%22province%22%3A%22%22%2C%22country%22%3A%22%22%2C%22headimgurl%22%3A%22http%3A%2F%2Fthirdwx.qlogo.cn%2Fmmopen%2Fvi_32%2Fo9RIibWt7KwXUibmAfSfQZsc0dEDUySmpDSqGDtUTquVUWobql21CAnUCTrtfibJMakzZxtFCfiaPJyq7D6N5EoDrw%2F132%22%2C%22privilege%22%3A%5B%5D%2C%22unionid%22%3A%22opTQYv6s1mpwKXhEiBdtI9axCUVw%22%7D
显示空白


回答关注问题邀请回答
收藏
登录 后发表内容
问题标签