diff --git a/src/components/Indicator.vue b/src/components/Indicator.vue index b05a80f..e71579a 100644 --- a/src/components/Indicator.vue +++ b/src/components/Indicator.vue @@ -59,7 +59,9 @@ export default { this.tabTexts.map((item, index) => { return (
+ style={{width: this.tabStyleWidth}} + onClick={e => this.changeIndex(index)} + > < span> {item}
) diff --git a/src/pages/me/Uploader.vue b/src/pages/me/Uploader.vue index 6a82998..599b95e 100644 --- a/src/pages/me/Uploader.vue +++ b/src/pages/me/Uploader.vue @@ -155,6 +155,7 @@ { return (
-
+
this.changeIndicatorIndex(0)} + style="width:50%"> 作品 {this.localAuthor.video_count}
-
+
this.changeIndicatorIndex(1)} + style="width:50%"> 喜欢
@@ -372,6 +377,9 @@ export default { bus.on('baseSlide-end', () => this.canScroll = true) }, methods: { + changeIndicatorIndex(index) { + this.$refs.Indicator.changeIndex(index) + }, async getAuthor() { this.changeIndex(0, null) // let res = await this.$api.user.author({id: this.author.id})