guhongwei 3 anni fa
parent
commit
a910525a70
1 ha cambiato i file con 2 aggiunte e 9 eliminazioni
  1. 2 9
      pages/home/index.js

+ 2 - 9
pages/home/index.js

@@ -21,15 +21,8 @@ Page({
   //跳转详情
   tiao: function (e) {
     let { id, type } = e.currentTarget.dataset;
-    if (type == 1) {
-      wx.navigateTo({
-        url: `/pages/list/index?id=${id}`,
-      })
-    } else {
-      wx.navigateTo({
-        url: `/pages/match/detail?id=${id}`,
-      })
-    }
+    if (type == 1) wx.navigateTo({ url: `/pages/list/index?id=${id}` })
+    else wx.navigateTo({ url: `/pages/match/detail?id=${id}` })
   },
   /**
    * 生命周期函数--监听页面加载