From 18f648d976bfab6eef80e180babd9def32216ba9 Mon Sep 17 00:00:00 2001 From: 819527061@qq.com <123456> Date: 星期二, 12 三月 2024 15:15:06 +0800 Subject: [PATCH] feature:统计重置列表刷新 --- pages/customer-page/customer-my/customer-my.vue | 55 ------------------------------------------------------- 1 files changed, 0 insertions(+), 55 deletions(-) diff --git a/pages/customer-page/customer-my/customer-my.vue b/pages/customer-page/customer-my/customer-my.vue index 93236cf..228e11d 100644 --- a/pages/customer-page/customer-my/customer-my.vue +++ b/pages/customer-page/customer-my/customer-my.vue @@ -223,20 +223,10 @@ return uni.getStorageSync('roleType'); } }, - onShow() { - this.init(); - }, methods: { init() { this.getAllHuoDaiByCustomerId(); this.getFleet(); - this.getUserEntity(); - }, - // 鑾峰彇鐢ㄦ埛淇℃伅 - getUserEntity() { - this.$reqGet('getUserEntity').then(res => { - this.userEntity = res.data; - }); }, // 鑾峰彇璐т唬鍒楄〃 getAllHuoDaiByCustomerId() { @@ -384,51 +374,6 @@ uni.navigateTo({ url: `/pages/customer-page/fleet-management/fleet-management?id=${id}` }); - }, - updateInfo() { - this.$reqPost('updateUser', this.userEntity, 'json').then(res => { - uni.hideLoading() - if (res.code == 0) { - uni.showToast({ - title: '閲嶇疆鎴愬姛', - duration: 2000, - icon: 'success' - }) - } else { - this.$u.toast(res.msg ? res.msg : '淇敼澶辫触'); - } - }).catch(err => { - this.$u.toast('淇敼澶辫触'); - }); - }, - initPwd() { - this.initPwdShow = true - }, - initPwdConfirm() { - this.initPwdShow = false - uni.showLoading({ - title: '鍔犺浇涓�' - }) - this.userEntity.password = '123456' - this.updateInfo() - }, - initPwdCancel() { - this.initPwdShow = false - }, - modifyPwd() { - this.modifyPwdShow = true - this.passwordModified = '' - }, - modifyPwdConfirm() { - if (this.passwordModified.length === 0) { - return this.$u.toast('瀵嗙爜涓嶈兘涓虹┖') - } - this.modifyPwdShow = false - this.userEntity.password = this.passwordModified - this.updateInfo() - }, - modifyPwdCancel() { - this.modifyPwdShow = false }, logout() { this.logoutShow = true; -- Gitblit v1.9.1