// pages/saleOutStore/saleOutStoreDetail/saleOutStoreDetail.js const app = getApp(); var network = require("../../../utils/net.js"); var timechage = require("../../../utils/dateTimeUtil.js"); var LoadOrder = '/MainSystem/B3MiniProgramRpc/XuRpcs/Driver/SaleOutStoreRpc/LoadSaleOutStore' Page({ data: { currentTab: 0, winHeight: 0, orderInfo: {}, }, onLoad: function (options) { 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 params = [ID]; network.transfer_request(method, params, function (res) { 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'); that.setData({ orderInfo: res.result, }) }) }, // 点击输入的确认数量 getConfirmNumber:function(e){ }, /** * 滑动切换tab */ bindChange: function (e) { var that = this; that.setData({ currentTab: e.detail.current }); }, /** * 点击tab切换 */ swichNav: function (e) { var that = this; if (this.data.currentTab === e.target.dataset.current) { return false; } else { that.setData({ currentTab: e.target.dataset.current }) } }, })