Showing
2 changed files
with
22 additions
and
22 deletions
| @@ -88,7 +88,7 @@ export struct OperationListView { | @@ -88,7 +88,7 @@ export struct OperationListView { | ||
| 88 | } else { | 88 | } else { |
| 89 | this.interactData.likeNum = Number(this.interactData.likeNum) - 1 | 89 | this.interactData.likeNum = Number(this.interactData.likeNum) - 1 |
| 90 | } | 90 | } |
| 91 | - console.log('点赞、取消点赞==', this.newsStatusOfUser?.likeStatus, this.interactData?.likeNum) | 91 | + // console.log('点赞、取消点赞==', this.newsStatusOfUser?.likeStatus, this.interactData?.likeNum) |
| 92 | // this.queryContentInteractCount() | 92 | // this.queryContentInteractCount() |
| 93 | } | 93 | } |
| 94 | 94 | ||
| @@ -124,7 +124,7 @@ export struct OperationListView { | @@ -124,7 +124,7 @@ export struct OperationListView { | ||
| 124 | } else { | 124 | } else { |
| 125 | this.interactData.collectNum = Number(this.interactData.collectNum) - 1 | 125 | this.interactData.collectNum = Number(this.interactData.collectNum) - 1 |
| 126 | } | 126 | } |
| 127 | - console.log('收藏、取消收藏==', this.newsStatusOfUser?.collectStatus, this.interactData?.collectNum) | 127 | + // console.log('收藏、取消收藏==', this.newsStatusOfUser?.collectStatus, this.interactData?.collectNum) |
| 128 | } | 128 | } |
| 129 | }) | 129 | }) |
| 130 | 130 | ||
| @@ -146,7 +146,7 @@ export struct OperationListView { | @@ -146,7 +146,7 @@ export struct OperationListView { | ||
| 146 | this.interactData.collectNum = res.data[0]?.collectNum | 146 | this.interactData.collectNum = res.data[0]?.collectNum |
| 147 | this.interactData.commentNum = res.data[0]?.commentNum | 147 | this.interactData.commentNum = res.data[0]?.commentNum |
| 148 | } | 148 | } |
| 149 | - console.log('获取互动点赞等数据===', JSON.stringify(res)) | 149 | + // console.log('获取互动点赞等数据===', JSON.stringify(res)) |
| 150 | }) | 150 | }) |
| 151 | } | 151 | } |
| 152 | 152 | ||
| @@ -174,7 +174,7 @@ export struct OperationListView { | @@ -174,7 +174,7 @@ export struct OperationListView { | ||
| 174 | status: 1, | 174 | status: 1, |
| 175 | } | 175 | } |
| 176 | ContentDetailRequest.postInteractAccentionOperate(params2).then(res => { | 176 | ContentDetailRequest.postInteractAccentionOperate(params2).then(res => { |
| 177 | - console.log('关注号主==', JSON.stringify(res.data)) | 177 | + // console.log('关注号主==', JSON.stringify(res.data)) |
| 178 | if (this.followStatus == '1') { | 178 | if (this.followStatus == '1') { |
| 179 | this.followStatus = '0' | 179 | this.followStatus = '0' |
| 180 | } else { | 180 | } else { |
| @@ -87,21 +87,21 @@ export struct PlayerRightView { | @@ -87,21 +87,21 @@ export struct PlayerRightView { | ||
| 87 | relType: this.contentDetailData?.reLInfo?.relType || '' + '', | 87 | relType: this.contentDetailData?.reLInfo?.relType || '' + '', |
| 88 | userHeaderUrl: this.contentDetailData?.userInfo?.headPhotoUrl || '' + '', | 88 | userHeaderUrl: this.contentDetailData?.userInfo?.headPhotoUrl || '' + '', |
| 89 | } | 89 | } |
| 90 | - console.log(TAG, '点赞params', JSON.stringify(params)) | 90 | + // console.log(TAG, '点赞params', JSON.stringify(params)) |
| 91 | ContentDetailRequest.postExecuteLike(params).then(res => { | 91 | ContentDetailRequest.postExecuteLike(params).then(res => { |
| 92 | - console.log(TAG, '点赞this.newsStatusOfUser', JSON.stringify(this.newsStatusOfUser)) | 92 | + // console.log(TAG, '点赞this.newsStatusOfUser', JSON.stringify(this.newsStatusOfUser)) |
| 93 | if (this.newsStatusOfUser) { | 93 | if (this.newsStatusOfUser) { |
| 94 | this.newsStatusOfUser.likeStatus = this.newsStatusOfUser?.likeStatus == '1' ? '0' : '1' | 94 | this.newsStatusOfUser.likeStatus = this.newsStatusOfUser?.likeStatus == '1' ? '0' : '1' |
| 95 | if (this.newsStatusOfUser.likeStatus == '1') { | 95 | if (this.newsStatusOfUser.likeStatus == '1') { |
| 96 | this.interactData.likeNum = Number(this.interactData.likeNum || 0) + 1 | 96 | this.interactData.likeNum = Number(this.interactData.likeNum || 0) + 1 |
| 97 | TrackingContent.like(true, this.pageId, this.pageName, this.pageParam) | 97 | TrackingContent.like(true, this.pageId, this.pageName, this.pageParam) |
| 98 | - console.log(TAG, '点赞') | 98 | + // console.log(TAG, '点赞') |
| 99 | } else { | 99 | } else { |
| 100 | this.interactData.likeNum = Math.max(0, Number(this.interactData.likeNum || 0) - 1) | 100 | this.interactData.likeNum = Math.max(0, Number(this.interactData.likeNum || 0) - 1) |
| 101 | TrackingContent.like(false, this.pageId, this.pageName, this.pageParam) | 101 | TrackingContent.like(false, this.pageId, this.pageName, this.pageParam) |
| 102 | - console.log(TAG, '取消点赞') | 102 | + // console.log(TAG, '取消点赞') |
| 103 | } | 103 | } |
| 104 | - console.log(TAG, '点赞、取消点赞==', this.newsStatusOfUser?.likeStatus, this.interactData?.likeNum) | 104 | + // console.log(TAG, '点赞、取消点赞==', this.newsStatusOfUser?.likeStatus, this.interactData?.likeNum) |
| 105 | // this.queryContentInteractCount() | 105 | // this.queryContentInteractCount() |
| 106 | } | 106 | } |
| 107 | 107 | ||
| @@ -135,13 +135,13 @@ export struct PlayerRightView { | @@ -135,13 +135,13 @@ export struct PlayerRightView { | ||
| 135 | if (this.newsStatusOfUser.collectStatus === 1) { | 135 | if (this.newsStatusOfUser.collectStatus === 1) { |
| 136 | this.interactData.collectNum = Number(this.interactData.collectNum || 0) + 1 | 136 | this.interactData.collectNum = Number(this.interactData.collectNum || 0) + 1 |
| 137 | TrackingContent.collect(true, this.pageId, this.pageName, this.pageParam) | 137 | TrackingContent.collect(true, this.pageId, this.pageName, this.pageParam) |
| 138 | - console.log(TAG, '收藏') | 138 | + // console.log(TAG, '收藏') |
| 139 | } else { | 139 | } else { |
| 140 | this.interactData.collectNum = Math.max(0, Number(this.interactData.collectNum || 0) - 1) | 140 | this.interactData.collectNum = Math.max(0, Number(this.interactData.collectNum || 0) - 1) |
| 141 | TrackingContent.collect(false, this.pageId, this.pageName, this.pageParam) | 141 | TrackingContent.collect(false, this.pageId, this.pageName, this.pageParam) |
| 142 | - console.log(TAG, '取消收藏') | 142 | + // console.log(TAG, '取消收藏') |
| 143 | } | 143 | } |
| 144 | - console.log(TAG, '收藏、取消收藏==', this.newsStatusOfUser?.collectStatus, this.interactData?.collectNum) | 144 | + // console.log(TAG, '收藏、取消收藏==', this.newsStatusOfUser?.collectStatus, this.interactData?.collectNum) |
| 145 | } | 145 | } |
| 146 | }) | 146 | }) |
| 147 | 147 | ||
| @@ -163,7 +163,7 @@ export struct PlayerRightView { | @@ -163,7 +163,7 @@ export struct PlayerRightView { | ||
| 163 | this.interactData.collectNum = res.data[0]?.collectNum || 0 | 163 | this.interactData.collectNum = res.data[0]?.collectNum || 0 |
| 164 | this.interactData.commentNum = res.data[0]?.commentNum || 0 | 164 | this.interactData.commentNum = res.data[0]?.commentNum || 0 |
| 165 | } | 165 | } |
| 166 | - console.log('获取互动点赞等数据===', JSON.stringify(res)) | 166 | + // console.log('获取互动点赞等数据===', JSON.stringify(res)) |
| 167 | }) | 167 | }) |
| 168 | } | 168 | } |
| 169 | 169 | ||
| @@ -191,17 +191,18 @@ export struct PlayerRightView { | @@ -191,17 +191,18 @@ export struct PlayerRightView { | ||
| 191 | status: 1, | 191 | status: 1, |
| 192 | } | 192 | } |
| 193 | ContentDetailRequest.postInteractAccentionOperate(params2).then(res => { | 193 | ContentDetailRequest.postInteractAccentionOperate(params2).then(res => { |
| 194 | - console.log(TAG, '关注号主==', JSON.stringify(res.data)) | 194 | + // console.log(TAG, '关注号主==', JSON.stringify(res.data)) |
| 195 | if (this.followStatus == '1') { | 195 | if (this.followStatus == '1') { |
| 196 | this.followStatus = '0' | 196 | this.followStatus = '0' |
| 197 | } else { | 197 | } else { |
| 198 | this.followStatus = '1' | 198 | this.followStatus = '1' |
| 199 | - ContentDetailRequest.postPointLevelOperate({ operateType: 6 }).then((res) => { | ||
| 200 | - if (res.data?.showToast) { | ||
| 201 | - ToastUtils.showToast(res.data.ruleName + '+' + res.data.rulePoint + '积分', 1000); | ||
| 202 | - } | ||
| 203 | - }) | ||
| 204 | - console.log(TAG, '关注号主') | 199 | + ContentDetailRequest.postPointLevelOperate({ operateType: 6 }) |
| 200 | + // .then((res) => { | ||
| 201 | + // if (res.data?.showToast) { | ||
| 202 | + // ToastUtils.showToast(res.data.ruleName + '+' + res.data.rulePoint + '积分', 1000); | ||
| 203 | + // } | ||
| 204 | + // }) | ||
| 205 | + // console.log(TAG, '关注号主') | ||
| 205 | TrackingContent.follow(true, this.followUserId, this.followUserName, this.pageId, this.pageName, this.pageParam) | 206 | TrackingContent.follow(true, this.followUserId, this.followUserName, this.pageId, this.pageName, this.pageParam) |
| 206 | } | 207 | } |
| 207 | }) | 208 | }) |
| @@ -302,8 +303,7 @@ export struct PlayerRightView { | @@ -302,8 +303,7 @@ export struct PlayerRightView { | ||
| 302 | } | 303 | } |
| 303 | 304 | ||
| 304 | transNum2String(name: 'likeNum' | 'collectNum' | 'commentNum') { | 305 | transNum2String(name: 'likeNum' | 'collectNum' | 'commentNum') { |
| 305 | - console.log(TAG, 'transNum2String', this.interactData.likeNum, this.interactData.collectNum, | ||
| 306 | - this.interactData.commentNum) | 306 | + // console.log(TAG, 'transNum2String', this.interactData.likeNum, this.interactData.collectNum,this.interactData.commentNum) |
| 307 | if (name === 'likeNum') { | 307 | if (name === 'likeNum') { |
| 308 | return this.interactData.likeNum != 0 ? | 308 | return this.interactData.likeNum != 0 ? |
| 309 | NumberFormatterUtils.formatNumberWithWan(this.interactData.likeNum || '') : '' | 309 | NumberFormatterUtils.formatNumberWithWan(this.interactData.likeNum || '') : '' |
-
Please register or login to post a comment