...
|
...
|
@@ -60,7 +60,38 @@ |
|
|
keys: {}
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
yoho.addNativeMethod('editModel', () => {
|
|
|
this.hideDelBth();
|
|
|
this.editmodel = !this.editmodel;
|
|
|
this.updateNavBar();
|
|
|
});
|
|
|
|
|
|
yoho.store.remove('productReload');
|
|
|
document.addEventListener('visibilitychange', () => {
|
|
|
if (!document.hidden && yoho.store.get('productReload')) {
|
|
|
this.reload();
|
|
|
}
|
|
|
});
|
|
|
|
|
|
if (yoho.isApp) {
|
|
|
bus.$on('app.favourite.tabChange', this.updateNavBar);
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
reload() {
|
|
|
this.nullbox = 'hide';
|
|
|
this.busy = false;
|
|
|
this.editmodel = false;
|
|
|
this.page = 0;
|
|
|
this.pageX = 0;
|
|
|
this.currentX = 0;
|
|
|
this.productData = [];
|
|
|
this.pandata = {};
|
|
|
this.keys = {};
|
|
|
|
|
|
yoho.store.remove('productReload');
|
|
|
},
|
|
|
loadMore() {
|
|
|
this.busy = true;
|
|
|
$.ajax({
|
...
|
...
|
@@ -239,23 +270,6 @@ |
|
|
header: header
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
yoho.addNativeMethod('editModel', () => {
|
|
|
this.hideDelBth();
|
|
|
this.editmodel = !this.editmodel;
|
|
|
this.updateNavBar();
|
|
|
});
|
|
|
|
|
|
document.addEventListener('visibilitychange', function() {
|
|
|
if (yoho.isApp && !document.hidden) {
|
|
|
location.reload();
|
|
|
}
|
|
|
});
|
|
|
|
|
|
if (yoho.isApp) {
|
|
|
bus.$on('app.favourite.tabChange', this.updateNavBar);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
</script>
|
...
|
...
|
|