王士厅

fix: 修改Card2Component无网络进入详情页

@@ -142,6 +142,7 @@ export struct Card2Component { @@ -142,6 +142,7 @@ export struct Card2Component {
142 this.clicked = true; 142 this.clicked = true;
143 } 143 }
144 persistentStorage(this.contentDTO.objectId); 144 persistentStorage(this.contentDTO.objectId);
  145 + // console.log(TAG,'this.contentDTO.objectType', this.contentDTO.objectType)
145 this.jumpDetail() 146 this.jumpDetail()
146 }) 147 })
147 } 148 }
@@ -153,11 +154,13 @@ export struct Card2Component { @@ -153,11 +154,13 @@ export struct Card2Component {
153 MinePageDatasModel.getAssertDetailData(this.contentDTO.relId,this.contentDTO.objectId,this.contentDTO.relType).then((value) => { 154 MinePageDatasModel.getAssertDetailData(this.contentDTO.relId,this.contentDTO.objectId,this.contentDTO.relType).then((value) => {
154 if(value == "1"){ 155 if(value == "1"){
155 ProcessUtils.processPage(this.contentDTO) 156 ProcessUtils.processPage(this.contentDTO)
156 - }else{ 157 + } else {
157 ToastUtils.shortToast("内容不存在") 158 ToastUtils.shortToast("内容不存在")
158 } 159 }
159 }).catch((err: Error) => { 160 }).catch((err: Error) => {
160 console.log(TAG, JSON.stringify(err)) 161 console.log(TAG, JSON.stringify(err))
  162 + // 网络出小差了进入详情页
  163 + ProcessUtils.processPage(this.contentDTO)
161 }) 164 })
162 } 165 }
163 } 166 }