var businessType = require('../../../../public/business-type.js') var _order = null function getOrder() { return _order } function setOrder(order) { _order = order } function setOrderPack(isPack) { _order.pack = isPack if (isPack) { if (_order.purchaseType == businessType.PurchaseType.socialInsurance) { _order.purchaseType = businessType.PurchaseType.socialInsurancePackage } else if (_order.purchaseType == businessType.PurchaseType.accumulationFund) { _order.purchaseType = businessType.PurchaseType.accumulationFundPackage } } else { if (_order.purchaseType == businessType.PurchaseType.socialInsurancePackage) { _order.purchaseType = businessType.PurchaseType.socialInsurance _order.isFirstBuyFund = false } else if (_order.purchaseType == businessType.PurchaseType.accumulationFundPackage) { _order.purchaseType = businessType.PurchaseType.accumulationFund _order.SSCard = 0 _order.isFirstBuyShebao = false } } } module.exports = { getOrder: getOrder, setOrder: setOrder, setOrderPack: setOrderPack }