109 行
3.7 KiB
HTML
可执行文件
109 行
3.7 KiB
HTML
可执行文件
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport"
|
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<title>我的订单</title>
|
|
<link rel="stylesheet" href="__PUBLIC__/vip/css/ScoreMall/order.css">
|
|
<style>
|
|
html,body{
|
|
background-color: #eee;
|
|
}
|
|
.black_color{
|
|
width: 100vw;
|
|
height: 100vh;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
background-color: rgba(0,0,0,.4);
|
|
display: none;
|
|
}
|
|
.black_overlay{
|
|
width: 90vw;
|
|
height: 56vw;
|
|
background: #fff;
|
|
margin: 30vw auto;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
position: relative;
|
|
}
|
|
.close{
|
|
width: 6vw;
|
|
position: absolute;
|
|
top: 0;
|
|
height: 6vw;
|
|
right: 1vw;
|
|
text-align: center;
|
|
line-height: 6vw;
|
|
font-size: 6vw;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="bodys">
|
|
<if condition="$list">
|
|
<volist name="list" id="vo">
|
|
<div class="single">
|
|
<div class="single-con">
|
|
<div class="image">
|
|
<img src="{$vo.image}" alt="">
|
|
</div>
|
|
<div class="text">
|
|
<p class="sname">{$vo.name}</p>
|
|
<p>
|
|
<span>{$vo['integral']}</span>
|
|
<span>积分</span>
|
|
<if condition="$vo['type'] eq 2">
|
|
<span>+{$vo.price}</span>
|
|
<span>元</span>
|
|
<elseif condition="$vo['type'] eq 3"/>
|
|
<span style="color: #0BB20C;">+{$vo.price}</span>
|
|
<span>元</span>
|
|
</if>
|
|
</p>
|
|
</div>
|
|
<div class="hx">
|
|
<div>
|
|
<if condition="$vo['status'] eq 1">
|
|
<button class="but" data-barcode="{$vo.barcode}">立即核销</button>
|
|
<else/>
|
|
<button class="but" style="background-color: #ccc">已兑换成功</button>
|
|
</if>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</volist>
|
|
<else />
|
|
<div class="kong">
|
|
<div style="margin: 10vw 0;">
|
|
<img src="__PUBLIC__/vip/images/ScoreMall/empty.png" alt="">
|
|
</div>
|
|
<p>您暂无兑换商品,快去积分商城兑换吧!</p>
|
|
</div>
|
|
</if>
|
|
|
|
</div>
|
|
<div class="black_color">
|
|
<div class="black_overlay">
|
|
<img id="svgcode" />
|
|
<p class="close">x</p>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
<script type="text/javascript" src="__PUBLIC__/Webinfo/js/jquery-3.2.1.min.js"></script>
|
|
<script type="text/javascript" src="__PUBLIC__/vip/js/JsBarcode.all.js"></script>
|
|
<script>
|
|
$(".close").click(function(){
|
|
$(".black_color").css('display','none');
|
|
});
|
|
$(".but").click(function(){
|
|
var barcode = $(this).attr('data-barcode');
|
|
$("#svgcode").JsBarcode(barcode);
|
|
$(".black_color").css('display','block');
|
|
});
|
|
</script>
|
|
</html> |