<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>
|