consumption.html
3.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!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={
DeviceType: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>