Authored by yyq

preload

... ... @@ -60,9 +60,9 @@ export default {
}
},
serverPrefetch() {
const articleId = parseInt(this.$route.params.id, 10);
this.id = parseInt(this.$route.params.id, 10);
return articleId > 0 ? this.syncServiceArticleDetail(true) : Promise.resolve();
return this.id > 0 ? this.syncServiceArticleDetail(true) : Promise.resolve();
},
mounted() {
this.colWidthForTwo = Math.floor(this.$el.offsetWidth / 2);
... ... @@ -90,7 +90,7 @@ export default {
syncServiceArticleDetail(thumb) {
const articleId = parseInt(this.id, 10);
this.fetchArticleList({
return this.fetchArticleList({
articleId,
singleDetail: 'Y',
thumb
... ...
... ... @@ -86,7 +86,7 @@ export default {
mounted() {
let {clientHeight, clientWidth} = document.documentElement;
if (!this.$yoho.isiOS && (clientHeight / clientWidth) < 1.8) {
if (!this.$yoho.isiOS) {
this.downgrade = true;
}
},
... ...