吉安感知网项目-前端
chenyao
2026-02-12 a9549ee3c59c21ce1f0d22c79e4aae435862cd56
feat:去除小程序捕捉弹窗
3 files modified
49 ■■■■ changed files
uniapps/work-wx/src/pages/login/index.vue 10 ●●●● patch | view | raw | blame | history
uniapps/work-wx/src/pages/register/index.vue 18 ●●●● patch | view | raw | blame | history
uniapps/work-wx/src/subPackages/userDetail/password/index.vue 21 ●●●● patch | view | raw | blame | history
uniapps/work-wx/src/pages/login/index.vue
@@ -132,11 +132,11 @@
      error.data?.error_description !== "Bad credentials"
        ? error.data?.error_description
        : "登录失败,请重试";
    uni.showToast({
      title: errorMsg,
      icon: "none",
      duration: 2000,
    });
    // uni.showToast({
    //   title: errorMsg,
    //   icon: "none",
    //   duration: 2000,
    // });
  }
}
uniapps/work-wx/src/pages/register/index.vue
@@ -167,11 +167,11 @@
            });
        }
    }).catch(err => {
        uni.showToast({
            title: '网络错误,请稍后重试',
            icon: 'none',
            duration: 2000
        });
        // uni.showToast({
        //     title: '网络错误,请稍后重试',
        //     icon: 'none',
        //     duration: 2000
        // });
    });
};
function register() {
@@ -227,10 +227,10 @@
            });
        }
    }).catch(err => {
        uni.showToast({
            title: '网络错误,请稍后重试',
            icon: 'none',
        });
        // uni.showToast({
        //     title: '网络错误,请稍后重试',
        //     icon: 'none',
        // });
    });
}
</script>
uniapps/work-wx/src/subPackages/userDetail/password/index.vue
@@ -142,11 +142,11 @@
                });
            }
        }).catch(err => {
            uni.showToast({
                title: '网络错误,请稍后重试',
                icon: 'none',
                duration: 2000
            });
            // uni.showToast({
            //     title: '网络错误,请稍后重试',
            //     icon: 'none',
            //     duration: 2000
            // });
        });
    };
    const reset = () => {
@@ -233,11 +233,12 @@
                });
            }
        }).catch(err => {
            uni.showToast({
                title: '网络错误,请稍后重试',
                icon: 'none',
                duration: 2000
            });
      console.log(err);
            // uni.showToast({
            //     title: '网络错误,请稍后重试',
            //     icon: 'none',
            //     duration: 2000
            // });
        });
    };
    onShow(async () => {