1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <template>
- <view class="body">
- <view class="top_bg">
- <topBox></topBox>
- <view @click="backBtn" class="back">⬅返回上一级</view>
- </view>
- <view class="vdo_box">
- <video style="width: 80%; height: 70%" id="myVideo" :src="list.video" autoplay loop="true" controls></video>
- </view>
- </view>
- </template>
- <script>
- let that;
- export default {
- data() {
- return { list: [] };
- },
- onLoad(o) {
- console.log(o.id, '是朋友');
- that = this;
- this.getContentDetails(o);
- },
- methods: {
- // 详情
- getContentDetails(o) {
- this.$api.getContentDetails(
- {
- main_body_id: 5,
- id: o.id
- },
- function (res) {
- that.list = res.data;
- console.log(that.list, 'list');
- }
- );
- },
- backBtn() {
- uni.navigateBack({
- delta: 1
- });
- }
- }
- };
- </script>
- <style>
- .body {
- width: 100%;
- height: 100vh;
- background: url('/static/img/image5.png') no-repeat center;
- background-size: 100% 100%;
- background-attachment: fixed;
- position: fixed;
- }
- /deep/.uni-video-container {
- background-color: transparent !important;
- }
- /deep/.uni-video-cover {
- background-color: transparent !important;
- }
- .vdo_box {
- width: 100%;
- height: 100%;
- margin-top: 12%;
- margin-left: 10%;
- }
- .top_bg {
- width: 100%;
- /* height: 300rpx; */
- position: absolute;
- /* font-size: 48rpx; */
- color: #ffffff;
- /* letter-spacing: 0.1em; */
- background: linear-gradient(10deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2) 100%);
- }
- .back {
- width: 15%;
- height: 5%;
- margin-left: 5%;
- margin-top: -2%;
- cursor: pointer;
- font-size: 12px;
- color: #ffffff;
- letter-spacing: 0.3em;
- }
- </style>
|