|
|
@ -1,4 +1,3 @@ |
|
|
// pages/orderList/orderBaseInfo/orderBaseInfo.js
|
|
|
|
|
|
|
|
|
|
|
|
const app = getApp(); |
|
|
const app = getApp(); |
|
|
var network = require("../../../utils/net.js"); |
|
|
var network = require("../../../utils/net.js"); |
|
|
@ -9,24 +8,30 @@ Page({ |
|
|
|
|
|
|
|
|
data: { |
|
|
data: { |
|
|
currentTab: 0, |
|
|
currentTab: 0, |
|
|
winHeight: 0, |
|
|
|
|
|
|
|
|
winHeight: app.globalData.winHeight, |
|
|
orderInfo:{}, |
|
|
orderInfo:{}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
onLoad: function(options) { |
|
|
onLoad: function(options) { |
|
|
|
|
|
//正常登录流程进入值为0,分享页面直接进入值为1
|
|
|
|
|
|
if (app.globalData.shareInState == 1) { |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
if (app.globalData.shareInParameter.id) { |
|
|
|
|
|
var detailItemID = parseInt(app.globalData.shareInParameter.id); |
|
|
|
|
|
wx.showModal({ |
|
|
|
|
|
title: '看下ID值', |
|
|
|
|
|
content: '+++' + detailItemID + '+++', |
|
|
|
|
|
}) |
|
|
|
|
|
// detailItemType = app.globalData.shareInParameter.detailItemType;
|
|
|
|
|
|
} else { |
|
|
|
|
|
var detailItemID = parseInt(options.id); |
|
|
|
|
|
} |
|
|
var that = this; |
|
|
var that = this; |
|
|
let ID = Number(options.id); |
|
|
|
|
|
wx.getSystemInfo({ |
|
|
|
|
|
success: function (res) { |
|
|
|
|
|
that.setData({ |
|
|
|
|
|
winWidth: res.windowWidth, |
|
|
|
|
|
winHeight: res.windowHeight |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
var method = LoadOrder; |
|
|
var method = LoadOrder; |
|
|
var params = [ID]; |
|
|
|
|
|
|
|
|
var params = [detailItemID]; |
|
|
network.transfer_request(method, params, function (res) { |
|
|
network.transfer_request(method, params, function (res) { |
|
|
|
|
|
app.globalData.shareInParameter = {}; |
|
|
res.result.LoadTime = timechage.formatTimeTwo(res.result.LoadTime.substring(6, 19), 'Y-M-D h:m'); |
|
|
res.result.LoadTime = timechage.formatTimeTwo(res.result.LoadTime.substring(6, 19), 'Y-M-D h:m'); |
|
|
res.result.OrderDate = timechage.formatTimeTwo(res.result.OrderDate.substring(6, 19), 'Y-M-D h:m'); |
|
|
res.result.OrderDate = timechage.formatTimeTwo(res.result.OrderDate.substring(6, 19), 'Y-M-D h:m'); |
|
|
that.setData({ |
|
|
that.setData({ |
|
|
|