陈剑华

Merge remote-tracking branch 'origin/main'

Showing 21 changed files with 203 additions and 54 deletions
@@ -59,3 +59,5 @@ export { UmengStats } from "./src/main/ets/umeng/UmengStats" @@ -59,3 +59,5 @@ export { UmengStats } from "./src/main/ets/umeng/UmengStats"
59 export { MpaasUtils } from './src/main/ets/mpaas/MpaasUtils' 59 export { MpaasUtils } from './src/main/ets/mpaas/MpaasUtils'
60 60
61 export { MpaasUpgradeCheck, UpgradeTipContent } from './src/main/ets/mpaas/MpaasUpgradeCheck' 61 export { MpaasUpgradeCheck, UpgradeTipContent } from './src/main/ets/mpaas/MpaasUpgradeCheck'
  62 +
  63 +export { TingyunAPM } from './src/main/ets/tingyunAPM/TingyunAPM'
@@ -7,6 +7,7 @@ @@ -7,6 +7,7 @@
7 "main": "Index.ets", 7 "main": "Index.ets",
8 "version": "1.0.0", 8 "version": "1.0.0",
9 "dependencies": { 9 "dependencies": {
  10 + "@tingyun/harmonyos": "file:./src/main/ets/tingyunAPM/tingyun_0.0.6.har",
10 "@umeng/common": "^1.0.21", 11 "@umeng/common": "^1.0.21",
11 "@umeng/analytics": "^1.0.19" 12 "@umeng/analytics": "^1.0.19"
12 } 13 }
  1 +import { common } from '@kit.AbilityKit';
  2 +import tingyun, { LogLevel } from '@tingyun/harmonyos';
  3 +
  4 +
  5 +export class TingyunAPM {
  6 +
  7 + private static TINGYUN_APP_KEY = "" //TODO:
  8 + private static TINGYUN_REDIRECT_HOST = "wkrt.tingyun.com"
  9 +
  10 + private static logEnable() {
  11 + return true
  12 + }
  13 +
  14 + //
  15 + static initApp(context: common.UIAbilityContext, deviceId?: string) {
  16 + tingyun.init({
  17 + redirectHost: TingyunAPM.TINGYUN_REDIRECT_HOST,
  18 + appKey: TingyunAPM.TINGYUN_APP_KEY,
  19 + context: context,
  20 +
  21 + httpEnabled: true,
  22 + logLevel: TingyunAPM.logEnable() ? LogLevel.DEBUG : LogLevel.NONE,
  23 +
  24 + // TODO: axios实例对象
  25 + // axios:axiosInstance,
  26 + network: {
  27 + enabled: true,
  28 + },
  29 +
  30 + crash: {
  31 + enabled: true,
  32 + jsCrashEnabled: true,
  33 + cppCrashEnabled: true,
  34 + },
  35 +
  36 + freeze: {
  37 + enabled: true
  38 + }
  39 + });
  40 + if (deviceId) {
  41 + tingyun.setUserId(deviceId)
  42 + }
  43 + tingyun.startNextSession()
  44 + }
  45 +}
1 -import { ToastUtils } from 'wdKit';  
2 - 1 +import { SPHelper,Logger,ToastUtils } from 'wdKit';
  2 +import { ContentDetailDTO, Action, ContentDTO,batchLikeAndCollectResult } from 'wdBean';
  3 +import { ProcessUtils } from 'wdRouter';
  4 +import router from '@ohos.router';
  5 +import { batchLikeAndCollectParams } from 'wdDetailPlayApi/src/main/ets/request/ContentDetailRequest';
  6 +import { MultiPictureDetailViewModel } from '../viewmodel/MultiPictureDetailViewModel';
  7 +import { SpConstants } from 'wdConstant/Index';
  8 +import { WDShare } from 'wdShare/Index';
  9 +const TAG = 'CarderInteraction'
