|
@@ -47,7 +47,7 @@
|
|
|
toastr.options.timeOut = '1500';
|
|
|
</script>
|
|
|
<script type="text/javascript">
|
|
|
- // var baseUrl = 'http://14.215.128.96'
|
|
|
+ // var baseUrl = 'https://per.cs.se.androidscloud.com/'
|
|
|
let timer,flag = true;
|
|
|
var url = window.location.href;
|
|
|
url = url.split('/')
|
|
@@ -91,12 +91,12 @@
|
|
|
},
|
|
|
})
|
|
|
}
|
|
|
- $('.get-gif')[0].addEventListener('click',handleShow,false);
|
|
|
- function handleShow() {
|
|
|
+ $('.get-gif')[0].addEventListener('click',getActivationCode,false);
|
|
|
+ function handleShow(data) {
|
|
|
+ $('#copy-code').text(data)
|
|
|
$('.dialog').animate({top: '4.36rem'},"fast");
|
|
|
$('.mask').show();
|
|
|
document.documentElement.style.overflow='hidden';
|
|
|
- getActivationCode();
|
|
|
}
|
|
|
//激活码
|
|
|
function getActivationCode(){
|
|
@@ -110,7 +110,11 @@
|
|
|
dataType: 'json',
|
|
|
cache: false,
|
|
|
success: function (res) {
|
|
|
- $('#copy-code').text(res.data)
|
|
|
+ if(res.status === 0){
|
|
|
+ handleShow(res.data);
|
|
|
+ }else{
|
|
|
+ toastr.error(res.msg, 1000)
|
|
|
+ }
|
|
|
},
|
|
|
})
|
|
|
}
|