百富门答题小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

54 lines
798 B

<template>
<view class="page">
<view class="video" v-if="video">
<video :src="video"></video>
</view>
<uv-parse :content="content"></uv-parse>
<view class="uni-color-btn">
返回
</view>
</view>
</template>
<script>
export default {
data() {
return {
content : '',
id : 0,
video : '',
}
},
onLoad({id}) {
this.id = id
this.getBrand()
},
methods: {
getBrand(){
this.$api('getBrand', res => {
if(res.code == 200){
res.result.forEach(n => {
if(this.id == n.id){
this.content = n.details
this.video = n.vo
}
})
}
})
},
}
}
</script>
<style scoped lang="scss">
.page{
padding-bottom: 100rpx;
.video{
width: 100%;
video{
width: 100%;
height: 420rpx;
}
}
}
</style>