3 /** 10 /**
4 * 卡片 分享、评论、点赞公用组件 11 * 卡片 分享、评论、点赞公用组件
5 */ 12 */
6 @Component 13 @Component
7 export struct CarderInteraction { 14 export struct CarderInteraction {
  15 + @Prop contentDTO: ContentDTO
  16 + @State contentId: string = ''
  17 + @State contentDetailData: ContentDetailDTO = {} as ContentDetailDTO
  18 + @State newsStatusOfUser: batchLikeAndCollectResult = {} as batchLikeAndCollectResult// 点赞、收藏状态
8 build() { 19 build() {
9 Row(){ 20 Row(){
10 Row(){ 21 Row(){
@@ -18,7 +29,7 @@ export struct CarderInteraction { @@ -18,7 +29,7 @@ export struct CarderInteraction {
18 } 29 }
19 .justifyContent(FlexAlign.Center) 30 .justifyContent(FlexAlign.Center)
20 .onClick(()=>{ 31 .onClick(()=>{
21 - ToastUtils.showToast('分享为公共方法,待开发', 1000) 32 + this.getContentDetailData()
22 }) 33 })
23 Row(){ 34 Row(){
24 Image($r('app.media.CarderInteraction_comment')) 35 Image($r('app.media.CarderInteraction_comment'))
@@ -31,7 +42,7 @@ export struct CarderInteraction { @@ -31,7 +42,7 @@ export struct CarderInteraction {
31 } 42 }
32 .justifyContent(FlexAlign.Center) 43 .justifyContent(FlexAlign.Center)
33 .onClick(()=>{ 44 .onClick(()=>{
34 - ToastUtils.showToast('分享为公共方法,待开发', 1000) 45 + ProcessUtils.processPage(this.contentDTO)
35 }) 46 })
36 Row(){ 47 Row(){
37 Image($r('app.media.CarderInteraction_like')) 48 Image($r('app.media.CarderInteraction_like'))
@@ -44,7 +55,8 @@ export struct CarderInteraction { @@ -44,7 +55,8 @@ export struct CarderInteraction {
44 } 55 }
45 .justifyContent(FlexAlign.Center) 56 .justifyContent(FlexAlign.Center)
46 .onClick(()=>{ 57 .onClick(()=>{
47 - ToastUtils.showToast('分享为公共方法,待开发', 1000) 58 + ProcessUtils.processPage(this.contentDTO)
  59 + // ToastUtils.showToast('点赞为公共方法,待开发', 1000)
48 }) 60 })
49 } 61 }
50 .width('100%') 62 .width('100%')
@@ -56,4 +68,45 @@ export struct CarderInteraction { @@ -56,4 +68,45 @@ export struct CarderInteraction {
56 .justifyContent(FlexAlign.SpaceBetween) 68 .justifyContent(FlexAlign.SpaceBetween)
57 .alignItems(VerticalAlign.Center) 69 .alignItems(VerticalAlign.Center)
58 } 70 }
  71 + /**
  72 + * 请求(动态)详情页数据
  73 + * */
  74 + private async getContentDetailData() {
  75 + try {
  76 + let data = await MultiPictureDetailViewModel.getDetailData(this.contentDTO.relId, this.contentDTO.objectId, this.contentDTO.relType)
  77 + this.contentDetailData = data[0];
  78 + console.log('动态详情',JSON.stringify(this.contentDetailData))
  79 + WDShare.shareContent(this.contentDetailData)
  80 + } catch (exception) {
  81 + console.log('请求失败',JSON.stringify(exception))
  82 + }
  83 + this.getInteractDataStatus()
  84 + }
  85 + // 已登录->查询用户对作品点赞、收藏状态
  86 + private async getInteractDataStatus() {
  87 + // 未登录,跳转登录
  88 + const user_id = await SPHelper.default.get(SpConstants.USER_ID, '')
  89 + if (!user_id) {
  90 + return
  91 + }
  92 + try {
  93 + const params: batchLikeAndCollectParams = {
  94 + contentList: [
  95 + {
  96 + contentId: this.contentDetailData?.newsId + '',
  97 + contentType: this.contentDetailData?.newsType + '',
  98 + }
  99 + ]
  100 + }
  101 + console.error(TAG, JSON.stringify(this.contentDetailData))
  102 + let data = await MultiPictureDetailViewModel.getInteractDataStatus(params)
  103 + console.error(TAG, '查询用户对作品点赞、收藏状态', JSON.stringify(data))
  104 + this.newsStatusOfUser = data[0];
  105 + Logger.info(TAG, `newsStatusOfUser:${JSON.stringify(this.newsStatusOfUser)}`)
  106 + } catch (exception) {
  107 + console.error(TAG, JSON.stringify(exception))
  108 + }
  109 + }
  110 +
59 } 111 }
  112 +
@@ -36,7 +36,7 @@ export struct Card12Component { @@ -36,7 +36,7 @@ export struct Card12Component {
36 .lineHeight(25) 36 .lineHeight(25)
37 .fontFamily('PingFang SC-Regular') 37 .fontFamily('PingFang SC-Regular')
38 } 38 }
39 - CarderInteraction() 39 + CarderInteraction({contentDTO: this.contentDTO})
40 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件 40 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件
41 } 41 }
42 .padding({ 42 .padding({
@@ -53,7 +53,7 @@ export struct Card14Component { @@ -53,7 +53,7 @@ export struct Card14Component {
53 .width(CommonConstants.FULL_WIDTH) 53 .width(CommonConstants.FULL_WIDTH)
54 .margin({ bottom: 8 }) 54 .margin({ bottom: 8 })
55 .height(75) 55 .height(75)
56 - CarderInteraction() 56 + CarderInteraction({contentDTO: this.contentDTO})
57 57
58 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件 58 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件
59 } 59 }
@@ -52,7 +52,7 @@ export struct Card15Component { @@ -52,7 +52,7 @@ export struct Card15Component {
52 .width(CommonConstants.FULL_WIDTH) 52 .width(CommonConstants.FULL_WIDTH)
53 .aspectRatio(16 / 9) 53 .aspectRatio(16 / 9)
54 .alignContent(Alignment.BottomEnd) 54 .alignContent(Alignment.BottomEnd)
55 - CarderInteraction() 55 + CarderInteraction({contentDTO: this.contentDTO})
56 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件 56 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件
57 } 57 }
58 .padding({ 58 .padding({
@@ -53,7 +53,7 @@ export struct Card16Component { @@ -53,7 +53,7 @@ export struct Card16Component {
53 }) 53 })
54 } 54 }
55 } 55 }
56 - CarderInteraction() 56 + CarderInteraction({contentDTO: this.contentDTO})
57 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件 57 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件
58 } 58 }
59 .padding({ 59 .padding({
@@ -47,7 +47,7 @@ export struct Card19Component { @@ -47,7 +47,7 @@ export struct Card19Component {
47 }) 47 })
48 ProcessUtils.gotoMultiPictureListPage(photoList,0) 48 ProcessUtils.gotoMultiPictureListPage(photoList,0)
49 }) 49 })
50 - CarderInteraction() 50 + CarderInteraction({contentDTO: this.contentDTO})
51 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件 51 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件
52 } 52 }
53 .padding({ 53 .padding({
@@ -37,7 +37,7 @@ export struct Card20Component { @@ -37,7 +37,7 @@ export struct Card20Component {
37 if (this.contentDTO.fullColumnImgUrls[0]) { 37 if (this.contentDTO.fullColumnImgUrls[0]) {
38 createImg({ contentDTO: this.contentDTO }) 38 createImg({ contentDTO: this.contentDTO })
39 } 39 }
40 - CarderInteraction() 40 + CarderInteraction({contentDTO: this.contentDTO})
41 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件 41 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件
42 } 42 }
43 .padding({ 43 .padding({
@@ -51,7 +51,7 @@ export struct Card21Component { @@ -51,7 +51,7 @@ export struct Card21Component {
51 } 51 }
52 .columnsTemplate('2fr 1fr') 52 .columnsTemplate('2fr 1fr')
53 .maxCount(1) 53 .maxCount(1)
54 - CarderInteraction() 54 + CarderInteraction({contentDTO: this.contentDTO})
55 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件 55 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件
56 } 56 }
57 .onClick((event: ClickEvent) => { 57 .onClick((event: ClickEvent) => {
@@ -17,9 +17,7 @@ export struct AppointmentListChildComponent{ @@ -17,9 +17,7 @@ export struct AppointmentListChildComponent{
17 }), 17 }),
18 autoCancel: true, 18 autoCancel: true,
19 alignment: DialogAlignment.Center, 19 alignment: DialogAlignment.Center,
20 - offset: { dx: 0, dy: -20 },  
21 - gridCount: 4,  
22 - customStyle: false 20 + customStyle: true
23 }) 21 })
24 22
25 23
@@ -4,9 +4,12 @@ export struct MyCustomDialog { @@ -4,9 +4,12 @@ export struct MyCustomDialog {
4 @State titleShow: boolean = true 4 @State titleShow: boolean = true
5 @State tipValue: string ="提示文字" 5 @State tipValue: string ="提示文字"
6 @State tipShow: boolean = true 6 @State tipShow: boolean = true
7 - 7 + @State cancelIsLeft :boolean = true//取消是否在左边
8 @State leftText: string = "取消" 8 @State leftText: string = "取消"
9 @State rightText: string = "确认" 9 @State rightText: string = "确认"
  10 + @State leftTextColor: Resource = $r('app.color.color_333333')
  11 + @State rightTextColor: Resource = $r('app.color.color_648DF2')
  12 +
10 13
11 controller: CustomDialogController 14 controller: CustomDialogController
12 cancel: () => void = () => { 15 cancel: () => void = () => {
@@ -16,21 +19,25 @@ export struct MyCustomDialog { @@ -16,21 +19,25 @@ export struct MyCustomDialog {
16 19
17 build() { 20 build() {
18 Column() { 21 Column() {
19 - if(this.titleShow){  
20 - Text(this.title)  
21 - .fontSize("32lpx")  
22 - .margin({ top: "40lpx", bottom: "15lpx" })  
23 - .fontColor($r('app.color.color_333333'))  
24 - .fontSize('35lpx')  
25 - .fontWeight('600lpx')  
26 - } 22 + Column(){
  23 + if(this.titleShow){
  24 + Text(this.title)
  25 + .fontSize("32lpx")
  26 + .fontColor($r('app.color.color_333333'))
  27 + .lineHeight('50lpx')
  28 + .fontWeight(600)
  29 + }
27 30
28 - if(this.tipShow){  
29 - Text(this.tipValue)  
30 - .margin({ bottom: "30lpx" })  
31 - .fontSize("27lpx")  
32 - .fontColor($r('app.color.color_B0B0B0'))  
33 - } 31 + if(this.tipShow){
  32 + Text(this.tipValue)
  33 + .margin({ top:this.titleShow?"10lpx":"0lpx" })
  34 + .fontSize("27lpx")
  35 + .fontWeight(400)
  36 + .lineHeight('38lpx')
  37 + .fontColor($r('app.color.color_999999'))
  38 + }
  39 + }.padding({top:"48lpx",bottom:"48lpx"})
  40 + .alignItems(HorizontalAlign.Center)
34 41
35 Divider() 42 Divider()
36 .width("100%") 43 .width("100%")
@@ -41,13 +48,21 @@ export struct MyCustomDialog { @@ -41,13 +48,21 @@ export struct MyCustomDialog {
41 Row(){ 48 Row(){
42 Text(this.leftText) 49 Text(this.leftText)
43 .fontSize('35lpx') 50 .fontSize('35lpx')
44 - .fontWeight('400lpx')  
45 - .fontColor($r('app.color.color_333333')) 51 + .fontWeight(400)
  52 + .fontColor(this.leftTextColor)
46 .onClick(() => { 53 .onClick(() => {
47 - this.controller.close()  
48 - this.cancel() 54 + if (this.controller != undefined){
  55 + if(this.cancelIsLeft){
  56 + this.controller.close()
  57 + this.cancel()
  58 + }else{
  59 + this.controller.close()
  60 + this.confirm()
  61 + }
  62 + }
49 }).layoutWeight(1) 63 }).layoutWeight(1)
50 .textAlign(TextAlign.Center) 64 .textAlign(TextAlign.Center)
  65 +
51 Divider() 66 Divider()
52 .width("1lpx") 67 .width("1lpx")
53 .strokeWidth('1lpx') 68 .strokeWidth('1lpx')
@@ -58,17 +73,24 @@ export struct MyCustomDialog { @@ -58,17 +73,24 @@ export struct MyCustomDialog {
58 Text(this.rightText) 73 Text(this.rightText)
59 .fontSize('35lpx') 74 .fontSize('35lpx')
60 .textAlign(TextAlign.Center) 75 .textAlign(TextAlign.Center)
61 - .fontWeight('400lpx')  
62 - .fontColor($r('app.color.color_648DF2')) 76 + .fontWeight(400)
  77 + .fontColor(this.rightTextColor)
63 .onClick(() => { 78 .onClick(() => {
64 if (this.controller != undefined) { 79 if (this.controller != undefined) {
65 - this.controller.close()  
66 - this.confirm() 80 + if(this.cancelIsLeft){
  81 + this.controller.close()
  82 + this.confirm()
  83 + }else{
  84 + this.controller.close()
  85 + this.cancel()
  86 + }
67 } 87 }
68 }).layoutWeight(1) 88 }).layoutWeight(1)
69 } 89 }
70 .alignItems(VerticalAlign.Center) 90 .alignItems(VerticalAlign.Center)
71 .height('96lpx') 91 .height('96lpx')
72 }.borderRadius(10) 92 }.borderRadius(10)
  93 + .width("518lpx")
  94 + .backgroundColor("#FFF")
73 } 95 }
74 } 96 }
@@ -17,13 +17,12 @@ export struct SearchHistoryComponent{ @@ -17,13 +17,12 @@ export struct SearchHistoryComponent{
17 this.onAccept() 17 this.onAccept()
18 }, 18 },
19 title: "确认清空历史记录", 19 title: "确认清空历史记录",
20 - tipShow:false 20 + tipShow:false,
  21 + leftTextColor:$r('app.color.color_648DF2')
21 }), 22 }),
22 autoCancel: true, 23 autoCancel: true,
23 alignment: DialogAlignment.Center, 24 alignment: DialogAlignment.Center,
24 - offset: { dx: 0, dy: -20 },  
25 - gridCount: 4,  
26 - customStyle: false 25 + customStyle: true
27 }) 26 })
28 27
29 onAccept(){ 28 onAccept(){
@@ -3,7 +3,7 @@ import { SearchRelatedItem } from '../../viewmodel/SearchRelatedItem' @@ -3,7 +3,7 @@ import { SearchRelatedItem } from '../../viewmodel/SearchRelatedItem'
3 const TAG = "SearchRelatedComponent" 3 const TAG = "SearchRelatedComponent"
4 4
5 /** 5 /**
6 - * 热门搜索 6 + * 相关搜索
7 */ 7 */
8 @Component 8 @Component
9 export struct SearchRelatedComponent { 9 export struct SearchRelatedComponent {
@@ -40,11 +40,24 @@ export struct SearchResultComponent { @@ -40,11 +40,24 @@ export struct SearchResultComponent {
40 40
41 SearcherAboutDataModel.getSearchSuggestData(request, getContext(this)).then((value) => { 41 SearcherAboutDataModel.getSearchSuggestData(request, getContext(this)).then((value) => {
42 value.forEach((item) => { 42 value.forEach((item) => {
43 - this.data.push(item) 43 + if(item.appStyle != "13"){
  44 + this.data.push(item)
  45 + }
44 }) 46 })
45 this.data.notifyDataReload() 47 this.data.notifyDataReload()
46 this.suggest_count = this.data.totalCount() 48 this.suggest_count = this.data.totalCount()
47 this.isLoading = false 49 this.isLoading = false
  50 +
  51 + if(this.suggest_count === 0 && value.length > 0){
  52 + this.suggest_count = -1
  53 + if(!this.isLoading){
  54 + this.getSuggestData()
  55 + }
  56 + }else if(this.suggest_count <= 20 && value.length > 0){
  57 + if(!this.isLoading){
  58 + this.getSuggestData()
  59 + }
  60 + }
48 }) 61 })
49 } 62 }
50 63
@@ -110,6 +123,7 @@ export struct SearchResultComponent { @@ -110,6 +123,7 @@ export struct SearchResultComponent {
110 TabContent() { 123 TabContent() {
111 SearchResultContentComponent({ keywords: this.searchText, searchType: item }) 124 SearchResultContentComponent({ keywords: this.searchText, searchType: item })
112 }.tabBar(this.TabBuilder(index, item)) 125 }.tabBar(this.TabBuilder(index, item))
  126 + .layoutWeight(1)
113 }, (item: string, index: number) => index.toString()) 127 }, (item: string, index: number) => index.toString())
114 } 128 }
115 .vertical(false) 129 .vertical(false)
@@ -124,6 +138,7 @@ export struct SearchResultComponent { @@ -124,6 +138,7 @@ export struct SearchResultComponent {
124 .layoutWeight(1) 138 .layoutWeight(1)
125 } 139 }
126 }.width('100%') 140 }.width('100%')
  141 + .layoutWeight(1)
127 .margin({ top: '12lpx' }) 142 .margin({ top: '12lpx' })
128 } 143 }
129 144
@@ -54,6 +54,7 @@ export struct SearchResultContentComponent{ @@ -54,6 +54,7 @@ export struct SearchResultContentComponent{
54 if (!this.data || value.list.length == 0){ 54 if (!this.data || value.list.length == 0){
55 this.hasMore = false 55 this.hasMore = false
56 this.isLoading = false 56 this.isLoading = false
  57 + this.count = this.count===-1?0:this.count
57 }else{ 58 }else{
58 if(value.list[0].dataList!=null){ 59 if(value.list[0].dataList!=null){
59 let data_temp: SearchRmhDescription[] = [] 60 let data_temp: SearchRmhDescription[] = []
@@ -205,8 +206,10 @@ export struct SearchResultContentComponent{ @@ -205,8 +206,10 @@ export struct SearchResultContentComponent{
205 extra:'', 206 extra:'',
206 titleShow:value.data.type == "5"?1:0, 207 titleShow:value.data.type == "5"?1:0,
207 } 208 }
  209 + if(contentDTO.appStyle != "13"){
  210 + this.data.push(contentDTO)
  211 + }
208 212
209 - this.data.push(contentDTO)  
210 }) 213 })
211 this.data.notifyDataReload() 214 this.data.notifyDataReload()
212 this.count = this.data.totalCount() 215 this.count = this.data.totalCount()
@@ -216,6 +219,19 @@ export struct SearchResultContentComponent{ @@ -216,6 +219,19 @@ export struct SearchResultContentComponent{
216 this.hasMore = false 219 this.hasMore = false
217 } 220 }
218 this.isLoading = false 221 this.isLoading = false
  222 +
  223 + if(this.count === 0 && resultData.list.length > 0){
  224 + this.count = -1
  225 + if(!this.isLoading){
  226 + //加载分页数据
  227 + this.getNewSearchResultData()
  228 + }
  229 + }else if(this.count <= 20 && resultData.list.length > 0){
  230 + if(!this.isLoading){
  231 + //加载分页数据
  232 + this.getNewSearchResultData()
  233 + }
  234 + }
219 }).catch((err:Error)=>{ 235 }).catch((err:Error)=>{
220 console.log(TAG,"请求失败") 236 console.log(TAG,"请求失败")
221 this.isLoading = false 237 this.isLoading = false
@@ -297,13 +313,10 @@ export struct SearchResultContentComponent{ @@ -297,13 +313,10 @@ export struct SearchResultContentComponent{
297 } 313 }
298 } 314 }
299 } 315 }
300 - .onClick(()=>{  
301 - //TODO 跳转  
302 - })  
303 }, (item: ContentDTO, index: number) => index.toString()) 316 }, (item: ContentDTO, index: number) => index.toString())
304 317
305 //没有更多数据 显示提示 318 //没有更多数据 显示提示
306 - if(!this.hasMore){ 319 + if(!this.hasMore && this.data.totalCount() > 0){
307 ListItem(){ 320 ListItem(){
308 ListHasNoMoreDataUI() 321 ListHasNoMoreDataUI()
309 } 322 }
@@ -319,11 +332,11 @@ export struct SearchResultContentComponent{ @@ -319,11 +332,11 @@ export struct SearchResultContentComponent{
319 this.getNewSearchResultData() 332 this.getNewSearchResultData()
320 } 333 }
321 }) 334 })
322 - } 335 + }.layoutWeight(1)
323 } 336 }
324 } 337 }
325 .backgroundColor($r('app.color.white')) 338 .backgroundColor($r('app.color.white'))
326 - .height('100%') 339 + .layoutWeight(1)
327 .width('100%') 340 .width('100%')
328 } 341 }
329 } 342 }
@@ -26,7 +26,7 @@ export struct channelSkeleton { @@ -26,7 +26,7 @@ export struct channelSkeleton {
26 } 26 }
27 .margin({ right: 0 }) 27 .margin({ right: 0 })
28 } 28 }
29 - .height(100) 29 + .height(110)
30 .justifyContent(FlexAlign.SpaceBetween) 30 .justifyContent(FlexAlign.SpaceBetween)
31 .SkeletonStyle() 31 .SkeletonStyle()
32 }) 32 })
@@ -70,7 +70,7 @@ function textArea(width: number | Resource | string = '100%', height: number | R @@ -70,7 +70,7 @@ function textArea(width: number | Resource | string = '100%', height: number | R
70 .height(height) 70 .height(height)
71 .backgroundColor('#FFF2F3F4') 71 .backgroundColor('#FFF2F3F4')
72 .margin({ top: 10 }) 72 .margin({ top: 10 })
73 - // .borderRadius(5) 73 + .borderRadius(4)
74 } 74 }
75 75
76 // 全局公共样式 76 // 全局公共样式
@@ -78,7 +78,7 @@ function textArea(width: number | Resource | string = '100%', height: number | R @@ -78,7 +78,7 @@ function textArea(width: number | Resource | string = '100%', height: number | R
78 function SkeletonStyle() { 78 function SkeletonStyle() {
79 .padding({ right: 18, left: 18 }) 79 .padding({ right: 18, left: 18 })
80 .width('100%') 80 .width('100%')
81 - .margin({ top: 10 }) 81 + // .margin({ top: 10 })
82 } 82 }
83 83
84 @Extend(Column) 84 @Extend(Column)
@@ -103,6 +103,7 @@ export class StartupManager { @@ -103,6 +103,7 @@ export class StartupManager {
103 } 103 }
104 104
105 private initTingyun() { 105 private initTingyun() {
  106 + // 暂时不能用,不初始化
106 // Logger.debug(TAG, "App tingyunAPM 初始化") 107 // Logger.debug(TAG, "App tingyunAPM 初始化")
107 // TingyunAPM.initApp(this.context!, DeviceUtil.clientId()) 108 // TingyunAPM.initApp(this.context!, DeviceUtil.clientId())
108 } 109 }