278 行
8.2 KiB
HTML
可执行文件
278 行
8.2 KiB
HTML
可执行文件
<!DOCTYPE html>
|
||
<html>
|
||
<!--[1.0.49]-->
|
||
<head>
|
||
<meta charset="utf-8" />
|
||
<title></title>
|
||
<link href="__PUBLIC__/layui/css/layui.css" rel="stylesheet">
|
||
<style type="text/css">
|
||
.audbox {
|
||
box-sizing: border-box;
|
||
padding-top: 100px;
|
||
}
|
||
|
||
.div_a {
|
||
width: 70%;
|
||
height: 8px;
|
||
background: gainsboro;
|
||
border-radius: 10px;
|
||
margin: auto;
|
||
position: relative;
|
||
}
|
||
.div_a_bg{
|
||
width: 66.666%;
|
||
height: 100%;
|
||
background: #1ab394;
|
||
position: absolute;
|
||
left: 0;
|
||
top: 0;
|
||
border-radius: 10px;
|
||
}
|
||
.div_a01{
|
||
width: 50px;
|
||
height: 50px;
|
||
border-radius: 50%;
|
||
border: 1px solid #1AB394;
|
||
position: absolute;
|
||
left: 16%;
|
||
top: -21px;
|
||
box-sizing: border-box;
|
||
padding: 5px;
|
||
}
|
||
.div_a_inner{
|
||
width: 100%;
|
||
height: 100%;
|
||
color: white;
|
||
font-size: 18px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: #1AB394;
|
||
border-radius: 50%;
|
||
font-weight: bold;
|
||
}
|
||
.div_a02{
|
||
width: 50px;
|
||
height: 50px;
|
||
border-radius: 50%;
|
||
border: 1px solid #1AB394;
|
||
position: absolute;
|
||
left: 47%;
|
||
top: -21px;
|
||
box-sizing: border-box;
|
||
padding: 5px;
|
||
}
|
||
.div_a03{
|
||
width: 50px;
|
||
height: 50px;
|
||
border-radius: 50%;
|
||
border: 1px solid gainsboro;
|
||
position: absolute;
|
||
left: 80%;
|
||
top: -21px;
|
||
box-sizing: border-box;
|
||
padding: 5px;
|
||
}
|
||
.div_a04{
|
||
width: 50px;
|
||
height: 50px;
|
||
border-radius: 50%;
|
||
border: 1px solid gainsboro;
|
||
position: absolute;
|
||
/*background-color: white;*/
|
||
left: 63.5%;
|
||
top: -21px;
|
||
box-sizing: border-box;
|
||
padding: 5px;
|
||
}
|
||
.div_a04_inner{
|
||
width: 100%;
|
||
height: 100%;
|
||
color: white;
|
||
font-size: 18px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: orangered;
|
||
border-radius: 50%;
|
||
font-weight: bold;
|
||
}
|
||
.div_a03_inner{
|
||
width: 100%;
|
||
height: 100%;
|
||
color: white;
|
||
font-size: 18px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: gainsboro;
|
||
border-radius: 50%;
|
||
font-weight: bold;
|
||
}
|
||
.div_a_txt{
|
||
width: 50px;
|
||
height: 50px;
|
||
position: absolute;
|
||
left: -3%;
|
||
top: 42px;
|
||
text-align: center;
|
||
line-height: 50px;
|
||
}
|
||
.div_b{
|
||
width: 100%;
|
||
height: 300px;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
box-sizing: border-box;
|
||
padding-top: 90px;
|
||
}
|
||
.p{
|
||
text-align: center;
|
||
}
|
||
.div_c {
|
||
box-sizing: border-box;
|
||
padding: 20px 0;
|
||
display: flex;
|
||
justify-content: center;
|
||
}
|
||
|
||
.qrcode {
|
||
display: none;
|
||
box-sizing: border-box;
|
||
padding: 20px 0;
|
||
}
|
||
|
||
.imgBox {
|
||
width: 100%;
|
||
height: 150px;
|
||
display: flex;
|
||
justify-content: center;
|
||
}
|
||
|
||
.qrcode img {
|
||
display: block;
|
||
width: 150px;
|
||
height: 150px;
|
||
}
|
||
</style>
|
||
<script type="text/javascript" src="__PUBLIC__/jquery/js/jquery-3.2.1.min.js" ></script>
|
||
<script src="__PUBLIC__/layui/layui.all.js"></script>
|
||
</head>
|
||
|
||
<body>
|
||
<div class="audbox">
|
||
<div class="div_a">
|
||
<div class="div_a_bg"></div>
|
||
<div class="div_a01">
|
||
<div class="div_a_inner">1</div>
|
||
<div class="div_a_txt">申请</div>
|
||
</div>
|
||
<div class="div_a02">
|
||
<div class="div_a_inner">2</div>
|
||
<div class="div_a_txt">审核</div>
|
||
</div>
|
||
<div class="div_a04">
|
||
<div class="div_a04_inner">
|
||
<i class="layui-icon layui-icon-face-cry" style="font-size:38px;line-height:41px;color:white;">×</i>
|
||
</div>
|
||
<div class="div_a_txt">失败</div>
|
||
</div>
|
||
<div class="div_a03">
|
||
<div class="div_a03_inner">3</div>
|
||
<div class="div_a_txt">发布</div>
|
||
</div>
|
||
</div>
|
||
<div class="div_b">
|
||
<img src="__PUBLIC__/user/img/sl.png"/>
|
||
</div>
|
||
<p class="p">对不起,服务商为您生成的小程序未通过微信审核</p>
|
||
<div class="div_c">
|
||
<button id="preview" class="layui-btn shenhe">重新提交</button>
|
||
<button id="reload" class="layui-btn">重新授权</button>
|
||
<button id="previews" class="layui-btn">预览二维码</button>
|
||
</div>
|
||
<div class="qrcode">
|
||
<div class="imgBox">
|
||
<img src="{$url}" />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<script type="text/javascript">
|
||
layui.use('layer', function() {
|
||
$("#reload").click(function () {
|
||
layer.confirm("确定要重新授权吗?",function () {
|
||
$.ajax({
|
||
url:"{:U('reset')}",
|
||
success:function (res) {
|
||
layer.alert(res.msg,function (re) {
|
||
window.location.href="{:U('authindex')}";
|
||
});
|
||
}
|
||
})
|
||
})
|
||
})
|
||
var layer = layui.layer;
|
||
$("#previews").click(function() {
|
||
layer.open({
|
||
title:"小程序预览",
|
||
type: 1,
|
||
content: `<div>
|
||
<img src='{$url}' style='width: 100%;height: 80%'>
|
||
</div><div style="text-align: center">
|
||
<div id="binduser" class="layui-btn" style="margin: 0 auto">添加体验者</div>
|
||
</div>`,
|
||
area: ['300px','390px']
|
||
});
|
||
})
|
||
});
|
||
layui.use('layer', function() {
|
||
var layer = layui.layer;
|
||
layer.tips('审核失败:<br />{$error_msg.reason}',$('.div_a04') ,{
|
||
time:0
|
||
});
|
||
})
|
||
$('.shenhe').click(function () {
|
||
layer.confirm("确定要提交审核吗?",function () {
|
||
$.ajax({
|
||
url:"{:U('submit_audit')}?cateid={$cateid}",
|
||
type:"post",
|
||
success:function (data) {
|
||
if(data.status){
|
||
layer.msg(data.msg,function () {
|
||
window.location.reload();
|
||
});
|
||
}else{
|
||
if(data.msg.errcode=="85009"){
|
||
layer.msg("版本已经提交过审核了,请勿重复提交");
|
||
}else{
|
||
layer.msg(data.msg.errmsg);
|
||
}
|
||
|
||
}
|
||
}
|
||
})
|
||
})
|
||
})
|
||
$('body').on('click','#binduser',function () {
|
||
//绑定开发人员
|
||
layer.prompt({title:"输入体验者的微信号", formType: 3},function (pass,index) {
|
||
$.ajax({
|
||
url:"{:U('binduser')}?cateid={$cateid}",
|
||
data:{"id":pass},
|
||
type:"get",
|
||
success:function (re) {
|
||
if(re.success){
|
||
layer.alert("绑定成功");
|
||
}else{
|
||
layer.alert(re.msg);
|
||
}
|
||
}
|
||
})
|
||
layer.close(index);
|
||
})
|
||
})
|
||
</script>
|
||
</body>
|
||
|
||
</html> |