Commit ffbd9ffe by 冷斌

fix bug

parent 7afefe5d
......@@ -199,15 +199,16 @@ class HomeAction extends UserAction
$ordertype = 'exams';
$table = 'exams_paper_order';
$check_type = 'exams';
} else if ($_GET['ordertype'] == 'goods') {
$ordertype = 'goods';
$table = 'el_goods_order';
$check_type = 'goods_order';
}
// else if ($_GET['ordertype'] == 'goods') {
// $ordertype = 'goods';
// $table = 'el_goods_order';
// $check_type = 'goods_order';
// }
$data = M($table)->where($map)->order($order)->findPage($limit);
var_dump($data);
die;
if ($data['data']) {
$data['data'] = $this->haddleData($data['data'], $table);
foreach ($data['data'] as $k => $v) {
......
......@@ -99,50 +99,50 @@
innerTab: 0,
options: [{
title: "课程订单",
v: 1,
v: 'course',
options: [{
title: "待支付",
v: 'course',
v: 1,
items: []
}, {
title: "已完成",
v: 'exams',
v: 3,
items: []
}, {
title: "已取消",
v: 'goods',
v: 2,
items: []
}]
}, {
title: "考题订单",
v: 3,
v: 'exams',
options: [{
title: "待支付",
v: 'course',
v: 1,
items: []
}, {
title: "已完成",
v: 'exams',
v: 3,
items: []
}, {
title: "已取消",
v: 'goods',
v: 2,
items: []
}]
}, {
title: "商城订单",
v: 2,
v: 'goods',
options: [{
title: "待支付",
v: 'course',
v: 1,
items: []
}, {
title: "已完成",
v: 'exams',
v: 3,
items: []
}, {
title: "已取消",
v: 'goods',
v: 2,
items: []
}]
}]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment