Browse Source

更新样式

lex 1 năm trước cách đây
mục cha
commit
88148273b4

+ 4 - 2
src/teacher/cash-protocol/index.module.less

@@ -2,11 +2,13 @@
   position: relative;
 
   .submit {
-    width: 90%;
+    width: 85%;
     margin-left: 5%;
     margin-bottom: 15px;
     position: absolute;
     bottom: 0;
+    height: 44px;
+    line-height: 44px;
     z-index: 99;
   }
-}
+}

+ 25 - 13
src/teacher/cash-protocol/index.tsx

@@ -13,7 +13,8 @@ export default defineComponent({
   data() {
     return {
       realStatus: true, // 是否已经实名认证
-      url: ''
+      url: '',
+      signStatus: '' // 签署状态
     }
   },
   async mounted() {
@@ -26,7 +27,14 @@ export default defineComponent({
       } else {
         this.getDetail()
       }
-    } catch {}
+
+      const { data } = await request.get(
+        '/api-teacher/sysUserContractRecord/checkContractSignV2?contractType=WITHDRAW'
+      )
+      this.signStatus = data
+    } catch {
+      //
+    }
   },
   methods: {
     async getDetail() {
@@ -95,19 +103,23 @@ export default defineComponent({
                 border: 'none'
               }}
             ></iframe>
-            <Button
-              type="primary"
-              size="large"
-              block
-              round
-              class={styles.submit}
-              onClick={this.onSubmit}
-            >
-              我已阅读并同意
-            </Button>
+            {this.signStatus === 'NOT_SIGN' ? (
+              <Button
+                type="primary"
+                size="large"
+                block
+                round
+                class={styles.submit}
+                onClick={this.onSubmit}
+              >
+                我已阅读并同意
+              </Button>
+            ) : (
+              ''
+            )}
           </>
         ) : (
-          <UserAuth onSuccess={this.onSuccess} />
+          <UserAuth hideHeader onSuccess={this.onSuccess} />
         )}
       </div>
     )