本文整理汇总了PHP中M::getChildOrderInfo方法的典型用法代码示例。如果您正苦于以下问题:PHP M::getChildOrderInfo方法的具体用法?PHP M::getChildOrderInfo怎么用?PHP M::getChildOrderInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类M
的用法示例。
在下文中一共展示了M::getChildOrderInfo方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CommonModule
exit;
}
/*-----------------------------
//查看订单详细
------------------------------*/
if ($dopost == 'vieworder') {
$pagename = $dopost;
Helper_Archive::loadModule('common');
$_model = new CommonModule('#@__member_order');
$orderinfo = $_model->getOne("id='{$orderid}'");
$orderinfo['orderstatus'] = strip_tags(getOrderStatus($orderinfo['status'], $orderinfo['paytype']));
//订单状态
$orderinfo['dingjin'] = $orderinfo['dingjin'] * $orderinfo['dingnum'];
if ($orderinfo['typeid'] == 2) {
$childOrder = M::getChildOrderInfo($orderinfo['id']);
$totalprice = 0;
$roomdinginfo = array();
foreach ($childOrder as $order) {
$p = intval($order['dingnum']) * $order['price'];
$totalprice += $p;
$roomdinginfo[] = array('usedate' => $order['usedate'], 'dingnum' => $order['dingnum'], 'totalprice' => $p, 'singleprice' => $order['price']);
}
$orderinfo['totalprice'] = $totalprice;
} else {
$orderinfo['totalprice'] = $orderinfo['dingnum'] * $orderinfo['price'] + $orderinfo['childnum'] * $orderinfo['childprice'] + $orderinfo['oldnum'] * $orderinfo['oldprice'];
//总价格
}
$orderinfo['insuranceprice'] = 0;
if ($orderinfo['typeid'] == 1) {
$_insuranceModel = new CommonModule('#@__insurance_booking');