Showing
6 changed files
with
12 additions
and
11 deletions
| @@ -141,8 +141,8 @@ export struct ENewspaperPageComponent { | @@ -141,8 +141,8 @@ export struct ENewspaperPageComponent { | ||
| 141 | // bottomSafeHeight 底导高度 topSafeHeight 顶导高度 44 顶部高度 60 底部高度 | 141 | // bottomSafeHeight 底导高度 topSafeHeight 顶导高度 44 顶部高度 60 底部高度 |
| 142 | // newspaper_shadow 49 高度 e_newspaper_content 59 margin top | 142 | // newspaper_shadow 49 高度 e_newspaper_content 59 margin top |
| 143 | let height = | 143 | let height = |
| 144 | - screenHeight - this.bottomSafeHeight - this.topSafeHeight - vp2px(44) - vp2px(60) - vp2px(49) - vp2px(59) | ||
| 145 | - this.picHeight = height | 144 | + // screenHeight - this.bottomSafeHeight - this.topSafeHeight - vp2px(44) - vp2px(60) - vp2px(49) - vp2px(59) |
| 145 | + this.picHeight = (this.picWidth * 506)/355 | ||
| 146 | 146 | ||
| 147 | let ratio = this.ratio == '100%' ? 1 : 0.5 | 147 | let ratio = this.ratio == '100%' ? 1 : 0.5 |
| 148 | this.picWidth = this.picWidth * ratio | 148 | this.picWidth = this.picWidth * ratio |
| @@ -279,7 +279,7 @@ export struct ENewspaperPageComponent { | @@ -279,7 +279,7 @@ export struct ENewspaperPageComponent { | ||
| 279 | .indicator(false) | 279 | .indicator(false) |
| 280 | .loop(false) | 280 | .loop(false) |
| 281 | .displayCount(1) | 281 | .displayCount(1) |
| 282 | - .margin({ top: 59, left: 10, right: 10 }) | 282 | + .margin({ top: 69, left: 10, right: 10 }) |
| 283 | .id('e_newspaper_content') | 283 | .id('e_newspaper_content') |
| 284 | .alignRules({ | 284 | .alignRules({ |
| 285 | top: { anchor: "e_newspaper_top", align: VerticalAlign.Bottom }, | 285 | top: { anchor: "e_newspaper_top", align: VerticalAlign.Bottom }, |
| @@ -122,7 +122,8 @@ export struct LiveLikeComponent { | @@ -122,7 +122,8 @@ export struct LiveLikeComponent { | ||
| 122 | 122 | ||
| 123 | if (this.likeCount != 0) { | 123 | if (this.likeCount != 0) { |
| 124 | RelativeContainer() { | 124 | RelativeContainer() { |
| 125 | - Image(this.styleType == 1 ? $r('app.media.comment_icon_number_bg') : $r('app.media.ic_like_back_Select')) | 125 | + ///2是直播,直播的单独一种样式, |
| 126 | + Image( this.contentDetailData.newsType == 2 ? $r('app.media.live_like_icon_number_bg') : (this.styleType == 1 ? $r('app.media.comment_icon_number_bg') : $r('app.media.ic_like_back_Select'))) | ||
| 126 | .objectFit(ImageFit.Fill) | 127 | .objectFit(ImageFit.Fill) |
| 127 | .height(10) | 128 | .height(10) |
| 128 | .resizable({ | 129 | .resizable({ |
sight_harmony/features/wdComponent/src/main/resources/base/media/live_like_icon_number_bg.png
0 → 100644
458 Bytes
| @@ -219,7 +219,7 @@ | @@ -219,7 +219,7 @@ | ||
| 219 | <div class="cdescrip_text" v-if="details.rmhDesc" @click="skipCustomerNumberPage">{{details.rmhDesc}}</div> | 219 | <div class="cdescrip_text" v-if="details.rmhDesc" @click="skipCustomerNumberPage">{{details.rmhDesc}}</div> |
| 220 | </div> | 220 | </div> |
| 221 | <!-- @click.stop阻止事件冒泡 --> | 221 | <!-- @click.stop阻止事件冒泡 --> |
| 222 | - <template v-if="!isOwer"> | 222 | + <template v-if="!isOwer && showButton"> |
| 223 | <div class="clook-btn clook" @click.stop="clookBtn" v-if="clookStatusSee || showClook"> | 223 | <div class="clook-btn clook" @click.stop="clookBtn" v-if="clookStatusSee || showClook"> |
| 224 | <template v-if="clookBtnActive"> | 224 | <template v-if="clookBtnActive"> |
| 225 | <img class="clook-loading anticon-spin" src="./image/loading_clock.svg" alt=""> | 225 | <img class="clook-loading anticon-spin" src="./image/loading_clock.svg" alt=""> |
| @@ -50,6 +50,7 @@ const app = Vue.createApp({ | @@ -50,6 +50,7 @@ const app = Vue.createApp({ | ||
| 50 | const isRmh = ref(null) | 50 | const isRmh = ref(null) |
| 51 | const isNewspaper = ref(null) | 51 | const isNewspaper = ref(null) |
| 52 | const browseStr = ref('') | 52 | const browseStr = ref('') |
| 53 | + const showButton = ref(false) | ||
| 53 | 54 | ||
| 54 | const state = reactive({ | 55 | const state = reactive({ |
| 55 | clientHeight: 0, | 56 | clientHeight: 0, |
| @@ -1051,11 +1052,13 @@ const app = Vue.createApp({ | @@ -1051,11 +1052,13 @@ const app = Vue.createApp({ | ||
| 1051 | headers: state.appHeader, | 1052 | headers: state.appHeader, |
| 1052 | showError: false | 1053 | showError: false |
| 1053 | }) | 1054 | }) |
| 1055 | + showButton.value = true | ||
| 1054 | if (response.success) { | 1056 | if (response.success) { |
| 1055 | clookStatusSee.value = response.data[0].status == '1' ? false : true // '1' 是已关注 '0'是未关注 | 1057 | clookStatusSee.value = response.data[0].status == '1' ? false : true // '1' 是已关注 '0'是未关注 |
| 1056 | } | 1058 | } |
| 1057 | } else { | 1059 | } else { |
| 1058 | if (state.creatorID == state.details.rmhId) { | 1060 | if (state.creatorID == state.details.rmhId) { |
| 1061 | + showButton.value = true | ||
| 1059 | isOwer.value = true | 1062 | isOwer.value = true |
| 1060 | clookStatusSee.value = false | 1063 | clookStatusSee.value = false |
| 1061 | nextTick(() => { | 1064 | nextTick(() => { |
| @@ -1090,6 +1093,7 @@ const app = Vue.createApp({ | @@ -1090,6 +1093,7 @@ const app = Vue.createApp({ | ||
| 1090 | const code = statusResponseMap.code | 1093 | const code = statusResponseMap.code |
| 1091 | const data = statusResponseMap.data | 1094 | const data = statusResponseMap.data |
| 1092 | if ([ 200, '0' ].includes(code)) { | 1095 | if ([ 200, '0' ].includes(code)) { |
| 1096 | + showButton.value = true | ||
| 1093 | if (data) { | 1097 | if (data) { |
| 1094 | if (data[0].status == '1') { | 1098 | if (data[0].status == '1') { |
| 1095 | state.initClockStatus = !initStatus | 1099 | state.initClockStatus = !initStatus |
| @@ -1949,6 +1953,7 @@ const app = Vue.createApp({ | @@ -1949,6 +1953,7 @@ const app = Vue.createApp({ | ||
| 1949 | isNewspaper.value = false | 1953 | isNewspaper.value = false |
| 1950 | voteInit.value = false | 1954 | voteInit.value = false |
| 1951 | showClook.value = false | 1955 | showClook.value = false |
| 1956 | + showButton.value = false | ||
| 1952 | optionList.value = [] | 1957 | optionList.value = [] |
| 1953 | subjectList.value = [] | 1958 | subjectList.value = [] |
| 1954 | channelList.value = [] | 1959 | channelList.value = [] |
| @@ -2074,6 +2079,7 @@ const app = Vue.createApp({ | @@ -2074,6 +2079,7 @@ const app = Vue.createApp({ | ||
| 2074 | optionList, | 2079 | optionList, |
| 2075 | showClook, | 2080 | showClook, |
| 2076 | clookStatusSee, | 2081 | clookStatusSee, |
| 2082 | + showButton, | ||
| 2077 | timeLine, | 2083 | timeLine, |
| 2078 | shareOpen, | 2084 | shareOpen, |
| 2079 | hasReadCount, | 2085 | hasReadCount, |
| @@ -56,17 +56,11 @@ export struct PlayerComponent { | @@ -56,17 +56,11 @@ export struct PlayerComponent { | ||
| 56 | this.playerController.onVideoSizePlayerComponentBack = (width: number, height: number) => { | 56 | this.playerController.onVideoSizePlayerComponentBack = (width: number, height: number) => { |
| 57 | if(width>height){ | 57 | if(width>height){ |
| 58 | this.isLarge = false | 58 | this.isLarge = false |
| 59 | - if(this.liveStreamType == 1) { ///后台选择的是竖屏流,实际流画面是横屏,展示样式和安卓保持一致 | ||
| 60 | - this.isLarge = true | ||
| 61 | - this.playerController?.setScaleMode(AliScaleMode.SCALE_ASPECT_FILL) | ||
| 62 | - return | ||
| 63 | - } | ||
| 64 | if(width > 2){ | 59 | if(width > 2){ |
| 65 | this.liveStreamType = 0 | 60 | this.liveStreamType = 0 |
| 66 | } | 61 | } |
| 67 | }else{ | 62 | }else{ |
| 68 | this.isLarge = true | 63 | this.isLarge = true |
| 69 | - this.playerController?.setScaleMode(AliScaleMode.SCALE_ASPECT_FILL) | ||
| 70 | } | 64 | } |
| 71 | } | 65 | } |
| 72 | } | 66 | } |
-
Please register or login to post a comment