-
Notifications
You must be signed in to change notification settings - Fork 5
/
success.html
104 lines (96 loc) · 3.05 KB
/
success.html
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport"
content="width=device-width, initial-scale=1.0 ,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>吃货多度 - 支付成功</title>
<link rel="shortcut icon" href="img/foodie.ico" />
<link rel="stylesheet" href="css/paysuccess.css" />
<script src="AmazeUI-2.4.2/assets/js/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body class="body">
<div id="success" class="container">
<div class="hd">
<div class="hd-main">
<div class="ep-hd-info">
<div class="ep-logo">
<img src="img/logobig.png" alt="慕课网 - 天天吃货" />
</div>
<div class="ep-order-status">
<!-- <h1>订单支付</h1> -->
<span class="page-title">订单支付</span>
</div>
</div>
<div class="user-info">
<p>账号:{{ userInfo.nickname }}</p>
</div>
</div>
</div>
<div class="bd">
<div class="bd-main">
<div class="paid-info">
<div class="first-line">
<img src="img/success.png" class="paid-success"></img>
<span class="success-words">支付成功!</span>
</div>
<div class="second-line">
<p class="order-words">商品订单:{{orderId}}</p>
<p class="order-words">支付金额:<em class="rmb"><i>¥</i>{{orderAmount / 100}}</em></p>
<p class="order-words gray-words">若有疑问请与客服联系,我们将会尽快为您提供帮助与服务。</p>
<p class="order-words gray-words">客服邮箱:[email protected]</p>
</div>
<div class="third-line">
<button class="go-center" @click="goUserCenter">查看我的订单</button>
</div>
</div>
</div>
</div>
<div class="ft">
<div class="ft-main">
<div class="copyright">
<p> </p> <p></p>
</div>
</div>
</div>
</div>
<script type="text/javascript " src="js/app.js"></script>
<script src="js/jquery.qrcode.min.js" type="text/javascript"></script>
<script type="text/javascript">
var index = new Vue({
el: "#success",
data: {
userIsLogin: false,
userInfo: {},
orderId: null,
orderAmount: 0
},
created() {
// var me = this;
// 通过cookie判断用户是否登录
app.judgeUserLoginStatus(this);
// 获得订单号
var orderId = app.getUrlParam("orderId");
// 获得支付金额
var orderAmount = app.getUrlParam("orderAmount");
this.orderId = orderId;
this.orderAmount = orderAmount;
},
methods: {
goUserCenter() {
// 判断用户是否登录
var userIsLogin = this.userIsLogin;
if (!userIsLogin) {
// 用户未登录,则跳转
window.location.href = "login.html?returnUrl=" + app.centerServerUrl;
} else {
window.location.href = app.centerServerUrl;
}
},
}
});
</script>
</body>
</html>