47 lines
1.2 KiB
Vue
47 lines
1.2 KiB
Vue
<!--
|
|
* @Author: lvy lvy
|
|
* @Date: 2023-05-18 19:39:44
|
|
* @LastEditors: lvy lvy
|
|
* @LastEditTime: 2023-05-18 20:02:20
|
|
* @FilePath: /redmall-uniapp/pages/user/education/detail.vue
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
-->
|
|
<template>
|
|
<view class="">
|
|
<video v-if="title === '商城动漫介绍视频'" style="width:100% !important"
|
|
src="https://zyhs3-oss.zyihs.com/1ecf535e921f4ebbc577a60f60754ba0.mp4"></video>
|
|
<image mode="widthFix" v-else class="bg"
|
|
:src="title == '集团公司介绍视频' ? '../../../static/zhihui_detail1.jpeg' : '../../../static/fengongsi_details.png'">
|
|
</image>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data () {
|
|
return {
|
|
label: {
|
|
商城动漫介绍视频: '商城动漫介绍视频',
|
|
集团公司介绍视频: '集团公司介绍视频',
|
|
经济模型长图: '经济模型长图',
|
|
},
|
|
title: ''
|
|
};
|
|
},
|
|
onLoad (e) {
|
|
this.title = e.title
|
|
uni.setNavigationBarTitle({
|
|
title: e.title
|
|
})
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.bg {
|
|
width: 100%;
|
|
vertical-align: bottom;
|
|
height: 100%;
|
|
}
|
|
</style>
|