Commit c0b39e86 by 冷斌

设置

parent 3f0b9475
...@@ -99,16 +99,13 @@ ...@@ -99,16 +99,13 @@
innerTab: 0, innerTab: 0,
options: [{ options: [{
title: "待支付", title: "待支付",
k: 'orderby',
v: 1, v: 1,
options: [{ options: [{
title: "课程订单", title: "课程订单",
k: 'ordertype',
v: 'course', v: 'course',
items: [] items: []
}, { }, {
title: "考题订单", title: "考题订单",
k: 'ordertype',
v: 'exams', v: 'exams',
items: [] items: []
}, { }, {
...@@ -117,16 +114,13 @@ ...@@ -117,16 +114,13 @@
}] }]
}, { }, {
title: "已完成", title: "已完成",
k: 'orderby',
v: 3, v: 3,
options: [{ options: [{
title: "课程订单", title: "课程订单",
k: 'ordertype',
v: 'course', v: 'course',
items: [] items: []
}, { }, {
title: "考题订单", title: "考题订单",
k: 'ordertype',
v: 'exams', v: 'exams',
items: [] items: []
}, { }, {
...@@ -135,16 +129,13 @@ ...@@ -135,16 +129,13 @@
}] }]
}, { }, {
title: "已取消", title: "已取消",
k: 'orderby',
v: 2, v: 2,
options: [{ options: [{
title: "课程订单", title: "课程订单",
k: 'ordertype',
v: 'course', v: 'course',
items: [] items: []
}, { }, {
title: "考题订单", title: "考题订单",
k: 'ordertype',
v: 'exams', v: 'exams',
items: [] items: []
}, { }, {
...@@ -203,14 +194,22 @@ ...@@ -203,14 +194,22 @@
getList: function () { getList: function () {
let options = this.options[this.tab]; let options = this.options[this.tab];
let item = options['options'][this.innerTab]; let item = options['options'][this.innerTab];
console.log(options, item); let _this = this;
$.get("{:U('home/Home/orderList')}", {
orderby: options['val'],
ordertype: item['val'],
}, function (data) {
console.log(data)
}, 'json');
}, },
getQueryVariable: function (variable) { getQueryVariable: function (variable) {
var query = window.location.search.substring(1); var query = window.location.search.substring(1);
var vars = query.split("&"); var vars = query.split("&");
for (var i=0;i<vars.length;i++) { for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("="); var pair = vars[i].split("=");
if(pair[0] == variable){return pair[1];} if (pair[0] == variable) {
return pair[1];
}
} }
return 0; return 0;
}, },
......
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