10 files modified
1 files added
| | |
| | | <template> |
| | | <div class="myModal"> |
| | | <a-modal v-model="visible" title="" :footer="null" :mask="false" :maskClosable="true" |
| | | :bodyStyle="{'overflow':'overlay','maxHeight': '550px'}"> |
| | | <div>{{this.placement}}</div> |
| | | <videoPlayBox></videoPlayBox> |
| | | <a-modal v-model="visible" title="视频盒子" :footer="null" :mask="false" :maskClosable="true" |
| | | :bodyStyle="{'overflow':'overlay','maxHeight': '750px'}"> |
| | | <videoDetail ref="videoDetail"></videoDetail> |
| | | </a-modal> |
| | | </div> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | history |
| | | } from '../../api/blogArticleComment.js' |
| | | import videoPlayBox from "../mini/box15-videoPlayBox.vue" |
| | | import videoDetail from "../mini/box16-videoDetail.vue" |
| | | |
| | | export default { |
| | | components: { |
| | | videoPlayBox |
| | | videoDetail, |
| | | }, |
| | | watch: { |
| | | // '$route'(to, from) { |
| | | // if ("mdDetail" === to.name) { |
| | | // this.articleId = this.$route.query.id; |
| | | // this.articleFileType = this.$route.query.articleFileType; |
| | | // } |
| | | // }, |
| | | articleId: function(newValue, oldValue) { |
| | | if (newValue == undefined || newValue == null || newValue == "") { |
| | | this.showMsg = true; |
| | | this.errorMsg = "日志id参数缺失"; |
| | | } else { |
| | | this.$nextTick(function() { |
| | | this.$refs.myComment.updateCommentList(this.articleId); |
| | | }) |
| | | } |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | | visible: false, |
| | | placement: "fbottom" |
| | | articleId: "", |
| | | } |
| | | }, |
| | | beforeMount() {}, |
| | | methods: { |
| | | showModal(param) { |
| | | this.placement = param.id |
| | | this.visible = true; |
| | | this.$nextTick(function() { |
| | | this.$refs.videoDetail.showVideo(param) |
| | | }) |
| | | }, |
| | | handleCancel(e) { |
| | | this.visible = false; |
| | |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | a { |
| | | color: black; |
| | | } |
| | | |
| | | </style> |
| | |
| | | }, |
| | | typeId: function(newValue, oldValue) { |
| | | this.busy = true; |
| | | this.$message.info('loading', 0.3); |
| | | |
| | | //有条件不刷新 |
| | | if (newValue == undefined && oldValue != "") { |
| | | return |
| | | } |
| | | |
| | | |
| | | this.$message.info('loading', 0.3); |
| | | this.onChange(1); |
| | | }, |
| | | }, |
| | |
| | | <template> |
| | | <div> |
| | | <replyBox ref="commentBoxId" v-bind="$attrs" @sendMsg="sendMsg()"></replyBox> |
| | | <a-collapse v-if="foldReply"> |
| | | <a-collapse-panel key="replyPanel" header="回复"> |
| | | <replyBox ref="commentBoxId" v-bind="$attrs" @sendMsg="sendMsg()"></replyBox> |
| | | </a-collapse-panel> |
| | | </a-collapse> |
| | | <div v-else> |
| | | <replyBox ref="commentBoxId" v-bind="$attrs" @sendMsg="sendMsg()"></replyBox> |
| | | </div> |
| | | |
| | | <a-modal v-model="visible" :title="replyTaget" :footer="null" |
| | | :bodyStyle="{'overflow':'overlay','maxHeight': '550px','scrollbarWidth': 'none'}"> |
| | | <replyBox ref="replyBoxId" v-bind="$attrs" @sendMsg="sendMsg()"></replyBox> |
| | |
| | | components: { |
| | | replyBox |
| | | }, |
| | | props: { |
| | | "foldReply": { |
| | | default: false, |
| | | }, |
| | | }, |
| | | methods: { |
| | | updateCommentList(articleId) { |
| | | queryBlogCommentList({ |
| | |
| | | <template> |
| | | |
| | | <div> |
| | | <div class="visitInfo"> |
| | | <a-form-model ref="myForm" layout="inline" :rules="rules" :model="form" :label-col="labelCol" |
| | |
| | | v-show="form.nickName=='inleft'||form.nickName=='笔墨'||form.nickName=='阿墨'"> |
| | | <a-input-password v-model="form.authCode" autocomplete='new-password' type="password" |
| | | placeholder="我的授权码"> |
| | | <a-icon slot="prefix" type="lock" style="color:rgba(0,0,0,.25)"/> |
| | | <a-icon slot="prefix" type="lock" style="color:rgba(0,0,0,.25)" /> |
| | | </a-input-password> |
| | | </a-form-model-item> |
| | | </a-form-model> |
| | |
| | | </div> |
| | | </a-comment> |
| | | </div> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | <div class="entry-post"> |
| | | <div class="entry-header"> |
| | | <h5 class="entry-title"> |
| | | <a href="#" rel="bookmark">{{item.title}}</a> |
| | | <router-link :to="{path:'videoDetail',query:{id:item.id}}" :title="item.title"> |
| | | {{item.title}} |
| | | </router-link> |
| | | </h5> |
| | | <div class="post_content"> |
| | | {{item.introduce}} |
| | |
| | | <div class="post-on"> |
| | | <span class="entry-date"> |
| | | <a-icon type="calendar" /> |
| | | <a href="#" rel="bookmark"> |
| | | <a href="#" rel="bookmark"> |
| | | {{item.publishDate}} |
| | | </a> |
| | | </span> |
| | |
| | | } from '../../api/blogArticle.js' |
| | | |
| | | import myConstant from "../../config/myConstant.js" |
| | | |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
New file |
| | |
| | | <template> |
| | | <div> |
| | | <div class="boxMain"> |
| | | <videoPlayBox></videoPlayBox> |
| | | </div> |
| | | <div class="articleComment"> |
| | | <comment ref="myComment" :articleId="articleId" :isAllowedComment="isAllowedComment" :foldReply="true"/> |
| | | </div> |
| | | </div> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | history |
| | | } from '../../api/blogArticleComment.js' |
| | | import videoPlayBox from "../mini/box15-videoPlayBox.vue" |
| | | import comment from "../mini/box12-comment.vue" |
| | | |
| | | export default { |
| | | components: { |
| | | videoPlayBox, |
| | | comment, |
| | | }, |
| | | watch: { |
| | | // '$route'(to, from) { |
| | | // if ("mdDetail" === to.name) { |
| | | // this.articleId = this.$route.query.id; |
| | | // this.articleFileType = this.$route.query.articleFileType; |
| | | // } |
| | | // }, |
| | | articleId: function(newValue, oldValue) { |
| | | if (newValue == undefined || newValue == null || newValue == "") { |
| | | this.showMsg = true; |
| | | this.errorMsg = "日志id参数缺失"; |
| | | } else { |
| | | this.$nextTick(function() { |
| | | this.$refs.myComment.updateCommentList(this.articleId); |
| | | }) |
| | | } |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | | articleId: "", |
| | | isAllowedComment: false |
| | | } |
| | | }, |
| | | methods: { |
| | | showVideo(param) { |
| | | this.articleId = param.id |
| | | }, |
| | | }, |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | a { |
| | | color: black; |
| | | } |
| | | |
| | | .boxMain { |
| | | display: flex; |
| | | justify-content: center; |
| | | padding: 20px; |
| | | } |
| | | </style> |
| | |
| | | </div> |
| | | <hr> |
| | | <span>{{sentence}}</span> |
| | | <!-- <span>之所以叫月台,是希望,能在这里出现的视频会越来越多,熙熙囔囔</span> --> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | .markdown-body, |
| | | .articleComment { |
| | | min-height: 750px; |
| | | padding: 35px 20px 10px 20px; |
| | | min-height: 70%; |
| | | padding: 35px 20px 30px 20px; |
| | | box-shadow: 8px 8px 18px rgba(0, 0, 0, 0.1), |
| | | -8px -8px 18px #ffffff; |
| | | } |
| | |
| | | </a-drawer> |
| | | </div> |
| | | |
| | | <div class="blog-main"> |
| | | <div class="blog-main "> |
| | | |
| | | <a-row> |
| | | <keep-alive> |
| | |
| | | |
| | | |
| | | .blog-main { |
| | | min-height: 860px; |
| | | margin-top: 80px; |
| | | padding-left: 3%; |
| | | padding-right: 3%; |
| | |
| | | <a-col v-bind="colApiMain" class="holdHeight"> |
| | | <!-- <box8></box8> --> |
| | | <!-- <boxLeft></boxLeft> --> |
| | | <myVideo v-on="$listeners"></myVideo> |
| | | <!-- <myVideo v-on="$listeners"></myVideo> --> |
| | | <keep-alive> |
| | | <router-view v-on="$listeners"></router-view> |
| | | </keep-alive> |
| | | </a-col> |
| | | |
| | | </a-row> |
| | |
| | | |
| | | colApiMain: { |
| | | xs: { |
| | | span: 24, |
| | | offset: 0, |
| | | span: 22, |
| | | offset: 1, |
| | | }, |
| | | sm: { |
| | | span: 22, |
| | |
| | | import tagInfo from '../components/mini/tagInfo.vue' |
| | | import boxFriend from '../components/mini/box-friend.vue' |
| | | import mdDetail from '../components/mini/mdDetail.vue' |
| | | import videoDetail from '../components/mini/box16-videoDetail.vue' |
| | | import videoList from '../components/mini/box14-video.vue' |
| | | |
| | | |
| | | export const asyncRouterMap = [{ |
| | |
| | | { |
| | | path: '/platform', |
| | | component: platform, |
| | | children: [{ |
| | | path: '/', |
| | | name: "videoList", |
| | | component: videoList, |
| | | },{ |
| | | path: '/videoDetail', |
| | | name: "videoDetail", |
| | | component: videoDetail, |
| | | }] |
| | | }, |
| | | { |
| | | path: '/main3', |