王士厅
@@ -294,7 +294,7 @@ export struct ImageAndTextPageComponent { @@ -294,7 +294,7 @@ export struct ImageAndTextPageComponent {
294 if (this.detailContentEmpty) { 294 if (this.detailContentEmpty) {
295 this.emptyType = 18 295 this.emptyType = 18
296 } 296 }
297 - console.log(TAG, "dl", JSON.stringify(detailBeans)) 297 + console.log(TAG, "dl1111111111", JSON.stringify(detailBeans[0]))
298 if (detailBeans && detailBeans.length > 0) { 298 if (detailBeans && detailBeans.length > 0) {
299 this.contentDetailData = detailBeans[0]; 299 this.contentDetailData = detailBeans[0];
300 let dateTime = 300 let dateTime =
@@ -340,7 +340,7 @@ export struct ImageAndTextPageComponent { @@ -340,7 +340,7 @@ export struct ImageAndTextPageComponent {
340 imei: HttpUtils.getImei(), 340 imei: HttpUtils.getImei(),
341 userId: HttpUtils.getUserId(), 341 userId: HttpUtils.getUserId(),
342 contentId: String(this.contentDetailData?.newsId), 342 contentId: String(this.contentDetailData?.newsId),
343 - recType: Number(this.contentDetailData?.reLInfo?.relType), 343 + recType: 1,
344 contentType: this.contentDetailData?.newsType, 344 contentType: this.contentDetailData?.newsType,
345 relId: this.contentDetailData?.reLInfo?.relId, 345 relId: this.contentDetailData?.reLInfo?.relId,
346 channelId: String(this.contentDetailData?.reLInfo?.channelId) 346 channelId: String(this.contentDetailData?.reLInfo?.channelId)
@@ -26,6 +26,7 @@ export default struct MinePageUserSimpleInfoUI { @@ -26,6 +26,7 @@ export default struct MinePageUserSimpleInfoUI {
26 this.userName = SPHelper.default.getSync(SpConstants.USER_NAME,"") as string 26 this.userName = SPHelper.default.getSync(SpConstants.USER_NAME,"") as string
27 this.headPhotoUrl = SPHelper.default.getSync(SpConstants.USER_HEAD_PHOTO_URL,"") as string 27 this.headPhotoUrl = SPHelper.default.getSync(SpConstants.USER_HEAD_PHOTO_URL,"") as string
28 28
  29 + ///用户类型1普通用户
29 let userType = SPHelper.default.getSync(SpConstants.USER_Type,"") as string 30 let userType = SPHelper.default.getSync(SpConstants.USER_Type,"") as string
30 if (userType && userType.length > 0) { 31 if (userType && userType.length > 0) {
31 this.userType = userType 32 this.userType = userType
@@ -44,7 +45,7 @@ export default struct MinePageUserSimpleInfoUI { @@ -44,7 +45,7 @@ export default struct MinePageUserSimpleInfoUI {
44 Stack(){ 45 Stack(){
45 46
46 Image(this.isLogin?(this.headPhotoUrl?this.headPhotoUrl:this.userType === "1"?$r('app.media.default_head_userPage'):$r('app.media.AccountOwner_DefaultIcon')):$r('app.media.default_head_userPage')) 47 Image(this.isLogin?(this.headPhotoUrl?this.headPhotoUrl:this.userType === "1"?$r('app.media.default_head_userPage'):$r('app.media.AccountOwner_DefaultIcon')):$r('app.media.default_head_userPage'))
47 - .alt($r('app.media.default_head_userPage')) 48 + .alt(this.userType === "1"?$r('app.media.default_head_userPage'):$r('app.media.AccountOwner_DefaultIcon'))
48 .width(`${this.calcHeight(120)}lpx`) 49 .width(`${this.calcHeight(120)}lpx`)
49 .height(`${this.calcHeight(120)}lpx`) 50 .height(`${this.calcHeight(120)}lpx`)
50 .objectFit(ImageFit.Cover) 51 .objectFit(ImageFit.Cover)
@@ -2,7 +2,7 @@ import { CompDTO, ContentDTO } from 'wdBean'; @@ -2,7 +2,7 @@ import { CompDTO, ContentDTO } from 'wdBean';
2 import { CommonConstants } from 'wdConstant'; 2 import { CommonConstants } from 'wdConstant';
3 import { CardParser } from '../CardParser'; 3 import { CardParser } from '../CardParser';
4 4
5 -const RECOMMEND_LIST_TITLE = '相关推荐' 5 +const RECOMMEND_LIST_TITLE = '推荐推荐'
6 6
7 @Component 7 @Component
8 export struct RecommendList { 8 export struct RecommendList {
@@ -185,7 +185,8 @@ export struct DetailPlayShortVideoPage { @@ -185,7 +185,8 @@ export struct DetailPlayShortVideoPage {
185 } 185 }
186 186
187 this.videoLandScape = this.contentDetailData.videoInfo[0]?.videoLandScape 187 this.videoLandScape = this.contentDetailData.videoInfo[0]?.videoLandScape
188 - this.ratio = (this.contentDetailData.videoInfo[0]?.resolutionWidth || 16) / 188 + this.ratio = this.videoLandScape == 2 ? (this.contentDetailData.videoInfo[0]?.resolutionWidth || 9) /
  189 + (this.contentDetailData.videoInfo[0]?.resolutionHeight || 16):(this.contentDetailData.videoInfo[0]?.resolutionWidth || 16) /
189 (this.contentDetailData.videoInfo[0]?.resolutionHeight || 9) 190 (this.contentDetailData.videoInfo[0]?.resolutionHeight || 9)
190 this.playerController.onCanplay = async () => { 191 this.playerController.onCanplay = async () => {
191 this.ratio = this.playerController.videoWidth / this.playerController.videoHeight 192 this.ratio = this.playerController.videoWidth / this.playerController.videoHeight
@@ -212,7 +213,6 @@ export struct DetailPlayShortVideoPage { @@ -212,7 +213,6 @@ export struct DetailPlayShortVideoPage {
212 213
213 ///解决初始化竖屏视频时 this.ratio未更新导致显示错误 214 ///解决初始化竖屏视频时 this.ratio未更新导致显示错误
214 this.calculatePlayerRect() 215 this.calculatePlayerRect()
215 -  
216 } 216 }
217 217
218 contentTrackingDict() { 218 contentTrackingDict() {