Commit 20b49deb authored by Xuguangxing's avatar Xuguangxing

feat: 处理低版本app分享海报兼容问题

parent 662e5646
......@@ -15,7 +15,7 @@ import sharePic from './sharePic';
import MpBridge from '@/service/mp';
import Bridge from '@qg/js-bridge';
import { EventBus } from '@/service/utils.service';
import { isApp, isWxMp } from '@/service/validation.service';
import { isApp, isWxMp, appVersion } from '@/service/validation.service';
import qs from 'qs';
import config from '@/config';
import { saTrackEvent } from '@/service/sa.service';
......@@ -191,13 +191,17 @@ export default {
// 创建分享数据
const sharePicData = this.filterShareInfo();
const tagName = this.type ? '[0元购] ' : '';
this.shareInfo = {
const shareInfo = {
title: `${tagName}${sharePicData.skuName}`,
desc: sharePicData.desc || '',
link: sharePicData.linkPath, // 页面地址
imgUrl: sharePicData.skuImg, // 图片地
posterUrl: sharePicData.posterUrl
};
if (isApp && +appVersion.replace(/\./g, '') < 8260) {
delete shareInfo.posterUrl;
}
this.shareInfo = shareInfo;
},
filterShareInfo() {
const type = this.type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment