buyerReceiveInfo.html
2.35 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>main</title>
<script src="/ufoPlatform/js/include.js"></script>
</head>
<body class="easyui-layout" fit="true">
<div id="buyerReceiveInfoDiv" region="center">
<table id="passTable" border="1px" cellpadding="1" cellspacing="0" align="center"
style="margin-top: 30px; line-height: 30px;width:95%;border-color: #999999">
<tr>
<td>快递公司:</td>
<td colspan="2" >
<span id="expressCompanyName"></span>
</td>
</tr>
<tr>
<td>快递单号:</td>
<td colspan="2">
<span id="waybillCode"></span>
</td>
</tr>
<tr>
<td>姓名:</td>
<td colspan="2">
<span id="receiveName"></span>
</td>
</tr>
<tr>
<td>手机号:</td>
<td colspan="2">
<span id="receiveMobile"></span>
</td>
</tr>
<tr>
<td>地址:</td>
<td colspan="2">
<span id="receiveAddress"></span>
</td>
</tr>
</table>
</div>
<script>
$(function () {
//根据买家订单号获取买家收货信息
getReceiveInfo();
});
function getReceiveInfo(){
var form = new FormData();
form.append("orderCode", document.getElementById("buyerOrderCode").value);
//发送请求
$.ajax({
type: "POST",
url: contextPath + '/buyerOrder/getReceiveInfoByOrderCode',
data: form,
async: false,
cache: false,
contentType: false,
processData: false,
dataType: 'json',
success: function (result) {
if(result.code == 200) {
$("#expressCompanyName").html(result.data.expressCompanyName);
$("#waybillCode").html(result.data.platformWaybillCode);
$("#receiveName").html(result.data.receiveName);
$("#receiveMobile").html(result.data.receiveMobile);
$("#receiveAddress").html(result.data.receiveAddress);
}
else {
$.messager.alert("失败", result.message, "error");
}
}
});
}
</script>
</body>
</html>