|
|
|
@ -1,5 +1,5 @@ |
|
|
|
// pages/outStore/outStoreDetail/outStoreDetail.js
|
|
|
|
|
|
|
|
var app = getApp() |
|
|
|
var network = require("../../../utils/net.js"); |
|
|
|
|
|
|
|
Page({ |
|
|
|
@ -12,13 +12,29 @@ Page({ |
|
|
|
* 生命周期函数--监听页面加载 |
|
|
|
*/ |
|
|
|
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 detailItemID = parseInt(options.ID); |
|
|
|
let arrayLast = []; |
|
|
|
let totalMoney = 0; |
|
|
|
let method = '/MainSystem/B3MiniProgramRpc/XuRpcs/Employee/SaleOutStoreRpc/GetSaleOutStoreDetail'; |
|
|
|
let params = [detailItemID]; |
|
|
|
network.transfer_request(method, params, function (res) { |
|
|
|
app.globalData.shareInParameter = {}; |
|
|
|
var array = res.result; |
|
|
|
for (var i = 0; i < array.length; i++) { |
|
|
|
if (array[i].Money) { |
|
|
|
|