|
@@ -352,7 +352,6 @@
|
|
|
</div> `
|
|
|
}else{
|
|
|
$('.report-times').eq(0).text(5);
|
|
|
- $('.look-btn').eq(0).text('确定');
|
|
|
$('.award-result-wrap')[0].className = 'card-wrap award-result-wrap'
|
|
|
for (var i = 0; i < list.length; i++) {
|
|
|
str += `<div class="card-item">
|
|
@@ -361,6 +360,8 @@
|
|
|
</div>`
|
|
|
}
|
|
|
}
|
|
|
+ let text = notReceive > 0?'确定':'查看';
|
|
|
+ $('.look-btn').eq(0).text(text);
|
|
|
$('.award-result-wrap').eq(0).append(str);
|
|
|
init();
|
|
|
}else{
|
|
@@ -396,7 +397,7 @@
|
|
|
copyUrl(shareInfo.gotoUrl);
|
|
|
} else if (isAndroid) {
|
|
|
window.native.share(shareInfo.title, shareInfo.content, shareInfo.gotoUrl, shareInfo.shareImg);
|
|
|
- } else if (isIOS) {
|
|
|
+ } else if (isiOS) {
|
|
|
window.webkit.messageHandlers.share.postMessage({
|
|
|
title: shareInfo.title,
|
|
|
content: shareInfo.content,
|
|
@@ -459,7 +460,7 @@
|
|
|
if(notReceive > 0){
|
|
|
window.webkit.messageHandlers.startRenew.postMessage();
|
|
|
} else {
|
|
|
- window.webkit.messageHandlers.startPurchase.postMessage();
|
|
|
+ window.webkit.messageHandlers.startPurchase.postMessage({ type: 1, day: 365 });
|
|
|
}
|
|
|
}
|
|
|
},false);
|
|
@@ -557,7 +558,7 @@
|
|
|
var oInput = document.createElement('input'); //创建一个input
|
|
|
oInput.setAttribute("readonly", "readonly");//设置只读,否则移动端使用复制功能时可能会造成软件盘弹出
|
|
|
oInput.value = url;
|
|
|
- $('.ipt')[0].appendChild(oInput);//将input插入到body
|
|
|
+ document.body.appendChild(oInput);//将input插入到body
|
|
|
// oInput.select(); // 选择对象 ios不支持
|
|
|
selectText(oInput, 0, oInput.value.length);
|
|
|
document.execCommand("Copy"); // 执行浏览器复制命令
|