浏览代码

feature: 跳转内链和跳转外链区分

332777428@qq.com 3 月之前
父节点
当前提交
a4c7806cf6
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      pages/pageA/index/index.js

+ 6 - 4
pages/pageA/index/index.js

@@ -912,12 +912,14 @@ Page({
       if (constant.strings.isEmpty(item.forwardUrl)) {
         return;
       }
-      // 外链,暂时不支持
-      if (item.forwardType == 0) {}
-      // 内链
-      else if (item.forwardType == 1) {
+      // 内链,暂时不支持
+      if (item.forwardType == 0) {
         var param = "?param=" + item.forwardUrl;
         constant.routeUtil.jumpParam(constant.routePath.webview, param);
+      }
+      // 外链
+      else if (item.forwardType == 1) {
+
       } else {
 
       }