consumption.html 3.8 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
    <script src="js/jquery-1.2.6.min.js" type="text/javascript" ></script>
    <script src="js/base.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/t.js"></script>
<title>我的消费金</title>
</head>

<body>
<div class="seheader center">
	<div class="left seback"><a href="#" onClick="javascript:history.back(-1);"><img src="images/care_03.jpg"/></a></div>
    <div class="headertext">我的消费金</div>
</div>

<div class="conpart1 center">
	<div>
		<input type="text" class="coninp" placeholder="请输入兑换码"/><span class="conchance"><a href="#">兑换</a></span>
    </div>
    
    <!--<div class="juan">-->
    	<!--<div class="textleft timg"><img src="images/juan_03.jpg"/></div>-->
        <!--<div class="left lejuan center">-->
        	<!--<p>¥<span class="jiage">3000</span></p>-->
            <!--<p>满1000使用</p>-->
        <!--</div>-->
        <!---->
        <!--<div class="left rgjuan center">-->
        	<!--<p class="sump">VIP权益消费金</p>-->
            <!--<p>有效期至2021-09-25</p>-->
        <!--</div>-->
        <!--<div class="colink"><img src="images/juan_07.jpg"/></div>-->
        <!---->
        <!--<div class="left lejuanb center">-->
        	<!--<p>全场服务专用</p>-->
        <!--</div>-->
        <!--<div class="conuse right"><a href="#">去使用</a></div>-->
    <!--</div>-->
    <!---->
    <!--<div class="juan">-->
    	<!--<div class="textleft timg"><img src="images/juan_03.jpg"/></div>-->
        <!--<div class="left lejuan center">-->
        	<!--<p>¥<span class="jiage">200</span></p>-->
            <!--<p>满100使用</p>-->
        <!--</div>-->
        <!---->
        <!--<div class="left rgjuan center">-->
        	<!--<p class="sump">活动专享消费金</p>-->
            <!--<p>有效期至2018-12-30</p>-->
        <!--</div>-->
        <!--<div class="colink"><img src="images/juan_07.jpg"/></div>-->
        <!---->
        <!--<div class="left lejuanb center">-->
        	<!--<p>上门服务专用</p>-->
        <!--</div>-->
        <!--<div class="conuse right"><a href="#">去使用</a></div>-->
    <!--</div>-->
    
</div>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript">
    var id =getUrlParam(id);
    var html='';
    // 我的订单接口
    var post={
        order_id:1
    };
    var header={
        "XX-Device-Type":1,
        Token:1
    };
    sendAjax('post', 'user/Order/getConsumeMoney', post, header, function (res) {
        console.log(res);
        if(res.code==1){
            for(let i in res.data){
                html +=` <div class="juan">
    	<div class="textleft timg"><img src="images/juan_03.jpg"/></div>
        <div class="left lejuan center">
        	<p>¥<span class="jiage">${res.data[i].money}</span></p>
            <p>${res.data[i].discount}使用</p>
        </div>

        <div class="left rgjuan center">
        	<p class="sump">${res.data[i].name}</p>
            <p>有效期至${res.data[i].deadline}</p>
        </div>
        <div class="colink"><img src="images/juan_07.jpg"/></div>

        <div class="left lejuanb center">
        	<p>${res.data[i].post_title}</p>
        </div>
        <div class="conuse right"><a href="#">去使用</a></div>
    </div>`
            }
            $(".conpart1").append(html);
        }else{
            console.log(res.msg);
        }
    })
</script>
</body>