orderDetail.jsp 4.5 KB
<%@ 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;费:</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>