作者 刘朕

更新

... ... @@ -190,5 +190,9 @@
"scope.userLocation": {
"desc": "同放汽车小程序请求获取您的位置信息"
}
}
},
"requiredPrivateInfos": [
"getLocation",
"chooseAddress"
]
}
\ No newline at end of file
... ...
... ... @@ -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() { // 去添加车辆
... ...
... ... @@ -42,6 +42,13 @@
"query": "che_id=455",
"launchMode": "default",
"scene": null
},
{
"name": "点赞商品详情",
"pathName": "pages/productdetails/productdetails",
"query": "id=2255",
"launchMode": "default",
"scene": null
}
]
}
... ...