Compare commits
No commits in common. "master" and "v1.1.0" have entirely different histories.
@ -716,17 +716,6 @@ export default {
|
|||||||
vibrator.vibrate({
|
vibrator.vibrate({
|
||||||
mode: 'short'
|
mode: 'short'
|
||||||
})
|
})
|
||||||
},
|
|
||||||
|
|
||||||
onBackPress() {
|
|
||||||
console.log('触发:onBackPress')
|
|
||||||
// 如果详情页打开,则关闭详情页返回列表
|
|
||||||
if (this.showDetailPage) {
|
|
||||||
this.hideDetail()
|
|
||||||
return true // 自己处理,不执行系统默认返回
|
|
||||||
}
|
|
||||||
// 否则执行系统默认返回行为(退出应用)
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user