作者 anyv
1 个管道 的构建 通过 耗费 0 秒

公众号二维码

... ... @@ -150,6 +150,14 @@ class VoteController extends WeChatBaseController{
}
//投票获取优惠券显示公众号二维码
public function erweishow(){
return $this -> fetch();
}
... ...
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>网吧会员系统</title>
<link rel="stylesheet" type="text/css" href="__TMPL__/public/assets/css/base.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/reset.css">
<script type="text/javascript" src="__TMPL__/public/assets/js/base.js"></script>
<style type="text/css">
body{
font-family: 微软雅黑;
}
.pre_img{
width: 2.35rem;
display: block;
margin: auto;
padding-top:1.02rem;
}
.pre_h2{
text-align: center;
font-size:0.38rem;
padding-top: 0.36rem;
color:rgba(1,1,1,1);
}
.pre_p{
padding-top: 0.2rem;
text-align: center;
font-size:0.32rem;
font-weight:400;
color:#4C4C4C;
}
.pre_code{
width:4.8rem;
height:4.8rem;
margin:0.4rem auto 0;
background:rgba(186,186,186,1);
}
.pre_code img{
width:100%;
}
.pre_btn{
width:4.8rem;
height:0.88rem;
margin:0.87rem auto 0;
text-align: center;
line-height: 0.88rem;
font-size:0.3rem;
font-weight:400;
color:rgba(95,102,255,1);
border:1px solid rgba(95,102,255,1);
border-radius:0.1rem;
}
</style>
</head>
<body>
<div class="pre_box">
<img class="pre_img" src="img/hui.png">
<h2 class="pre_h2">您获得一张优惠券</h2>
<p class="pre_p">请关注子阳网吧公众号核销</p>
<!-- code -->
<div class="pre_code">
<img src="">
</div>
<a href="{:url('Vote/index')}">
<div class="pre_btn">
返回首页
</div>
</a>
</div>
</body>
</html>
\ No newline at end of file
... ...
... ... @@ -62,7 +62,7 @@
if(data){
alert('投票失败');
}else{
window.location.href="{:url('Vote/index')}";
window.location.href="{:url('Vote/erweishow')}";
}
});
}else{
... ... @@ -84,7 +84,7 @@
}else{
$.post("{:url('Vote/vshuang')}", {ids:ids,tid:tid}, function(data) {
if(data){
window.location.href="{:url('Vote/index')}";
window.location.href="{:url('Vote/erweishow')}";
}else{
alert('投票失败');
}
... ...