Browse Source

更新判断

lex 2 years ago
parent
commit
f9edfa6f5e

+ 4 - 0
src/student/teacher-dependent/model/teacher-header.module.less

@@ -42,6 +42,10 @@
     font-weight: 500;
     color: #1a1a1a;
     line-height: 18px;
+    max-width: 150px;
+    overflow: hidden;
+    white-space: nowrap;
+    text-overflow: ellipsis;
   }
   & > img {
     margin-left: 10px;

+ 6 - 1
src/views/order-detail/userAuth/index.tsx

@@ -35,6 +35,10 @@ export default defineComponent({
   mounted() {
     // exists
     this.checked = this.checked || this.exists
+    // 初始化数据
+    const users = state.user.data
+    this.form.realName = users?.realName
+    // this.form.idCardNo = users?.idCardNo
   },
   methods: {
     async onSubmit() {
@@ -50,7 +54,8 @@ export default defineComponent({
         await request.post(url, {
           data: {
             ...this.form,
-            contract: true
+            contract: true,
+            save: true
           }
         })
         Toast('实名成功')