Commit ffbd9ffe by 冷斌

fix bug

parent 7afefe5d
...@@ -199,15 +199,16 @@ class HomeAction extends UserAction ...@@ -199,15 +199,16 @@ class HomeAction extends UserAction
$ordertype = 'exams'; $ordertype = 'exams';
$table = 'exams_paper_order'; $table = 'exams_paper_order';
$check_type = 'exams'; $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); $data = M($table)->where($map)->order($order)->findPage($limit);
var_dump($data);
die;
if ($data['data']) { if ($data['data']) {
$data['data'] = $this->haddleData($data['data'], $table); $data['data'] = $this->haddleData($data['data'], $table);
foreach ($data['data'] as $k => $v) { foreach ($data['data'] as $k => $v) {
......
...@@ -99,50 +99,50 @@ ...@@ -99,50 +99,50 @@
innerTab: 0, innerTab: 0,
options: [{ options: [{
title: "课程订单", title: "课程订单",
v: 1, v: 'course',
options: [{ options: [{
title: "待支付", title: "待支付",
v: 'course', v: 1,
items: [] items: []
}, { }, {
title: "已完成", title: "已完成",
v: 'exams', v: 3,
items: [] items: []
}, { }, {
title: "已取消", title: "已取消",
v: 'goods', v: 2,
items: [] items: []
}] }]
}, { }, {
title: "考题订单", title: "考题订单",
v: 3, v: 'exams',
options: [{ options: [{
title: "待支付", title: "待支付",
v: 'course', v: 1,
items: [] items: []
}, { }, {
title: "已完成", title: "已完成",
v: 'exams', v: 3,
items: [] items: []
}, { }, {
title: "已取消", title: "已取消",
v: 'goods', v: 2,
items: [] items: []
}] }]
}, { }, {
title: "商城订单", title: "商城订单",
v: 2, v: 'goods',
options: [{ options: [{
title: "待支付", title: "待支付",
v: 'course', v: 1,
items: [] items: []
}, { }, {
title: "已完成", title: "已完成",
v: 'exams', v: 3,
items: [] items: []
}, { }, {
title: "已取消", title: "已取消",
v: 'goods', v: 2,
items: [] 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