Comparing version 0.0.10 to 0.0.11
@@ -142,3 +142,2 @@ (function (global, factory) { | ||
imgUrl, | ||
success: updateAppMessageShareDataSuccess, | ||
}); | ||
@@ -150,3 +149,2 @@ this._wx.updateTimelineShareData({ | ||
imgUrl, | ||
success: updateAppMessageShareDataSuccess, | ||
}); | ||
@@ -156,8 +154,15 @@ } | ||
/** | ||
* 分享参数设置成功 | ||
* 展示分享引导 | ||
*/ | ||
function updateAppMessageShareDataSuccess() { | ||
console.log('【XFB-SDK】Jweixin 分享参数设置成功'); | ||
function showShareDrive() { | ||
console.log('【XFB-SDK】Jweixin 更新分享数据成功'); | ||
console.log(document.getElementsByClassName('overlay-xfbsdk')); | ||
Array.from(document.getElementsByClassName('overlay-xfbsdk')).forEach(item => { | ||
item.remove(); | ||
}); | ||
const overlay = document.createElement('div'); | ||
overlay.className = 'overlay-xfbsdk'; | ||
overlay.style.position = 'fixed'; | ||
@@ -169,3 +174,3 @@ overlay.style.top = '0'; | ||
overlay.style.zIndex = '999999'; | ||
overlay.style.backgroundColor = 'rgba(0, 0, 0, 0.5)'; | ||
overlay.style.backgroundColor = 'rgba(0, 0, 0, 0.7)'; | ||
overlay.style.backgroundRepeat = 'no-repeat'; | ||
@@ -184,3 +189,3 @@ overlay.style.backgroundPosition = 'top center'; | ||
updateAppMessageShareData, | ||
updateAppMessageShareDataSuccess, | ||
showShareDrive, | ||
_wx: null, | ||
@@ -187,0 +192,0 @@ _wxReady: false, |
{ | ||
"name": "xfb-sdk", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"author": "wangfei", | ||
@@ -5,0 +5,0 @@ "description": "", |
6241
172