Commit 20193a00 by 冷斌

设置

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