Przeglądaj źródła

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

332777428@qq.com 3 miesięcy temu
rodzic
commit
a4c7806cf6
1 zmienionych plików z 6 dodań i 4 usunięć
  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 {
 
       }