zengh
2021-12-28 eb7ea9067798b31bf34e463d8234123db53ee4d9
pages/article/article_video.nvue
@@ -37,8 +37,8 @@
                     <cover-image :src="item.check?'../../static/aixinRed.png':'../../static/aixin.png'"
                        class="img" @click.stop="tapLove"></cover-image>
                     <text class="right-text">{{item.like}}</text>
                     <cover-image v-if="item.iscomment == '1'" src="../../static/xiaoxi.png" class="img" @click.stop="tapMsg"></cover-image>
                     <text v-if="item.iscomment == '1'" class="right-text">{{item.comment}}</text>
                     <cover-image src="../../static/xiaoxi.png" class="img" @click.stop="tapMsg"></cover-image>
                     <text class="right-text">{{item.comment}}</text>
                     <cover-image :src="item.iscollect?'../../static/collectred.png':'../../static/collect.png'"
                        class="img" @click.stop="tapCollect"></cover-image>
                     <text class="right-text">{{item.collect}}</text>
@@ -353,6 +353,14 @@
         tapMsg(e) {
            e.stopPropagation();
            if (this.distanceX != 0) return
            console.log(this.videoList[this.index])
            if(this.videoList[this.index].iscomment == "0" || this.videoList[this.index].iscomment == ""){
               uni.showToast({
                  icon: 'none',
                  title: `当前视频不支持评论`
               });
               return;
            }
            uni.getSubNVueById('comment').show('none', 0, () => {
               uni.$emit('showComment', this.videoList[this.index])
            });