You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

31 lines
713 B

// pages/orderList/orderList.js
const app = getApp();
var network = require("../../utils/net.js");
var timechage = require("../../utils/dateTimeUtil.js");
var getOrderList = '/MainSystem/B3MiniProgramRpc/XuRpcs/Driver/CarRecordRpc/GetList'
Page({
data: {
orderList:[],
},
onShow: function (options) {
var that = this;
var method = getOrderList;
network.transfer_request(method, [], function (res) {
that.setData({
orderList: res.result,
})
})
},
//点击进入详情页面
transToOrderDetail: function (event) {
var itemID = event.currentTarget.dataset.detailitemid;
wx.navigateTo({
url: 'orderDetail/orderDetail?id=' + itemID,
})
},
})