Commit 3f0b9475 by 冷斌

设置

parent 25f274a6
...@@ -200,6 +200,11 @@ ...@@ -200,6 +200,11 @@
this.innerTab = tab this.innerTab = tab
console.log('b', this.innerTab, this.tab); console.log('b', this.innerTab, this.tab);
}, },
getList: function () {
let options = this.options[this.tab];
let item = options['options'][this.innerTab];
console.log(options, item);
},
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("&");
...@@ -208,12 +213,12 @@ ...@@ -208,12 +213,12 @@
if(pair[0] == variable){return pair[1];} if(pair[0] == variable){return pair[1];}
} }
return 0; return 0;
} },
}, },
created: function () { created: function () {
let _this = this; this.tab = this.getQueryVariable('status');
let status = _this.getQueryVariable('status'); this.innerTab = 0;
console.log(status); this.getList();
} }
}) })
......
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