|
@@ -121,6 +121,14 @@ App({
|
|
|
clearRecord() {
|
|
|
this.globalData.record = null
|
|
|
},
|
|
|
+ navigateback() {
|
|
|
+ if (getCurrentPages().length <= 1) {
|
|
|
+ wx.reLaunch({ url: "/pages/home/home" })
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ wx.navigateBack()
|
|
|
+ }
|
|
|
+ },
|
|
|
navigateto(page) {
|
|
|
if (!this.globalData.userInfo) {
|
|
|
this.globalData.authPages.forEach(prefix => {
|