|
@@ -17,7 +17,7 @@
|
|
|
<div class="container">
|
|
|
<div class="header">
|
|
|
<img class="bg_img" src="../static/img/changePhoneActivity/bg.png" />
|
|
|
- <img class="share" src="../static/img/changePhoneActivity/share.png" />
|
|
|
+ <div class="share-node"><img class="share" src="../static/img/changePhoneActivity/share.png" /></div>
|
|
|
<img class="logo" src="../static/img/changePhoneActivity/logo.png" />
|
|
|
<img class="theme" src="../static/img/changePhoneActivity/theme.png" />
|
|
|
<img class="activity-bg" src="../static/img/changePhoneActivity/activity-bg.png" />
|
|
@@ -31,11 +31,9 @@
|
|
|
</div>
|
|
|
<div class="options">
|
|
|
<div class="icon-down-first">
|
|
|
- <img class="first" src="../static/img/changePhoneActivity/icon-down-first.png" />
|
|
|
<span class="first-text">多多云</span>
|
|
|
</div>
|
|
|
<div class="icon-down-second">
|
|
|
- <img class="second" src="../static/img/changePhoneActivity/icon-down-second.png" />
|
|
|
<span class="second-text">红手指</span>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -65,9 +63,6 @@
|
|
|
<img class="activity-rule-btn" src="../static/img/changePhoneActivity/activity-rule-btn.png" />
|
|
|
<img class="activity-rule-text" src="../static/img/changePhoneActivity/activity-rule-text.png" />
|
|
|
</div>
|
|
|
- <!-- <img class="rule1" src="../static/img/changePhoneActivity/rule1.png" />
|
|
|
- <img class="rule2" src="../static/img/changePhoneActivity/rule2.png" />
|
|
|
- <img class="rule3" src="../static/img/changePhoneActivity/rule3.png" /> -->
|
|
|
</div>
|
|
|
<div class="footer">
|
|
|
<img class="footer_bg_img" src="../static/img/changePhoneActivity/footer_bg_img.png" />
|
|
@@ -150,8 +145,23 @@
|
|
|
}
|
|
|
loadAsync();
|
|
|
//点击分享
|
|
|
- $('.share')[0].addEventListener('click',()=>{
|
|
|
- if (isiOS) {
|
|
|
+ $('.share-node')[0].addEventListener('click',()=>{
|
|
|
+ if(!id){
|
|
|
+ stopManyClick(() => {
|
|
|
+ //加载数据
|
|
|
+ var href = window.location.href;
|
|
|
+ var copyBefore = JSON.stringify(href);
|
|
|
+ var copyUrl = copyBefore.split('"');
|
|
|
+ console.log(copyUrl[1])
|
|
|
+ $('#inviteCopy').val(copyUrl[1]);
|
|
|
+ var input = document.getElementById("inviteCopy");
|
|
|
+ // 选中文本
|
|
|
+ input.select();
|
|
|
+ // 执行浏览器复制命令
|
|
|
+ document.execCommand("copy");
|
|
|
+ toastr.error('复制成功当前网址成功!')
|
|
|
+ })
|
|
|
+ } else if (isiOS) {
|
|
|
$.ajax({
|
|
|
url: baseUrl + '/api/user/v1/promote',
|
|
|
type: 'get',
|
|
@@ -180,32 +190,6 @@
|
|
|
})
|
|
|
} else if (isAndroid) {
|
|
|
window.native.onClikWebView()
|
|
|
- } else {
|
|
|
- $.ajax({
|
|
|
- url: baseUrl + '/api/user/v1/promote',
|
|
|
- type: 'get',
|
|
|
- headers: {
|
|
|
- 'Authorization': id //id
|
|
|
- },
|
|
|
- contentType: "application/json",
|
|
|
- dataType: 'json',
|
|
|
- cache: false,
|
|
|
- success: function (res) {
|
|
|
- stopManyClick(() => {
|
|
|
- //加载数据
|
|
|
- var copyBefore = JSON.stringify(res.data.url);
|
|
|
- var copyUrl = copyBefore.split('"');
|
|
|
- console.log(copyUrl[1])
|
|
|
- $('#inviteCopy').val(copyUrl[1]);
|
|
|
- var input = document.getElementById("inviteCopy");
|
|
|
- // 选中文本
|
|
|
- input.select();
|
|
|
- // 执行浏览器复制命令
|
|
|
- document.execCommand("copy");
|
|
|
- toastr.error('复制成功当前网址成功!')
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
}
|
|
|
},false);
|
|
|
//点击选择框
|
|
@@ -262,7 +246,7 @@
|
|
|
password = $('#password').val();
|
|
|
if(fromType === 0){
|
|
|
$('#tip-text').text('请选择兑换时长的平台');
|
|
|
- $('.tip').animate({top: '5.27rem'},"fast");
|
|
|
+ $('.tip').animate({top: '7.27rem'},"fast");
|
|
|
$('.mask').show();
|
|
|
$('.dialog').hide();
|
|
|
document.documentElement.style.overflow='hidden';
|
|
@@ -270,7 +254,7 @@
|
|
|
}
|
|
|
if(account === ''){
|
|
|
$('#tip-text').text('请输入兑换时长的账号');
|
|
|
- $('.tip').animate({top: '5.27rem'},"fast");
|
|
|
+ $('.tip').animate({top: '7.27rem'},"fast");
|
|
|
$('.mask').show();
|
|
|
$('.dialog').hide();
|
|
|
document.documentElement.style.overflow='hidden';
|
|
@@ -278,7 +262,7 @@
|
|
|
}
|
|
|
if(password === ''){
|
|
|
$('#tip-text').text('请输入兑换时长的密码');
|
|
|
- $('.tip').animate({top: '5.27rem'},"fast");
|
|
|
+ $('.tip').animate({top: '7.27rem'},"fast");
|
|
|
$('.mask').show();
|
|
|
$('.dialog').hide();
|
|
|
document.documentElement.style.overflow='hidden';
|
|
@@ -286,7 +270,7 @@
|
|
|
}
|
|
|
if(!isShow){
|
|
|
$('#tip-text').text('请勾选阅读规则按钮');
|
|
|
- $('.tip').animate({top: '5.27rem'},"fast");
|
|
|
+ $('.tip').animate({top: '7.27rem'},"fast");
|
|
|
$('.mask').show();
|
|
|
document.documentElement.style.overflow='hidden';
|
|
|
return
|
|
@@ -322,7 +306,7 @@
|
|
|
document.documentElement.style.overflow='hidden';
|
|
|
}else{
|
|
|
$('#tip-text').text(res.msg);
|
|
|
- $('.tip').animate({top: '5.27rem'},"fast");
|
|
|
+ $('.tip').animate({top: '7.27rem'},"fast");
|
|
|
$('.mask').show();
|
|
|
$('.dialog').hide();
|
|
|
document.documentElement.style.overflow='hidden';
|