const _Http = getApp().globalData.http; Component({ data: { steps: [], sa_logisticsid: 0, content: { nocache: true, pageNumber: 1, pageTotal: 1, total: null } }, methods: { copyNum(e) { if (this.data.un) wx.setClipboardData({ data: this.data.un, success: function (res) { wx.showToast({ title: '快递单号复制成功', icon: "none" }) } }) }, getList(id) { let content = this.data.content; content.billno = id; _Http.basic({ "id": "2024101114155503", content }).then(res => { console.log("物流查询", res) if (res.msg != '成功') return wx.showToast({ title: res.msg, icon: "none" }) let data = res.data.data[0]; this.setData({ steps: data.traceList.map(v => { return { text: v.acceptTime, desc: v.remark } }), nu: data.orderNo, "content.total": 1 }) }) } } })