chenjun

详情页与安卓保持一致

@@ -43,7 +43,8 @@ export struct DetailDialog { @@ -43,7 +43,8 @@ export struct DetailDialog {
43 .height(200) 43 .height(200)
44 44
45 Row() { 45 Row() {
46 - Image($r("app.media.ic_close_white")) 46 + Image($r("app.media.icon_arrow_left_white"))
  47 + .rotate({ angle: -90, centerX: '50%', centerY: '50%' })
47 .height(24).margin({ top: 20 }).onClick(() => { 48 .height(24).margin({ top: 20 }).onClick(() => {
48 this.controller.close() 49 this.controller.close()
49 if (this.isOpenDetail) { 50 if (this.isOpenDetail) {
@@ -132,33 +132,33 @@ export struct PlayerTitleView { @@ -132,33 +132,33 @@ export struct PlayerTitleView {
132 .fontWeight(600) 132 .fontWeight(600)
133 .fontFamily('PingFang SC-Regular') 133 .fontFamily('PingFang SC-Regular')
134 .textOverflow({ overflow: TextOverflow.Ellipsis }) 134 .textOverflow({ overflow: TextOverflow.Ellipsis })
135 - .margin({ bottom: 8 }) 135 + .margin({ bottom: 2 }) //8
136 136
137 /** 137 /**
138 * 标题大于三行或存在简介显示查看详情按钮 138 * 标题大于三行或存在简介显示查看详情按钮
139 */ 139 */
140 - if (this.rmhPlatform == 1) {  
141 - if (this.titleHeight > 200 || this.summary) {  
142 - Text('查看详情 > ')  
143 - .padding({  
144 - left: 6,  
145 - right: 6,  
146 - top: 4,  
147 - bottom: 4  
148 - })  
149 - .borderRadius(2)  
150 - .backgroundColor('#99636363')  
151 - .fontFamily('PingFang SC-Regular')  
152 - .fontColor(Color.White)  
153 - .fontSize(12)  
154 - .lineHeight(14)  
155 - .fontWeight(400)  
156 - .onClick(() => {  
157 - this.isOpenDetail = true  
158 - this.dialogController?.open()  
159 - })  
160 - }  
161 - } else { 140 + // if (this.rmhPlatform == 1) {
  141 + // if (this.titleHeight > 200 || this.summary) {
  142 + // Text('查看详情 > ')
  143 + // .padding({
  144 + // left: 6,
  145 + // right: 6,
  146 + // top: 4,
  147 + // bottom: 4
  148 + // })
  149 + // .borderRadius(2)
  150 + // .backgroundColor('#99636363')
  151 + // .fontFamily('PingFang SC-Regular')
  152 + // .fontColor(Color.White)
  153 + // .fontSize(12)
  154 + // .lineHeight(14)
  155 + // .fontWeight(400)
  156 + // .onClick(() => {
  157 + // this.isOpenDetail = true
  158 + // this.dialogController?.open()
  159 + // })
  160 + // }
  161 + // } else {
162 if(this.summary) { 162 if(this.summary) {
163 Text() { 163 Text() {
164 Span(this.clipText(this.summary, 14, 3, this.windowWidth - 150 - vp2px(50))) 164 Span(this.clipText(this.summary, 14, 3, this.windowWidth - 150 - vp2px(50)))
@@ -181,10 +181,11 @@ export struct PlayerTitleView { @@ -181,10 +181,11 @@ export struct PlayerTitleView {
181 .width(14) 181 .width(14)
182 .height(14) 182 .height(14)
183 .objectFit(ImageFit.Fill) 183 .objectFit(ImageFit.Fill)
184 - .verticalAlign(ImageSpanAlignment.CENTER)  
185 - .padding({  
186 - bottom: 4  
187 - }) 184 + .verticalAlign(ImageSpanAlignment.BOTTOM)
  185 + .margin({bottom:1})
  186 + // .padding({
  187 + // bottom: 4
  188 + // })
188 .onClick(() => { 189 .onClick(() => {
189 this.isOpenDetail = true 190 this.isOpenDetail = true
190 this.dialogController?.open() 191 this.dialogController?.open()
@@ -193,13 +194,14 @@ export struct PlayerTitleView { @@ -193,13 +194,14 @@ export struct PlayerTitleView {
193 } 194 }
194 } 195 }
195 .padding({ 196 .padding({
196 - left: 6, 197 + left: 0,//6
197 right: 6, 198 right: 6,
198 - top: 4, 199 + top: 0,//4
199 bottom: 4 200 bottom: 4
200 }) 201 })
  202 +
201 } 203 }
202 - } 204 + // }
203 Text(DateTimeUtils.formatDate(new Date(this.contentDetailData?.publishTime).getTime(), DateTimeUtils.PATTERN_DATE_TIME_HYPHEN_MM)) 205 Text(DateTimeUtils.formatDate(new Date(this.contentDetailData?.publishTime).getTime(), DateTimeUtils.PATTERN_DATE_TIME_HYPHEN_MM))
204 .fontSize(12) 206 .fontSize(12)
205 .fontColor(Color.White) 207 .fontColor(Color.White)