礼包弹窗

master
zhanglingsheng 5 years ago
parent 711ca74beb
commit 7c60bce623

@ -51,7 +51,19 @@
<script> <script>
$(function() { $(function() {
$(".copybtn").click(function() { $(".copybtn").click(function() {
var u = navigator.userAgent, app = navigator.appVersion;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //g
var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
if (isAndroid) {
window.txyxsdk.getCopy("{$novice}"); window.txyxsdk.getCopy("{$novice}");
}
if (isIOS) {
try{
location.href = '?action=copy&copycontent={$novice}'
}catch(err){
}
}
}); });
}); });
/* /*

Loading…
Cancel
Save