This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop-wechat/pages/sharing/order/express/express.js

37 lines
579 B
JavaScript
Raw Permalink Normal View History

2020-04-25 22:59:04 +08:00
const App = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
options: {},
express: {},
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
// 获取物流动态
this.getExpressDynamic(options.order_id);
},
/**
* 获取物流动态
*/
getExpressDynamic: function(order_id) {
let _this = this;
App._get('sharing.order/express', {
order_id
}, function(result) {
_this.setData(result.data);
},
function() {
wx.navigateBack();
});
},
})