|
|
|
@ -49,11 +49,13 @@ Component({ |
|
|
|
*/ |
|
|
|
methods: { |
|
|
|
back:function(){ |
|
|
|
app.globalData.index = app.globalData.index -1 |
|
|
|
// if(this.properties.clickid){
|
|
|
|
// wx.uma.trackEvent(this.properties.clickid)
|
|
|
|
// }
|
|
|
|
const pages = getCurrentPages(); |
|
|
|
if(pages[pages.length-1].route.indexOf('linkman/add')==-1){ |
|
|
|
app.globalData.index = app.globalData.index -1 |
|
|
|
} |
|
|
|
if(pages[pages.length-1].route.indexOf('login')!=-1 || pages[pages.length-1].route.indexOf('bindTel')!=-1){ |
|
|
|
// 如果是登录页面的返回需要返回两层
|
|
|
|
if(pages.length>2){ |
|
|
|
|