瀏覽代碼

修改跳转

bobo 3 年之前
父節點
當前提交
17fc3af282
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      pages/luckDraw/components/tabbar.js

+ 6 - 0
pages/luckDraw/components/tabbar.js

@@ -55,6 +55,12 @@ Component({
             this.setData({
                 list: this.data.list
             })
+            if (index == 0) {
+                wx.reLaunch({
+                  url: this.data.list[index].pagePath,
+                })
+                return
+            }
             wx.redirectTo({
               url: this.data.list[index].pagePath,
             })