作者 李芳银

修改商品跳转链接

@@ -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()  
73 - that.getPingList()  
74 - } else {  
75 - that.getToken()  
76 - } 71 + that.getDetailsContent()
  72 + that.getPingList()
  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) {  
50 - that.getDetailsContent()  
51 - } else {  
52 - that.getToken()  
53 - } 49 + // if (token) {
  50 +
  51 + // } else {
  52 + // that.getToken()
  53 + // }
  54 + that.getDetailsContent()
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) {  
84 - this.getPingList()  
85 - } 83 + // let token = wx.getStorageSync("token")
  84 + // if (token) {
  85 +
  86 + // }
  87 + this.getPingList()
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) {