|
@@ -114,7 +114,7 @@ export default{
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
- this.login = false;
|
|
|
+ this.login = true;
|
|
|
this.id = option.id;
|
|
|
this.page_id = option.page_id;
|
|
|
this.index = option.index;
|
|
@@ -165,6 +165,7 @@ export default{
|
|
|
},
|
|
|
initDrawer : function() {
|
|
|
var i = '';
|
|
|
+ this.drawer.button = [];
|
|
|
for (i in this.drawer.item) {
|
|
|
this.drawer.item[i].button.key = i;
|
|
|
this.drawer.item[i].param.type = 3;
|
|
@@ -197,8 +198,13 @@ export default{
|
|
|
},
|
|
|
getTimes : function(info) {
|
|
|
var self = this;
|
|
|
- this.Dever.get(this, 'app/collection/?l=api.times', {id:info.info_id, parent_page_id:info.parent_page_id, page_id:info.page_id, times:this.times,noloading:1}, function(t) {
|
|
|
- self.drawer.item['times'].param = t;
|
|
|
+ this.Dever.get(this, 'app/collection/?l=api.times', {id:info.info_id, parent_page_id:info.parent_page_id, page_id:info.page_id, times:this.times,noloading:1}, function(t) {
|
|
|
+ if (t && t.times && t.times.length > 0) {
|
|
|
+ self.drawer.item['times'].param = t;
|
|
|
+ } else {
|
|
|
+ delete self.drawer.item['times'];
|
|
|
+ self.initDrawer();
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
goIndex : function(index) {
|