OR
// '+ ' '+ '
'+ ' Order Placed'+ ' On the way'+ ' Delivered'+ '
'+ '' $(".s4_propress").html(htmlPro); }else if(result.status == "delivered"){ htmlPro += '
' + ' ' + '
' + ' Order Placed' + ' On the way' + ' Delivered' + '
' + '
' $(".s4_propress").html(htmlPro); } var html = '
'+ '

Order Information

'+ '

Tracking Number : '+ result.tracking_number +'

'+ '

Order ID : ' + result.orders_number + '

' + '

Destination Country : '+ result.destination_country +'

'+ '

Carrier Code : '+ result.carrier_code +'

'+ ''+ ''+ '' '' for (var i = 0; i < detail.length; i++) { var msgInfo = detail[i]; html += '' + ''+ ''+ '' } html += '
Order Updated Order Location
'+ msgInfo.date +' '+ msgInfo.status_description+'
' $(".search_result").html(html); } else if(data.code==0){ $(".search_result").html("

TRACKING NUMBER NOT FOUND

") }else if (data.code == 2) { $(".search_result").html("

Your package was shipped out already, will update you the delivery information within 24 hours

") } $("body,html").animate({ scrollTop: offSetTop }, 0); } }) } }) // 输入邮箱/手机号、或订单号 $(".emailPhBtn").on("click", function () { var emarlP = $(".s4com-input-ep1").val(); var orderN = $(".s4com-input1").val(); if (emarlP.length>0 && orderN.length>0) { $.ajax({ type: "post", dataType: "json", url: "https://custom.aporro.com/web/Home/Logistics/gettrackingbyemail", cache: false, data: { "email": emarlP, "order_number": orderN }, success: function (data) { $(".s4com-input1").val(""); $(".s4com-input-ep1").val(""); $(".search_result").addClass("search_result_style") if (data.code == 1) { var result = data.data; var detail = data.data.detail; var htmlPro = ""; if (result.status == "transit") { htmlPro += '
' + ' ' + '
' + ' Order Placed' + ' On the way' + ' Delivered' + '
' + '
' $(".s4_propress").html(htmlPro); } else if (result.status == "delivered") { htmlPro += '
' + ' ' + '
' + ' Order Placed' + ' On the way' + ' Delivered' + '
' + '
' $(".s4_propress").html(htmlPro); } var html = '
' + '

Order Information

' + '

Tracking Number : ' + result.tracking_number + '

' + '

Order ID : ' + result.orders_number + '

' + '

Destination Country : ' + result.destination_country + '

' + '

Carrier Code : ' + result.carrier_code + '

' + '' + '' + '' '' for (var i = 0; i < detail.length; i++) { var msgInfo = detail[i]; html += '' + '' + '' + '' } html += '
Order Updated Order Location
' + msgInfo.date + ' ' + msgInfo.status_description+ '
' $(".search_result").html(html); } else if (data.code == 0) { $(".search_result").html("

TRACKING NUMBER NOT FOUND

") }else if (data.code == 2) { $(".search_result").html("

Your package was shipped out already, will update you the delivery information within 24 hours

") } $("body,html").animate({ scrollTop: offSetTop }, 0); } }) } }) // ]]>