Преглед на файлове

修复保存修改按钮和数据回显

xiebaomin преди 2 години
родител
ревизия
49b3786336

+ 17 - 6
pages/_template/app/center/club-detail.vue

@@ -4,7 +4,7 @@
     <div class="page-content">
       <div class="title">机构认证信息</div>
       <div class="updated" v-if="isAuth">
-        <el-button type="text" size="default" @click="editData">{{ status ? '修改' : '保存' }}</el-button>
+        <el-button type="warning" size="default" plain @click="editData">{{ status ? '修改' : '保存' }}</el-button>
       </div>
       <template v-if="!isAuth">
         <div class="tip">抱歉,您暂未认证机构</div>
@@ -170,6 +170,7 @@ export default {
 
       try {
         await this.$http.api.authClubSave1(authdata)
+        await this.fetchClubDetail()
         this.$toast.loading({
           message: '保存成功',
           duration: 1000,
@@ -188,6 +189,7 @@ export default {
     display: flex;
     justify-content: center;
     position: relative;
+    background: #fff;
   }
 
   .position-select {
@@ -261,10 +263,14 @@ export default {
       display: flex;
       justify-content: center;
       align-items: center;
-      ::v-deep .el-button--text {
-        color: blue;
+      ::v-deep .el-button {
         font-size: 24px;
       }
+      ::v-deep .el-button--warning {
+        color: #f3920d;
+        background: #fff;
+        border-color: #f3920d;
+      }
     }
     .title {
       font-size: 24px;
@@ -353,6 +359,7 @@ export default {
     display: flex;
     justify-content: center;
     position: relative;
+    background: #fff;
   }
 
   .position-select {
@@ -425,9 +432,13 @@ export default {
       display: flex;
       justify-content: center;
       align-items: center;
-      ::v-deep .el-button--text {
-        color: blue;
-        font-size: 4.2vw;
+      ::v-deep .el-button {
+        font-size: 3.4vw;
+      }
+      ::v-deep .el-button--warning {
+        color: #f3920d;
+        background: #fff;
+        border-color: #f3920d;
       }
     }
     .title {

+ 16 - 6
pages/_template/hyt/center/club-detail.vue

@@ -4,7 +4,7 @@
     <div class="page-content">
       <div class="title">机构认证信息</div>
       <div class="updated" v-if="isAuth">
-        <el-button type="text" size="default" @click="editData">{{ status ? '修改' : '保存' }}</el-button>
+        <el-button type="warning" size="default" plain @click="editData">{{ status ? '修改' : '保存' }}</el-button>
       </div>
       <template v-if="!isAuth">
         <div class="tip">抱歉,您暂未认证机构</div>
@@ -230,6 +230,7 @@ export default {
 
       try {
         await this.$http.api.authClubSave1(authdata)
+        await this.fetchClubDetail()
         this.$toast.loading({
           message: '保存成功',
           duration: 1000,
@@ -322,10 +323,14 @@ export default {
       display: flex;
       justify-content: center;
       align-items: center;
-      ::v-deep .el-button--text {
-        color: blue;
+      ::v-deep .el-button {
         font-size: 24px;
       }
+      ::v-deep .el-button--warning {
+        color: #f3920d;
+        background: #fff;
+        border-color: #f3920d;
+      }
     }
     .title {
       font-size: 24px;
@@ -414,6 +419,7 @@ export default {
     display: flex;
     justify-content: center;
     position: relative;
+    background: #fff;
   }
 
   .position-select {
@@ -486,9 +492,13 @@ export default {
       display: flex;
       justify-content: center;
       align-items: center;
-      ::v-deep .el-button--text {
-        color: blue;
-        font-size: 4.2vw;
+      ::v-deep .el-button {
+        font-size: 3.4vw;
+      }
+      ::v-deep .el-button--warning {
+        color: #f3920d;
+        background: #fff;
+        border-color: #f3920d;
       }
     }
     .title {

+ 15 - 6
pages/_template/ph/center/club-detail.vue

@@ -4,7 +4,7 @@
     <div class="page-content">
       <div class="title">机构认证信息</div>
       <div class="updated" v-if="isAuth">
-        <el-button type="text" size="default" @click="editData">{{ status ? '修改' : '保存' }}</el-button>
+        <el-button type="warning" size="default" plain @click="editData">{{ status ? '修改' : '保存' }}</el-button>
       </div>
       <template v-if="!isAuth">
         <div class="tip">抱歉,您暂未认证机构</div>
@@ -170,6 +170,7 @@ export default {
 
       try {
         await this.$http.api.authClubSave1(authdata)
+        await this.fetchClubDetail()
         this.$toast.loading({
           message: '保存成功',
           duration: 1000,
@@ -261,10 +262,14 @@ export default {
       display: flex;
       justify-content: center;
       align-items: center;
-      ::v-deep .el-button--text {
-        color: blue;
+      ::v-deep .el-button {
         font-size: 24px;
       }
+      ::v-deep .el-button--warning {
+        color: #f3920d;
+        background: #fff;
+        border-color: #f3920d;
+      }
     }
     .title {
       font-size: 24px;
@@ -425,9 +430,13 @@ export default {
       display: flex;
       justify-content: center;
       align-items: center;
-      ::v-deep .el-button--text {
-        color: blue;
-        font-size: 4.2vw;
+      ::v-deep .el-button {
+        font-size: 3.4vw;
+      }
+      ::v-deep .el-button--warning {
+        color: #f3920d;
+        background: #fff;
+        border-color: #f3920d;
       }
     }
     .title {

+ 17 - 6
pages/_template/ross/center/club-detail.vue

@@ -4,7 +4,7 @@
     <div class="page-content">
       <div class="title">机构认证信息</div>
       <div class="updated" v-if="isAuth">
-        <el-button type="text" size="default" @click="editData">{{ status ? '修改' : '保存' }}</el-button>
+        <el-button type="warning" size="default" plain @click="editData">{{ status ? '修改' : '保存' }}</el-button>
       </div>
       <template v-if="!isAuth">
         <div class="tip">抱歉,您暂未认证机构</div>
@@ -170,6 +170,7 @@ export default {
 
       try {
         await this.$http.api.authClubSave1(authdata)
+        await this.fetchClubDetail()
         this.$toast.loading({
           message: '保存成功',
           duration: 1000,
@@ -188,6 +189,7 @@ export default {
     display: flex;
     justify-content: center;
     position: relative;
+    background: #fff;
   }
 
   .position-select {
@@ -261,10 +263,14 @@ export default {
       display: flex;
       justify-content: center;
       align-items: center;
-      ::v-deep .el-button--text {
-        color: blue;
+      ::v-deep .el-button {
         font-size: 24px;
       }
+      ::v-deep .el-button--warning {
+        color: #f3920d;
+        background: #fff;
+        border-color: #f3920d;
+      }
     }
     .title {
       font-size: 24px;
@@ -353,6 +359,7 @@ export default {
     display: flex;
     position: relative;
     justify-content: center;
+    background: #fff;
   }
 
   .position-select {
@@ -425,9 +432,13 @@ export default {
       display: flex;
       justify-content: center;
       align-items: center;
-      ::v-deep .el-button--text {
-        color: blue;
-        font-size: 4.2vw;
+      ::v-deep .el-button {
+        font-size: 3.4vw;
+      }
+      ::v-deep .el-button--warning {
+        color: #f3920d;
+        background: #fff;
+        border-color: #f3920d;
       }
     }
     .title {