()

2020-06-18

t.popQrcode = NTES('#js-yixinpop-qrcode'); t.popPrompt = NTES('#js-yixinpop-prompt'); t.popClose = NTES('#js-yixinpop-close'); t.popText = NTES('#js-yixinpop-text'); t.popSubmit = NTES('#js-yixinpop-submit'); t.popClose.addEvent('click', function () { t.popBox.addCss('left: -9999px; top: -9999px;'); }); window.yixinsubmit = function (data) { var result = data.result; if (result) { t.popPrompt.innerHTML = "分享成功!"; setTimeout(function () { t.popBox.addCss('left: -9999px; top: -9999px;'); }, 1000); } else { t.popPrompt.innerHTML = "分享失败!请稍后再试"; } }; t.popSubmit.addEvent('click', function (ev) { ev.preventDefault(); t.param.ps = t.popText.value; var api = t.api_share + 'm=' + t.usermail + '&c=yixinsubmit' + '&title=' + encodeURIComponent(t.param.title) + '&desc=' + encodeURIComponent(t.param.desc) + '&image=' + encodeURIComponent('http://timge7.126.net/image?h=120&w=120&fill=0&gif=0&quality=80&url=' + t.param.image) + '&url=' + encodeURIComponent(t.param.url) + '&source=' + encodeURIComponent(t.param.source) + '&ps=' + encodeURIComponent(t.param.ps); NTES.ajax.importJs(api, function () { }, 'utf-8'); t.popPrompt.innerHTML = '()'; t.popPrompt.style.display = 'block'; t.popShare.style.display = 'none'; t.popQrcode.style.display = 'none'; window.epTools.posCenter(t.popBox); }); t.btns.each(function () { this.style.display = 'block'; }); window.yixinpop = function (data) { var result = data.result; if (result) { t.popShare.style.display = 'block'; t.popQrcode.style.display = 'none'; t.popPrompt.style.display = 'none'; window.epTools.posCenter(t.popBox); } else { t.popQrcode.style.display = 'block'; t.popShare.style.display = 'none'; t.popPrompt.style.display = 'none'; window.epTools.posCenter(t.popBox); } }; t.btns.addEvent('click', function (ev) { ev.preventDefault(); t.popPrompt.innerHTML = '()'; t.popPrompt.style.display = 'block'; t.popQrcode.style.display = 'none'; t.popShare.style.display = 'none'; window.epTools.posCenter(t.popBox); NTES.ajax.importJs(t.api_mobile + 'c=yixinpop&m=' + t.usermail, function () { }, 'utf-8'); }); t.flag_initBtns = true; } }; window.YixinShare = YixinShare; })(window.NTES); ??? ?? ??? ?? ??? ?? ??? ??
前往TMGM