jingcai-php/resources/views/client/ios_buyer_down.blade.php

63 lines
1.9 KiB
PHP
Executable File

<!DOCTYPE html>
<html>
<head>
<title>大象之家</title>
<meta charset="utf-8">
<meta name="description" content="大象之家app下载">
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<link rel="icon" type="image/ico" href="favicon.ico">
<style>
body{
background: url("/static/image/bg-buyer.png") no-repeat center top;
background-size: cover;
}
.tips{width:90%;border-radius: 20px;
margin: 47vh 5% 0;
background: #fff;
height:30vh;
padding:20px;
box-sizing: border-box;
text-align:center;
color:#333;
font-size: 18px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
line-height:42px;
}
a{
color:#fff;
border-radius: 5px;
text-decoration: none;
margin-top:20px;
width:10em;background:#f24445;
}
</style>
</head>
<body>
<div id="message" class="tips">
正在定制安装包,请稍后...
</div>
<script src="/static/js/axios.min.js"></script>
<script>
function check(){
axios.get('//file.daxiangzj.com/client/ipa_build?openid='+'{{$openid}}').then(function (response) {
let url = response.data?.data?.url
if(!url){
throw new Error('Please Wait...');
}
document.getElementById('message').innerHTML = '定制成功!点击下载安装应用吧~<a hr'+'ef="'+url+'">下载</a>';
}).catch(function () {
var timer = setTimeout(check, 1000);
});
}
check();
</script>
</body>
</html>