Quellcode durchsuchen

修改首页通知单条数据跳转逻辑

menc vor 2 Jahren
Ursprung
Commit
721ed430df
1 geänderte Dateien mit 8 neuen und 29 gelöschten Zeilen
  1. 8 29
      pages/index/index.js

+ 8 - 29
pages/index/index.js

@@ -441,37 +441,16 @@ Page({
       })
       return
     }
-    wx.navigateTo({
-      url: '../notice/notice_details?details=' + JSON.stringify(details)
-    })
+    let competition = {}//这是一个很长的很多数据的对象
+        //转成String编码一下
+    competition = encodeURIComponent(JSON.stringify(details))
+      wx.navigateTo({
+         url:`../notice/notice_details?details=${competition}`
+      })  
   },
-  // getSysUserInfo(info) {
-  //   let that = this
-  //   wx.login({
-  //     success(res) {
-  //       var code = res.code
-
-
-  //       var data = {
-  //         wxCode: code,
-  //         wxNickName: info.nickName,
-  //         wxAvatarUrl: info.avatarUrl
-  //       }
-  //       // http.send_post_login("/minapp/AppLoginController/appLogin",data)
-  //       http.send_post("/auth/applogin", data, that.loginSuccess)
-  //     },
-  //     fail(res) {
-  //       console.log("ffff", res)
-  //     }
-  //   })
-  // },
+ 
   onTabItemTap(item) {
 
   }
-
-
-
-
-
-
+ 
 })