Merge branch 'feature/0430' into 'release/6.9.2'
Feature/0430 See merge request !55
Showing
2 changed files
with
10 additions
and
1 deletions
@@ -258,6 +258,14 @@ export default { | @@ -258,6 +258,14 @@ export default { | ||
258 | time: 1000 | 258 | time: 1000 |
259 | }).show(); | 259 | }).show(); |
260 | } else { | 260 | } else { |
261 | + if (this.viewOption.selected && this.type === 'star') { | ||
262 | + this.$createToast && this.$createToast({ | ||
263 | + txt: '收藏成功', | ||
264 | + type: 'txt', | ||
265 | + time: 1000 | ||
266 | + }).show(); | ||
267 | + } | ||
268 | + | ||
261 | if (['praiseArticle', 'followArticle'].some(s => s === this.syncFnName)) { | 269 | if (['praiseArticle', 'followArticle'].some(s => s === this.syncFnName)) { |
262 | this.fetchArticleUpdate({articleId: this.articleId}); | 270 | this.fetchArticleUpdate({articleId: this.articleId}); |
263 | } | 271 | } |
@@ -40,9 +40,10 @@ export default { | @@ -40,9 +40,10 @@ export default { | ||
40 | }, | 40 | }, |
41 | titleStyle() { | 41 | titleStyle() { |
42 | let style = {}; | 42 | let style = {}; |
43 | + let stepPercent = this.stepPercent; | ||
43 | 44 | ||
44 | if (this.offsetLeft) { | 45 | if (this.offsetLeft) { |
45 | - style.transform = `translate3d(${-this.stepPercent * this.offsetLeft}px, 0, 0)`; | 46 | + style.transform = `translate3d(${-stepPercent * this.offsetLeft}px, 0, 0)`; |
46 | } else { | 47 | } else { |
47 | this.updateTitleOffset(); | 48 | this.updateTitleOffset(); |
48 | } | 49 | } |
-
Please register or login to post a comment