Commit d4cb05ee5bcafba268e7e34b1f821d0adf0cafb8
1 parent
e8fd3677
跳转到首页
Showing
1 changed file
with
3 additions
and
4 deletions
pages/cart/cart/cart.js
... | ... | @@ -1331,10 +1331,9 @@ Page({ |
1331 | 1331 | }); |
1332 | 1332 | }, |
1333 | 1333 | //跳到首页 |
1334 | - goto: function(e) { | |
1335 | - wx.navigateTo({ | |
1336 | - url: '/pages/index/index/index', | |
1337 | - }) | |
1334 | + goto: function(e) { | |
1335 | + var url='/pages/index/index/index'; | |
1336 | + getApp().goto(url); | |
1338 | 1337 | }, |
1339 | 1338 | |
1340 | 1339 | //---加载更多是靠这个函数---- | ... | ... |