orderDetail.jsp
4.5 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<title>订单详情</title>
<meta name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="max-age=0" />
<meta name="apple-touch-fullscreen" content="yes" />
<meta name="Description" content="思埠康新微商" />
<meta name="Keywords" content="思埠新微商" />
<meta name="renderer" content="webkit">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="<%=basePath%>resources/wxPay/css/index.css">
<script src="<%=basePath%>resources/wxPay/js/flexible.js"></script>
</head>
<body>
<div class="main-container">
<header class="header ng-scope">
<h1 class="title">订单支付</h1>
</header>
</div>
<div class="container order-container">
<div class="address address-border-image">
<div class="detail">
<p>姓名: ${orderBean.contact}</p>
<p>手机: ${orderBean.phone}</p>
<p>地址: ${orderBean.address}</p>
</div>
</div>
<div class="shop-list">
<div class="shop-title-name ng-scope" style="margin-top: 0">
<i class="icon-money left"></i><span style="padding: 3px 0 0 3px;">${orderBean.status}产品</span>
</div>
<c:forEach items="${orderBean.order1s}" var="one_order1">
<div class="shop-item clearfix">
<div class="image left">
<img src="${one_order1.thumbImg}">
</div>
<div class="details detail-titles">
<p class="name ng-binding">${one_order1.name}</p>
<p class="integ">
<i class="icon-money left"></i> <span class="ng-binding">${one_order1.price}</span>元
</p>
<p class="old ng-binding">
市场参考价:${one_order1.marketPrice} <span class="right ng-binding"> x${one_order1.purchaseQuantity} </span>
</p>
</div>
</div>
</c:forEach>
<div class="order-state clearfix">
<span class="right status big"> 总计: <span class="ng-binding">${orderBean.totalMoney}</span>元
</span>
</div>
</div>
<div class="order-details">
<p class="text">
<span>订单状态:</span>${orderBean.status}
</p>
<p class="text">
<span>订单单号:</span>${orderBean.orderCode}
</p>
<p class="text">
<span>下单时间:</span><fmt:formatDate value="${orderBean.createDt}" pattern="yyyy-MM-dd HH:mm:ss"/>
</p>
<p class="text">
<span>运 费:</span>¥${orderBean.freight}元
</p>
<p class="text">
<span>货运方式:</span>${orderBean.expressName}
</p>
<p class="text">
<span>买家备注:</span>${orderBean.buyerRemark}
</p>
</div>
</div>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="<%=basePath%>resources/alipay/js/jquery.min.js"></script>
<script>
$(function(){
var wxConfig = function (conf) {
wx.config({
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: conf.appId, // 必填,公众号的唯一标识
timestamp: conf.timestamp, // 必填,生成签名的时间戳
nonceStr: conf.nonceStr, // 必填,生成签名的随机串
signature: conf.signature,// 必填,签名,见附录1
jsApiList: [
'checkJsApi',
'hideAllNonBaseMenuItem',
'hideOptionMenu'
] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
});
};
var hideAll= function(){
wx.ready(function () {
wx.hideAllNonBaseMenuItem();
})
};
var hideMenu= function(){
wx.ready(function () {
wx.hideOptionMenu();
})
};
$.post('<%=basePath%>wechat/jssdk',
{
share_url:window.location.href
},
function(data){
wxConfig(data.data);
hideAll();
hideMenu();
}
)
})
</script>
</body>
</html>