licailing 4 rokov pred
rodič
commit
66248f67e7

+ 10 - 1
src/main/h5/src/components/previewRate.vue

@@ -16,7 +16,12 @@
       </div>
 
       <div class="submit">
-        <van-button @click="submit" :color="$colors.prim" block round
+        <van-button
+          @click="submit"
+          :color="$colors.prim"
+          block
+          round
+          :loading="saving"
           >确认提交</van-button
         >
       </div>
@@ -39,6 +44,10 @@ export default {
       default: () => {
         return {};
       }
+    },
+    saving: {
+      type: Boolean,
+      default: false
     }
   },
   components: { rateInfo },

+ 4 - 1
src/main/h5/src/views/expert/expertAdd.vue

@@ -117,6 +117,7 @@
       @submit="submit"
       :info="subJson"
       :rate="form"
+      :loading="saving"
     ></preview-rate>
   </div>
 </template>
@@ -142,7 +143,8 @@ export default {
         imgs: []
       },
       img: [],
-      submitList: {}
+      submitList: {},
+      saving: false
     };
   },
   computed: {
@@ -280,6 +282,7 @@ export default {
         });
     },
     submit() {
+      this.saving = true;
       let form = { ...this.form };
       this.$toast.loading({
         message: "加载中...",