Commit 20193a00 by 冷斌

设置

parent c0b39e86
...@@ -213,8 +213,8 @@ class HomeAction extends UserAction ...@@ -213,8 +213,8 @@ class HomeAction extends UserAction
$this->assign("uid", $this->mid); $this->assign("uid", $this->mid);
$this->assign("data", $data); $this->assign("data", $data);
$dd = !empty($data['data']) ? $data['data'] : [];
echo json_encode($data['data']); echo json_encode($dd);
exit(); exit();
} }
......
...@@ -185,11 +185,12 @@ ...@@ -185,11 +185,12 @@
}, },
methods: { methods: {
onTopTab: function (tab) { onTopTab: function (tab) {
console.log('a', this.innerTab, this.tab); this.tab = tab;
this.getList();
}, },
onInnerTab: function (tab) { onInnerTab: function (tab) {
this.innerTab = tab this.innerTab = tab;
console.log('b', this.innerTab, this.tab); this.getList();
}, },
getList: function () { getList: function () {
let options = this.options[this.tab]; let options = this.options[this.tab];
...@@ -199,7 +200,7 @@ ...@@ -199,7 +200,7 @@
orderby: options['val'], orderby: options['val'],
ordertype: item['val'], ordertype: item['val'],
}, function (data) { }, function (data) {
console.log(data) _this.options[_this.tab]['options'][_this.innerTab]['items'] = data;
}, 'json'); }, 'json');
}, },
getQueryVariable: function (variable) { getQueryVariable: function (variable) {
......
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