Commit 94fabc96 by yanju

举报页修复

parent 433a4f12
......@@ -171,10 +171,6 @@
AlertsCard
},
validate ({ params }) {
// Must be a number
return /^\d+$/.test(params.id)
},
created(){
this.route = this.$route.name;
......@@ -188,6 +184,8 @@
this.detailType = type;
});
this.changeHeader();
this.playOneVideo();
if(!this.$store.state.userProfile.userId){
if(this.$route.path.indexOf('personal-center') !== -1||this.$route.path.indexOf('release') !== -1){
this.$router.replace('/')
......@@ -199,6 +197,7 @@
this.route = route.name;
this.progressShow = true;
this.changeHeader();
this.playOneVideo();
setTimeout(()=>{
this.progressShow = false;
},900)
......@@ -212,6 +211,27 @@
methods:{
playOneVideo(){
// if(process.browser){
// let videoArr=document.getElementsByTagName("video");
// console.log(videoArr);
// for(let i=0;i<videoArr.length;i++){
// videoArr[i].addEventListener("play", function(e){
// console.log('play'+e)
// let this1=this;
// this.play();
// for(let b=0;b<videoArr.length;b++){
// let this2=au[b];
// if(this1!==this2){
// this2.pause();
// }
// }
// });
// }
// }
},
clickToSearch(){
let searchValue = this.searchValue;
......
......@@ -49,10 +49,10 @@
</template>
<script>
import CardContainer from "../../components/pc/cardContainer";
import congfig from '../../action/config';
import CardContainer from "../../components/pc/cardContainer";
import congfig from '../../action/config';
export default {
export default {
name: "report",
components: {CardContainer},
data() {
......@@ -66,8 +66,10 @@ export default {
},
created() {
let url = 'http://www.yunliyunwai/'+this.$route.query.type+'/detail/'+this.$route.query.id;
this.reportLink = url;
if(this.$route.query.type&&this.$route.query.id){
this.reportLink = 'http://www.yunliyunwai/' + this.$route.query.type + '/detail/' + this.$route.query.id;
}
},
methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment