1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<template>
<view class="content">
<video v-if="url" class="video" :src="url" controls></video>
<navigator url="../vlogIndex/vlogIndex">
<button type="default">vlog首页</button>
</navigator>
</view>
</template>
<script>
export default {
data() {
return {
url:""
}
},
onShow() {
// #ifdef MP-WEIXIN
if(wx.hideHomeButton){//隐藏返回首页按钮
wx.hideHomeButton();
}
// #endif
},
onLoad(res){
console.log(res);
this.url=res.url
},
methods: {
}
}
</script>
<style lang="scss" scoped>
.content{padding: 0 20rpx;box-sizing: border-box;margin: 0 auto;
.video{height: 350rpx;border-radius: 10rpx;width: 100%;}
}
</style>