新零售支付全家桶


查询订单概要信息

<p><img src="https://www.showdoc.cc/server/api/common/visitfile/sign/4d37c77318202e858d46546d60f273e1?showdoc=.jpg" alt="" /></p> <pre><code class="language-javascript">$.ajax({ url:wxUrl.searchOrderById, type:"post", dataType:"json", contentType:"application/json", beforeSend: function(request) { request.setRequestHeader("token", localStorage.getItem("token")); }, data:JSON.stringify({ "orderId":2 }), success:function(resp){ let order=resp.order let status=order.status if (status == 1) { status = "未付款" } else if (status == 2) { status = "已付款" } else if (status == 3) { status = "已发货" } else if (status == 4) { status = "已签收" } let amount=order.amount let date=order.createTime let code=order.code $("#code").text(code) $("#status").text(status) $("#date").text(date) $("#amount").text(amount) $("#pay").text(amount) $(".pay-btn").attr("data-order-id",order.id) if(status=="已付款"){ $(".pay-btn").attr("disabled",true) $(".pay-btn").css({ "background-color":"#666" }) } } })</code></pre>

页面列表

ITEM_HTML