Commit 94fabc96 by yanju

举报页修复

parent 433a4f12
...@@ -171,10 +171,6 @@ ...@@ -171,10 +171,6 @@
AlertsCard AlertsCard
}, },
validate ({ params }) {
// Must be a number
return /^\d+$/.test(params.id)
},
created(){ created(){
this.route = this.$route.name; this.route = this.$route.name;
...@@ -188,6 +184,8 @@ ...@@ -188,6 +184,8 @@
this.detailType = type; this.detailType = type;
}); });
this.changeHeader(); this.changeHeader();
this.playOneVideo();
if(!this.$store.state.userProfile.userId){ if(!this.$store.state.userProfile.userId){
if(this.$route.path.indexOf('personal-center') !== -1||this.$route.path.indexOf('release') !== -1){ if(this.$route.path.indexOf('personal-center') !== -1||this.$route.path.indexOf('release') !== -1){
this.$router.replace('/') this.$router.replace('/')
...@@ -199,6 +197,7 @@ ...@@ -199,6 +197,7 @@
this.route = route.name; this.route = route.name;
this.progressShow = true; this.progressShow = true;
this.changeHeader(); this.changeHeader();
this.playOneVideo();
setTimeout(()=>{ setTimeout(()=>{
this.progressShow = false; this.progressShow = false;
},900) },900)
...@@ -212,6 +211,27 @@ ...@@ -212,6 +211,27 @@
methods:{ 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(){ clickToSearch(){
let searchValue = this.searchValue; let searchValue = this.searchValue;
......
...@@ -49,10 +49,10 @@ ...@@ -49,10 +49,10 @@
</template> </template>
<script> <script>
import CardContainer from "../../components/pc/cardContainer"; import CardContainer from "../../components/pc/cardContainer";
import congfig from '../../action/config'; import congfig from '../../action/config';
export default { export default {
name: "report", name: "report",
components: {CardContainer}, components: {CardContainer},
data() { data() {
...@@ -66,8 +66,10 @@ export default { ...@@ -66,8 +66,10 @@ export default {
}, },
created() { created() {
let url = 'http://www.yunliyunwai/'+this.$route.query.type+'/detail/'+this.$route.query.id; if(this.$route.query.type&&this.$route.query.id){
this.reportLink = url; this.reportLink = 'http://www.yunliyunwai/' + this.$route.query.type + '/detail/' + this.$route.query.id;
}
}, },
methods: { 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