From 7381b11f0f95023151c5dbae2a06a25b6ff987cc Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Mon, 28 Feb 2022 17:53:41 +0800 Subject: [PATCH] 27614 --- .../3.0.0/AppContentInfo/components/Add.vue | 8 ++- .../AppIntegralAudit/components/Detail.vue | 62 ++++++++++++++----- 2 files changed, 53 insertions(+), 17 deletions(-) diff --git a/packages/3.0.0/AppContentInfo/components/Add.vue b/packages/3.0.0/AppContentInfo/components/Add.vue index 8906d86e..11e7c23c 100644 --- a/packages/3.0.0/AppContentInfo/components/Add.vue +++ b/packages/3.0.0/AppContentInfo/components/Add.vue @@ -85,7 +85,7 @@ @@ -117,6 +117,7 @@ areaName: '', thumbUrl: [] }, + isLoading: false, cropOps: { width: "336px", height: "210px" @@ -242,6 +243,7 @@ categoryName = this.cateList.filter(v => v.id === this.form.categoryId)[0].categoryName } + this.isLoading = true this.instance.post(`/app/appcontentinfo/addOrUpdate`, { ...this.form, moduleId: this.$route.query.moduleId, @@ -255,7 +257,11 @@ setTimeout(() => { this.cancel(true) }, 600) + } else { + this.isLoading = false } + }).catch(() => { + this.isLoading = false }) } }) diff --git a/project/shandong10086/apps/shandong/AppIntegralAudit/components/Detail.vue b/project/shandong10086/apps/shandong/AppIntegralAudit/components/Detail.vue index e7338e60..dbcfcd27 100644 --- a/project/shandong10086/apps/shandong/AppIntegralAudit/components/Detail.vue +++ b/project/shandong10086/apps/shandong/AppIntegralAudit/components/Detail.vue @@ -47,23 +47,27 @@ - +
- - - - + + + + + + + + {{ integralText }}
@@ -91,6 +95,15 @@ }, data () { + const validatorRules = function (rule, value, callback) { + if (value === '') { + callback(new Error('请输入联系方式')) + } else if (!/^1\d{10}$/.test(value)) { + callback(new Error('手机号格式错误')) + } else { + callback() + } + } return { total: 0, info: { @@ -202,6 +215,23 @@ .flex-warpper { display: flex; align-items: center; + + ::v-deep .el-form-item .el-form-item__content { + margin-left: 0!important; + } + + ::v-deep .ai-select { + margin: 0!important; + } + + ::v-deep .el-form-item { + width: auto; + margin-bottom: 0; + + &:last-child { + margin-right: 10px; + } + } } }