This commit is contained in:
闫世杰 2023-09-04 14:00:35 +08:00
parent 5794abf2c5
commit 1594b4321c
2 changed files with 235 additions and 229 deletions

View File

@ -18,9 +18,11 @@
}
}
],
"subPackages": [{
"subPackages": [
{
"root": "pagesA/",
"pages": [{
"pages": [
{
"path": "msg/msg",
"style": {
"enablePullDownRefresh": true,
@ -195,7 +197,8 @@
},
{
"root": "pagesB/",
"pages": [{
"pages": [
{
"path": "ArtRace/ArtRace",
"style": {
"navigationBarTitleText": "文艺比赛",
@ -673,18 +676,16 @@
"usingComponents": {
"player-component": "plugin://player/video"
}
}
}
// 线-
// {
// "path": "xskz/details",
// "style": {
// "navigationBarTitleText": "线上看展-详情",
// "enablePullDownRefresh": false
// // "usingComponents": {
// // "player-component": "plugin://player/video"
// // }
// "enablePullDownRefresh": false,
// "usingComponents": {
// "player-component": "plugin://player/video"
// }
// }
// }
]

View File

@ -3,12 +3,12 @@
<view class="forms">
<view class="teamBox" v-for="item in list" :key="item.id">
<view class="teamBox-top" v-if="item.type == 'locality'">
<video id="myVideo" :src="item.file" @error="videoErrorCallback"
style="width: 750rpx;height: 500rpx;" controls></video>
<video id="myVideo" :src="item.file" @error="videoErrorCallback" style="width: 750rpx;height: 500rpx;"
controls></video>
<!-- <player-component vid="p0743x9grjv"></player-component> -->
</view>
<view class="teamBox-top" v-else-if="item.type == 'tencent'">
<player-component :vid="item.linkPath"></player-component>
<player-component :autoplay="false" :enablePlayGesture="true" :vid="item.linkPath"></player-component>
</view>
<view class="teamBox-bottom">
<view class="interactive">
@ -19,19 +19,21 @@
<image src="../../static/workDetail/heart2.png" class="bot_img" v-if="item.isGreat"
@click="clickHeart()">
</image>
<image src="../../static/workDetail/heart1.png" class="bot_img" v-else @click="clickHeart(item.isGreat,item.id)">
<image src="../../static/workDetail/heart1.png" class="bot_img" v-else
@click="clickHeart(item.isGreat, item.id)">
</image>
<view class="title" @click="clickHeart(item.isGreat,item.id)">
{{item.likes}}
<view class="title" @click="clickHeart(item.isGreat, item.id)">
{{ item.likes }}
</view>
</view>
<view class="interactive">
<image src="../../static/workDetail/star2.png" class="bot_img" v-if="item.isColl"
@click="clickStar()"></image>
<image src="../../static/workDetail/star1.png" class="bot_img" v-else @click="clickStar(item.isColl,item.id)">
<image src="../../static/workDetail/star1.png" class="bot_img" v-else
@click="clickStar(item.isColl, item.id)">
</image>
<view class="title" @click="clickStar(item.isColl,item.id)">
{{item.collections}}
<view class="title" @click="clickStar(item.isColl, item.id)">
{{ item.collections }}
</view>
</view>
</view>
@ -41,7 +43,7 @@
</template>
<script>
export default {
export default {
data() {
return {
// tabC: "0",
@ -56,14 +58,17 @@
// this.getData();
this.get();
},
mounted() {},
mounted() {
const store = requirePlugin('player')
console.log(store);
},
methods: {
toTab(val) {
this.tabC = val;
// this.getData()
},
//
clickHeart(val0,val1) {
clickHeart(val0, val1) {
console.log(val1)
if (val0) {
this.http.request('/worksGreat/delGreat?type=3&workId=' + val1, "POST").then(res => {
@ -90,7 +95,7 @@
}
},
//
clickStar(val0,val1) {
clickStar(val0, val1) {
if (val0) {
this.http.request('/worksCollection/delCollection?workId=' + val1 + '&type=3', "POST").then(res => {
if (res.code == 200) {
@ -138,7 +143,7 @@
url: "/pagesD/xskz/details",
});
},
videoErrorCallback: function(e) {
videoErrorCallback: function (e) {
console.log(e.target.errMsg)
uni.showModal({
content: e.target.errMsg,
@ -160,15 +165,15 @@
// });
},
},
};
};
</script>
<style lang="scss">
.wyxx {
.wyxx {
background-color: #fefefe;
}
}
.tabTitle {
.tabTitle {
display: flex;
width: 100%;
background: #ffffff;
@ -203,9 +208,9 @@
background-color: #a02521;
}
}
}
}
.forms {
.forms {
margin: 0 auto 0rpx;
padding-top: 40rpx;
@ -278,5 +283,5 @@
}
}
}
}
}
</style>