wangzhihui 4 лет назад
Родитель
Сommit
d817b7c4c1
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      miniprogram/pages/cachePage/cachePage.js

+ 3 - 3
miniprogram/pages/cachePage/cachePage.js

@@ -23,7 +23,7 @@ Page({
     agreeText: false
     agreeText: false
   },
   },
   goBack() {
   goBack() {
-    wx.navigateTo({
+    wx.redirectTo({
       url: '/pages/index/index',
       url: '/pages/index/index',
     })
     })
   },
   },
@@ -68,7 +68,7 @@ Page({
     })
     })
   },
   },
   showAgreeModal() {
   showAgreeModal() {
-    if (!this.checkout()) return
+    // if (!this.checkout()) return
     this.setData({
     this.setData({
       agreeModal: true
       agreeModal: true
     })
     })
@@ -122,7 +122,7 @@ Page({
         wx.showToast({
         wx.showToast({
           title: res.msg,
           title: res.msg,
         })
         })
-        wx.navigateTo({
+        wx.redirectTo({
           url: '/pages/takePhoto/takePhoto',
           url: '/pages/takePhoto/takePhoto',
         })
         })
       } else {
       } else {