更新
This commit is contained in:
@@ -146,12 +146,15 @@ Page({
|
||||
* 处理未登录时的转跳
|
||||
*/
|
||||
userNav(e){
|
||||
let user_lng = this.data.longitude, //经度
|
||||
user_lat = this.data.latitude, //纬度
|
||||
area_name = this.data.address.area//城市名称
|
||||
let id = e.currentTarget.dataset.id
|
||||
wx.getStorage({
|
||||
key : 'token',
|
||||
success:res=>{
|
||||
wx.navigateTo({
|
||||
url: '/pages/classify/classify?id=' + id
|
||||
url: '/pages/classify/classify?id=' + id + '&userlng=' + user_lng + '&latitude=' + user_lat + '&areaname=' + area_name
|
||||
})
|
||||
},
|
||||
fail: (err) => {
|
||||
|
||||
Reference in New Issue
Block a user