...
|
...
|
@@ -91,12 +91,24 @@ Page({ |
|
|
},
|
|
|
linkWebview(e) {
|
|
|
let index = e.currentTarget.dataset.index
|
|
|
if (index == 0) {
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/webview/webview?url=' + encodeURIComponent('https://h5.goorcar.com/')
|
|
|
})
|
|
|
// if (index == 0) {
|
|
|
// wx.navigateTo({
|
|
|
// url: '/pages/webview/webview?url=' + encodeURIComponent('https://h5.goorcar.com/')
|
|
|
// })
|
|
|
// }
|
|
|
let homeLoop = this.data.homeLoop
|
|
|
let id = homeLoop[index].goods_id
|
|
|
if(id) {
|
|
|
if(homeLoop[index].type == 'zan') {
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/detail/detail?id=' + id,
|
|
|
})
|
|
|
} else {
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/productdetailsImg/productdetailsImg?id=' + id,
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
|
|
|
},
|
|
|
addLoveCared() { // 去添加车辆
|
|
|
|
...
|
...
|
|