diff --git a/redPackets.html b/redPackets.html index fb8766e..089c041 100644 --- a/redPackets.html +++ b/redPackets.html @@ -137,7 +137,7 @@ const aliPaysUrl = `alipays://platformapi/startapp?appId=2021004100663111&page=pages/index/index?order_number=${encodeURIComponent(order_number)}`; var ua = window.navigator.userAgent.toLowerCase(); /* 判断如果是微信/安卓百度浏览器 则复制链接 */ - if (isWx() || (ua.indexOf("android") > -1 && ua.indexOf("baiduboxapp") > -1)) { + if (isWx() || (ua.indexOf("android") > -1 && ua.indexOf("baiduboxapp") > -1) || ua.indexOf("Windows") > -1) { this.tip('请点击下方[复制]按钮,复制链接到浏览器打开!', 1, '点击复制'); this.copyLink = aliPaysUrl; } else { @@ -146,7 +146,7 @@ } if (this.goodsInfo.entity.channel === 2) { - if ((isAli())) { + if (isAli() || ua.indexOf("Windows") > -1) { this.tip('请点击下方[复制]按钮,复制链接到浏览器打开!', 1, '点击复制'); this.copyLink = weiXinUrl; } else {