Authored by 沈志敏

fix bug

... ... @@ -4,11 +4,9 @@
<div v-if="block.singleImage">
<div v-for="(index, item) in block.singleImage.data">
<a :href="item.url">
<img :title="item.title"
:alt="item.alt"
v-bind:src="item.src | resize 750 469" width="375"/>
</a>
<img :title="item.title"
:alt="item.alt"
v-bind:src="item.src | resize 750 469" width="375"/>
</div>
</div>
</template>
... ...
... ... @@ -39,11 +39,11 @@
<div class="other-box" v-for="item in other">
<div>
<div class="image-box">
<a :href="`/editorial/${item.id}.html`">
<a :href="'/editorial/' + item.id + '.html'">
<img :src="item.thumb | resize 213 134"/>
</a>
</div>
<h3><a class="line-clamp-2" :href="`/editorial/${item.id}.html`">{{item.title}}</a></h3>
<h3><a class="line-clamp-2" :href="'/editorial/' + item.id + '.html'">{{item.title}}</a></h3>
<div class="sub-time">
<span class="icon icon-timeshare"></span><span class="label">{{article.publishTime | formatUnixTime 'MM.DD HH:mm'}}</span>
</div>
... ...
... ... @@ -452,8 +452,6 @@
tip(result.message);
});
},
//state
isApp: yoho.isApp,
isSoldOut: false,
isReady: false
... ... @@ -488,8 +486,7 @@
tip(this.entity.isCollect === 'Y' ? '取消收藏成功' : '收藏成功');
this.entity.isCollect = this.entity.isCollect === 'Y' ? 'N' : 'Y';
yoho.store.set('productReload', true);
} else if (result.code === 403) {
// 未登录
} else if (result.code === 401) {
yoho.goLogin('', () => {
this.toggleFavorite();
});
... ...