正在显示
3 个修改的文件
包含
18 行增加
和
11 行删除
@@ -68,12 +68,13 @@ Page({ | @@ -68,12 +68,13 @@ Page({ | ||
68 | }) | 68 | }) |
69 | console.log(that.data.fx_user, that.data.id); | 69 | console.log(that.data.fx_user, that.data.id); |
70 | } | 70 | } |
71 | - if (token) { | ||
72 | that.getDetailsContent() | 71 | that.getDetailsContent() |
73 | that.getPingList() | 72 | that.getPingList() |
74 | - } else { | ||
75 | - that.getToken() | ||
76 | - } | 73 | + // if (token) { |
74 | + | ||
75 | + // } else { | ||
76 | + // that.getToken() | ||
77 | + // } | ||
77 | }, | 78 | }, |
78 | onShow: function () { | 79 | onShow: function () { |
79 | 80 |
@@ -46,11 +46,12 @@ Page({ | @@ -46,11 +46,12 @@ Page({ | ||
46 | }) | 46 | }) |
47 | console.log(options); | 47 | console.log(options); |
48 | } | 48 | } |
49 | - if (token) { | 49 | + // if (token) { |
50 | + | ||
51 | + // } else { | ||
52 | + // that.getToken() | ||
53 | + // } | ||
50 | that.getDetailsContent() | 54 | that.getDetailsContent() |
51 | - } else { | ||
52 | - that.getToken() | ||
53 | - } | ||
54 | }, | 55 | }, |
55 | previewImage: function (e) { | 56 | previewImage: function (e) { |
56 | var current = e.target.dataset.src; | 57 | var current = e.target.dataset.src; |
@@ -79,10 +80,11 @@ Page({ | @@ -79,10 +80,11 @@ Page({ | ||
79 | }, | 80 | }, |
80 | 81 | ||
81 | onShow: function () { | 82 | onShow: function () { |
82 | - let token = wx.getStorageSync("token") | ||
83 | - if (token) { | 83 | + // let token = wx.getStorageSync("token") |
84 | + // if (token) { | ||
85 | + | ||
86 | + // } | ||
84 | this.getPingList() | 87 | this.getPingList() |
85 | - } | ||
86 | }, | 88 | }, |
87 | GOcanvas() { | 89 | GOcanvas() { |
88 | let id = this.data.id | 90 | let id = this.data.id |
@@ -413,6 +413,10 @@ Page({ | @@ -413,6 +413,10 @@ Page({ | ||
413 | wx.navigateTo({ | 413 | wx.navigateTo({ |
414 | url: '/pages/detail/detail?id=' + goods_id | 414 | url: '/pages/detail/detail?id=' + goods_id |
415 | }) | 415 | }) |
416 | + } else { | ||
417 | + wx.navigateTo({ | ||
418 | + url: '/pages/productdetailsImg/productdetailsImg?id=' + goods_id | ||
419 | + }) | ||
416 | } | 420 | } |
417 | }, | 421 | }, |
418 | goPuDeails(e) { | 422 | goPuDeails(e) { |
-
请 注册 或 登录 后发表评论