跳转

wx.showToast({
            title: "修改成功",
            icon: "success",
            mask: true,
            duration: 1000,
            success: function () {
              setTimeout(() => {
                wx.navigateBack();
              }, 1000);
            }
          })
        wx.showToast({
          title: "发布成功",
          icon: "success",
          mask: true,
          duration: 1000,
          success: function () {
            setTimeout(() => {
              wx.navigateTo({
                url: '/pages/myArticle/myArticle',
                success: function () {
                  var page = getCurrentPages().pop();
                  if (page == undefined || page == null) return;
                  page.onLoad();
                }
              });
            }, 1000);
          }
        })
          wx.showToast({
            title: "登录成功",
            icon: "success",
            mask: true,
            duration: 1000,
            success: function () {
              setTimeout(() => {
                wx.switchTab({
                  url: '/pages/me/me',
                  success:function(){
                    var page = getCurrentPages().pop();
                    if (page == undefined || page == null) return;
                    page.onLoad();
                  }
                });
              }, 1000);
            }
          })

 

posted on 2024-08-04 16:09  海阔天空123  阅读(63)  评论(0编辑  收藏  举报

导航