This commit is contained in:
闫世杰 2023-08-03 11:05:28 +08:00
parent 946deb8bbf
commit 1bc50fde4f
4 changed files with 130 additions and 57 deletions

View File

@ -617,7 +617,10 @@
"path": "xskz/details", "path": "xskz/details",
"style": { "style": {
"navigationBarTitleText": "线上看展-详情", "navigationBarTitleText": "线上看展-详情",
"enablePullDownRefresh": false "enablePullDownRefresh": false,
"usingComponents": {
"player-component": "plugin://player/video"
}
} }
} }
] ]

View File

@ -15,26 +15,12 @@
<view class="line"></view> <view class="line"></view>
</view> </view>
</view> </view>
<view class="forms" v-if="tabC == '0'" > <view class="forms" v-if="tabC == '0'">
<view class="teamBox" v-for="(item, index) in 6"> <view class="teamBox" v-for="(item, index) in 2" :key="index">
<view class="teamBox-right"> <view class="teamBox-right">
<image src="../../static/txIcon.png" mode=""></image> <view class="item-image">
</view> <image src="../../static/txIcon.png" mode=""></image>
<view class="teamBox-left">
<view class="teamMinbox-top">
<view class="title">张三</view>
<view class="street">会长</view>
</view> </view>
<view class="teamMinbox-bottom">
xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队
</view>
</view>
</view>
</view>
<view class="forms" v-if="tabC == '1'" >
<view class="teamBox" v-for="(item, index) in 2">
<view class="teamBox-right">
<image src="../../static/txIcon.png" mode=""></image>
</view> </view>
<view class="teamBox-left"> <view class="teamBox-left">
<view class="teamMinbox-top"> <view class="teamMinbox-top">
@ -47,10 +33,36 @@
</view> </view>
</view> </view>
</view> </view>
<view class="forms" v-if="tabC == '2'" > <view class="forms" v-if="tabC == '1'">
<view class="teamBox" v-for="(item, index) in 3"> <view
class="teamBox"
v-for="item in list"
:key="item.id"
@click="onInfo(item.id)"
>
<view class="teamBox-right"> <view class="teamBox-right">
<image src="../../static/txIcon.png" mode=""></image> <view class="item-image">
{{ item.userName }}
<!-- <image src="../../static/txIcon.png" mode=""></image> -->
</view>
</view>
<view class="teamBox-left">
<view class="teamMinbox-top">
<view class="title">{{ item.userName }}</view>
<view class="street">{{ item.identity }}</view>
</view>
<view class="teamMinbox-bottom">
{{ item.introduce }}
</view>
</view>
</view>
</view>
<view class="forms" v-if="tabC == '2'">
<view class="teamBox" v-for="(item, index) in 3" :key="index">
<view class="teamBox-right">
<view class="item-image">
<image src="../../static/txIcon.png" mode=""></image>
</view>
</view> </view>
<view class="teamBox-left"> <view class="teamBox-left">
<view class="teamMinbox-top"> <view class="teamMinbox-top">
@ -71,15 +83,44 @@ export default {
data() { data() {
return { return {
tabC: "0", tabC: "0",
list: [],
}; };
}, },
onShow() { onShow() {
// this.getData(); this.get();
}, },
methods: { methods: {
get() {
this.http
.request("/organPerson/list", {}, "GET")
.then((res) => {
if (res.code == 200) {
this.list = res.data.records;
}
})
.catch((err) => {
uni.showToast({
title: e.data.message,
icon: "none",
});
});
},
toTab(val) { toTab(val) {
this.tabC = val; this.tabC = val;
// this.getData() },
onInfo(obj) {
this.http
.request("/organPerson/details", { id: obj }, "GET")
.then((res) => {
if (res.code == 200) {
}
})
.catch((err) => {
uni.showToast({
title: e.data.message,
icon: "none",
});
});
}, },
}, },
}; };
@ -140,14 +181,30 @@ export default {
display: flex; display: flex;
.teamBox-right { .teamBox-right {
margin-right: 20rpx; margin-right: 20rpx;
image { width: 159rpx;
width: 180rpx; height: 159rpx;
height: 130rpx; .item-image {
background-size: contain; width: 159rpx;
height: 159rpx;
display: flex;
align-items: center;
justify-content: center;
background: rgba(152, 149, 149, 0.5);
color: rgb(240, 239, 239);
font-style: 64rpx;
font-weight: bolder;
border-radius: 50%;
overflow: hidden;
image {
width: 159rpx;
height: 159rpx;
border-radius: 50%;
background-size: contain;
}
} }
} }
.teamBox-left { .teamBox-left {
// width: 400rpx; // width: 400rpx;
.teamMinbox-top { .teamMinbox-top {
display: flex; display: flex;
margin-bottom: 16rpx; margin-bottom: 16rpx;
@ -166,7 +223,7 @@ export default {
color: #a02521; color: #a02521;
margin-left: 18rpx; margin-left: 18rpx;
padding: 2rpx 20rpx; padding: 2rpx 20rpx;
max-width:120rpx; max-width: 120rpx;
overflow: hidden; /* 超出一行文字自动隐藏 */ overflow: hidden; /* 超出一行文字自动隐藏 */
text-overflow: ellipsis; /*文字隐藏后添加省略号*/ text-overflow: ellipsis; /*文字隐藏后添加省略号*/
white-space: nowrap; white-space: nowrap;

View File

@ -1,15 +1,27 @@
<template> <template>
<view> <view>
<player-component vid="p0743x9grjv"></player-component> <player-component
playerid="tvp"
id="tvp-id"
vid="13881752490784308944"
></player-component>
</view> </view>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return {}; return {
store: null,
player: null,
};
},
onShow() {
this.store = requirePlugin("player");
this.player = this.store.get("tvp");
console.log(this.store);
console.log(this.player);
}, },
onShow() {},
mounted() {}, mounted() {},
methods: {}, methods: {},
}; };

View File

@ -24,25 +24,25 @@
</view> </view>
</view> --> </view> -->
<view class="forms"> <view class="forms">
<view class="teamBox" v-for="(item, index) in videoList" :key="item.id"> <view class="teamBox" v-for="(item, index) in list" :key="item.id">
<view class="teamBox-top"> <view class="teamBox-top">
<view class="mask" @click="playMask(index)" v-if="item.play"> <image class="team-image" :src="item.linkPath" mode="scaleToFill" />
<text>{{ item.title }}</text> <view class="mask">
<image src="../../static/play.png"></image> <image src="../../static/play.png"></image>
</view> </view>
</view> </view>
<view class="teamBox-bottom"> <view class="teamBox-bottom">
<view class="interactive"> <view class="interactive">
<image src="../../static/play-1.png" mode=""></image> <image src="../../static/play-1.png" mode=""></image>
<view class="title">{{ item.playback }}</view> <view class="title">{{ item.views }}</view>
</view> </view>
<view class="interactive"> <view class="interactive">
<image src="../../static/workDetail/heart1.png" mode=""></image> <image src="../../static/workDetail/heart1.png" mode=""></image>
<view class="title">{{ item.like }}</view> <view class="title">{{ item.likes }}</view>
</view> </view>
<view class="interactive"> <view class="interactive">
<image src="../../static/workDetail/star1.png" mode=""></image> <image src="../../static/workDetail/star1.png" mode=""></image>
<view class="title">{{ item.collect }}</view> <view class="title">{{ item.collections }}</view>
</view> </view>
</view> </view>
</view> </view>
@ -102,19 +102,19 @@ export default {
}); });
}); });
}, },
playMask(index) { playMask(obj) {
this.videoList[index].play = false; // this.videoList[index].play = false;
var video = document.getElementById("video"); // var video = document.getElementById("video");
// // //
video.addEventListener("pause", function (e) { // video.addEventListener("pause", function (e) {
console.log("暂停播放"); // console.log("");
console.log(e); // console.log(e);
}); // });
// 15ended // // 15ended
video.addEventListener("ended", function (e) { // video.addEventListener("ended", function (e) {
console.log("视频播放完了"); // console.log("");
console.log(e); // console.log(e);
}); // });
}, },
}, },
}; };
@ -167,17 +167,18 @@ export default {
margin: 40rpx auto 0rpx; margin: 40rpx auto 0rpx;
.teamBox { .teamBox {
.teamBox-top { .teamBox-top {
height: 400rpx;
position: relative; position: relative;
// video {
// position: relative; .team-image {
// } width: 100%;
height: 400rpx;
border: 2px solid red;
}
.mask { .mask {
position: absolute; position: absolute;
top: 0; top: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: rgba(0, 0, 0, 0.1);
z-index: 99; z-index: 99;
text { text {
// position: absolute; // position: absolute;