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

View File

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