From e64ce0361525392d5c9d05d1df05c5d17f62fa90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E5=81=A5?= Date: Thu, 5 Aug 2021 14:41:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E9=A1=B5=E9=9D=A2=E6=A0=8F?= =?UTF-8?q?=E7=9B=AE=E8=B7=B3=E8=BD=AC=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/mine/index/index.js | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/pages/mine/index/index.js b/pages/mine/index/index.js index a5bdd3e..c8534df 100644 --- a/pages/mine/index/index.js +++ b/pages/mine/index/index.js @@ -160,9 +160,23 @@ Page({ //跳转到二级栏目页面 goColumnList(e) { var item = e.currentTarget.dataset.item - wx.navigateTo({ - url: '../columnlist/columnlist?id=' + item.configColumnGroupId + '&title=' + item.configColumnGroupName, - }) + // 1小程序 . 2其他小程序 . 3网址 . 4栏目列表 + if (item.configColumnGroupTargetMode == '1') { + //小程序 + wx.navigateTo({ + url: item.configColumnGroupTargetUrl, + }) + } else if (item.configColumnGroupTargetMode == '2') { + //其他小程序 + } else if (item.configColumnGroupTargetMode == '3') { + //url + } else { + //二级列表 + wx.navigateTo({ + url: '../columnlist/columnlist?id=' + item.configColumnGroupId + '&title=' + item.configColumnGroupName, + }) + } + }, // 跳转到 我的名片 goMyCard: function () {