liyubing

feat(信息流):公共跳转url地址,分内链和外链

@@ -220,6 +220,9 @@ export class ProcessUtils { @@ -220,6 +220,9 @@ export class ProcessUtils {
220 } 220 }
221 221
222 public static gotoDefaultWeb(content: ContentDTO) { 222 public static gotoDefaultWeb(content: ContentDTO) {
  223 +
  224 + // 内链
  225 + if(content.openType == '1'){
223 let taskAction: Action = { 226 let taskAction: Action = {
224 type: 'JUMP_H5_BY_WEB_VIEW', 227 type: 'JUMP_H5_BY_WEB_VIEW',
225 params: { 228 params: {
@@ -227,7 +230,16 @@ export class ProcessUtils { @@ -227,7 +230,16 @@ export class ProcessUtils {
227 } as Params, 230 } as Params,
228 }; 231 };
229 WDRouterRule.jumpWithAction(taskAction) 232 WDRouterRule.jumpWithAction(taskAction)
230 - Logger.debug(TAG, `gotoWeb, ${content.objectId}`); 233 + }else if(content.openType == '2') {
  234 + // 外链
  235 + ProcessUtils.jumpExternalWebPage(content.linkUrl);
  236 + }else {
  237 + // 无需跳转
  238 +
  239 + }
  240 +
  241 +
  242 + Logger.debug(TAG, `gotoWeb, ${content.objectId}`)
231 } 243 }
232 244
233 static commentGotoWeb(content: commentInfo) { 245 static commentGotoWeb(content: commentInfo) {