From 0edf94722a0dcc338567fec7df76b2e0acd39b92 Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期一, 27 五月 2024 15:30:48 +0800 Subject: [PATCH] 调整 --- src/pages/changePassword/changePassword.vue | 24 +++++++----------------- 1 files changed, 7 insertions(+), 17 deletions(-) diff --git a/src/pages/changePassword/changePassword.vue b/src/pages/changePassword/changePassword.vue index f09b69d..61a81bc 100644 --- a/src/pages/changePassword/changePassword.vue +++ b/src/pages/changePassword/changePassword.vue @@ -5,8 +5,8 @@ class="Ttop flex flex-center flex-wrap" style="flex-direction: column" > - <view class=""></view> - <view class="" ref="Rtop"> + <view ></view> + <view ref="Rtop"> <text class="login"></text> <text style=" @@ -32,10 +32,10 @@ align-items: center; " > - <!-- <view class="" style="color: #244A7B;padding-bottom: .47rem;font-size: .3rem;font-weight: bold;">鐢ㄦ埛娉ㄥ唽</view> --> + <!-- <view style="color: #244A7B;padding-bottom: .47rem;font-size: .3rem;font-weight: bold;">鐢ㄦ埛娉ㄥ唽</view> --> <view class="LoginBg"></view> <view - class="" + @click="BacktoLogin" style=" cursor: pointer; @@ -275,7 +275,6 @@ this.$nextTick(() => { var width = this.$refs.Rtop.$el.clientWidth; this.Rtop1 = width + 50; - console.log("Element width:", width); }); }, // 蹇樿瀵嗙爜 @@ -285,24 +284,15 @@ password: encryptAES(this.amendDataPass.rawPass), newPassword: encryptAES(this.amendDataPass.newPass) }; - console.log(Obj); this.$refs[formName].validate(async (valid) => { if (valid) { // alert('submit!鎴愬姛'); - await getchangePassword(Obj).then((res) => { - // console.log(res,'淇敼瀵嗙爜鎴愬姛'); + getchangePassword(Obj).then((res) => { if (res.success == true) { - uni.showToast({ - title: res.object, - icon: "none" - }); + this.$message.success('淇敼鎴愬姛'); uni.navigateBack(); - console.log("淇敼鎴愬姛", res); } else { - uni.showToast({ - title: res.errorText, - icon: "none" - }); + this.$message.error(res.errorText); } }); // uni.redirectTo({ encryptAES -- Gitblit v1.9.1