From 4c19432334da1a555ffbd1c950df0424c82cc6f5 Mon Sep 17 00:00:00 2001 From: Eratosici Date: Tue, 25 Jan 2022 09:13:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mall4uni/pages/user/user.css | 7 +++++++ mall4uni/pages/user/user.vue | 8 ++++---- .../src/views/modules/prod/category-add-or-update.vue | 10 ++++++++-- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/mall4uni/pages/user/user.css b/mall4uni/pages/user/user.css index 48374bb..c723cea 100644 --- a/mall4uni/pages/user/user.css +++ b/mall4uni/pages/user/user.css @@ -67,7 +67,14 @@ page { } .none-login .click-login{ font-size:26rpx; + color: #777; } +.none-login .unlogin, +.none-login .click-login { + text-align: left; + padding: 0; +} + .binding-phone { position: relative; diff --git a/mall4uni/pages/user/user.vue b/mall4uni/pages/user/user.vue index b6f6525..2dd7485 100644 --- a/mall4uni/pages/user/user.vue +++ b/mall4uni/pages/user/user.vue @@ -30,12 +30,12 @@ - + - diff --git a/mall4v/src/views/modules/prod/category-add-or-update.vue b/mall4v/src/views/modules/prod/category-add-or-update.vue index 4dac099..bffbe44 100644 --- a/mall4v/src/views/modules/prod/category-add-or-update.vue +++ b/mall4v/src/views/modules/prod/category-add-or-update.vue @@ -87,7 +87,8 @@ export default { categoryTreeProps: { value: 'categoryId', label: 'categoryName' - } + }, + isSubmit: false } }, components: { @@ -144,6 +145,10 @@ export default { } this.$refs['dataForm'].validate((valid) => { if (valid) { + if (this.isSubmit) { + return + } + this.isSubmit = true this.$http({ url: this.$http.adornUrl(`/prod/category`), method: this.dataForm.categoryId ? 'put' : 'post', @@ -160,8 +165,9 @@ export default { this.$message({ message: '操作成功', type: 'success', - duration: 1500, + duration: 1000, onClose: () => { + this.isSubmit = false this.visible = false this.$emit('refreshDataList') }