From 0f2090552e146799f7b72568ac989fbb5faed61a Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Mon, 30 Sep 2024 12:00:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 1 + api/api.js | 10 ++++++++++ components/base/tabbar.vue | 25 ++++++++++++++++++++++++- pages/index/index.vue | 30 +++++++++++++++++++++--------- pages/publish/actorDetail.vue | 31 ++++++++++++++++++++++--------- pages/publish/actorRelease.vue | 10 ++++++---- pages/publish/publishPost.vue | 9 ++++++--- pages_mine/publish/addWorks.vue | 10 ++++++---- pages_mine/publish/competition.vue | 8 ++++++-- pages_mine/publish/worksDetail.vue | 17 +++++++++++++---- store/store.js | 26 +++++++++++++++++++------- 11 files changed, 134 insertions(+), 43 deletions(-) diff --git a/App.vue b/App.vue index 42063a3..2f815fe 100644 --- a/App.vue +++ b/App.vue @@ -4,6 +4,7 @@ }, onShow: function() { this.$store.commit('initConfig') + // this.$store.commit('getIsVedio') }, onHide: function() { } diff --git a/api/api.js b/api/api.js index 71a0435..422fc30 100644 --- a/api/api.js +++ b/api/api.js @@ -259,11 +259,21 @@ const config = { //小程序-登录相关接口 + // 获取是否可播放视频接口 + getIsVedio: { + url: '/api/login/getIsVedio', + method: 'GET', + }, // 获取隐私政策 getPrivacyPolicy: { url: '/api/login/getPrivacyPolicy', method: 'GET', }, + // 获取配置 + getConfig: { + url: '/api/login/getConfig', + method: 'GET', + }, // 获取发布帖子发布需知 getPublishPostNotice: { url: '/api/login/getPublishPostNotice', diff --git a/components/base/tabbar.vue b/components/base/tabbar.vue index bf84ad5..db05e2c 100644 --- a/components/base/tabbar.vue +++ b/components/base/tabbar.vue @@ -4,6 +4,7 @@ :class="{item : true, active : select == index}" v-for="(item, index) in list" :key="index" + v-if="isVedio || index != 1" @click="toPath(item, index)"> { + console.log('$forceUpdate', this.isVedio); + this.$forceUpdate() + }, 500) + + setTimeout(() => { + clearInterval(this.inter) + this.inter = null + }, 20000) + }, + beforeDestroy() { + if(this.inter){ + clearInterval(this.inter) + } + }, methods : { toPath(item, index){ if(index == this.select){ diff --git a/pages/index/index.vue b/pages/index/index.vue index 89fefce..228e0ef 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -55,14 +55,16 @@ @@ -135,8 +137,6 @@ total : 0, } }, - computed : { - }, //滚动到屏幕底部 onReachBottom() { console.log("======首页滑动到底部触发====") @@ -213,7 +213,12 @@ item.masterpieceId }) } - } + }, + toActor(item){ + uni.navigateTo({ + url: '/pages/publish/actorDetail?id=' + item.id + }) + }, } } @@ -293,14 +298,22 @@ align-items: center; flex-direction: column; width: 100%; + position: relative; image{ width: 100%; - height: 180rpx; + height: 360rpx; } .swiper-item-content{ - margin-top: 15rpx; + position: absolute; + bottom: 0; + left: 0; + z-index: 99; display: flex; - width: 80%; + background-color: #00000055; + color: #fff; + padding: 20rpx; + width: 100%; + box-sizing: border-box; .left{ .title{ font-weight: 900; @@ -308,7 +321,6 @@ } .info-from{ font-size: 26rpx; - color: #777; display: flex; } } diff --git a/pages/publish/actorDetail.vue b/pages/publish/actorDetail.vue index b2595d4..2072333 100644 --- a/pages/publish/actorDetail.vue +++ b/pages/publish/actorDetail.vue @@ -3,15 +3,14 @@ - + height="420rpx"> - @@ -21,13 +20,13 @@ {{ item.details.name }} - ¥{{ item.details.money }} + ¥{{ item.details.money }}/天 近30天收益:¥{{ item.dayMoney }} - + 联系方式:{{ item.details.phone }} @@ -63,7 +62,8 @@ :detail="item.details"/> - + @@ -98,6 +98,7 @@ diff --git a/pages_mine/publish/worksDetail.vue b/pages_mine/publish/worksDetail.vue index 8a4b2d2..d34e7bb 100644 --- a/pages_mine/publish/worksDetail.vue +++ b/pages_mine/publish/worksDetail.vue @@ -4,8 +4,7 @@ @@ -58,7 +57,8 @@ - + @@ -74,6 +74,7 @@