[水感应客户端最新]
This commit is contained in:
43
pages/order/logistic/logistic.js
Normal file
43
pages/order/logistic/logistic.js
Normal file
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* 手太欠
|
||||
* 愿这世界都如故事里一样 美好而动人~
|
||||
*/
|
||||
|
||||
Page({
|
||||
data: {
|
||||
logisticArr : [],
|
||||
expressData : '',
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
const {
|
||||
newData = {}
|
||||
} = options;
|
||||
const data = JSON.parse(decodeURIComponent(newData));
|
||||
this.setData({
|
||||
expressData: data
|
||||
})
|
||||
},
|
||||
|
||||
onShow() {
|
||||
// 查看物流
|
||||
this.h5url();
|
||||
},
|
||||
|
||||
// 查看物流
|
||||
h5url() {
|
||||
wx.$api.order.kuaiDi({express_no: this.data.expressData.express_no}).then(res => {
|
||||
this.setData({
|
||||
logisticArr: res.data.data
|
||||
})
|
||||
}).catch(err => {})
|
||||
// wx.request({
|
||||
// url: 'http://shanhe.kim/api/za/kuaidi.php?id=' + this.data.expressData.express_no, //需更换需请求数据的接口
|
||||
// success: res=> {
|
||||
// this.setData({
|
||||
// logisticArr: res.data.data
|
||||
// })
|
||||
// },
|
||||
// });
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user