lex 1 سال پیش
والد
کامیت
e12c321ead
3فایلهای تغییر یافته به همراه12 افزوده شده و 6 حذف شده
  1. 1 1
      src/components/m-img-code/index.tsx
  2. 1 0
      src/views/creation/login-model/index.tsx
  3. 10 5
      src/views/knowledge-library/unit-detail.tsx

+ 1 - 1
src/components/m-img-code/index.tsx

@@ -82,7 +82,7 @@ export default defineComponent({
           hideLoading: true,
           hideLoading: true,
           data: {
           data: {
             clientId: this.clientId,
             clientId: this.clientId,
-            type: 'LOGIN',
+            type: this.type,
             mobile: this.phone
             mobile: this.phone
           }
           }
         });
         });

+ 1 - 0
src/views/creation/login-model/index.tsx

@@ -178,6 +178,7 @@ export default defineComponent({
             <MImgCode
             <MImgCode
               v-model:value={state.imgCodeStatus}
               v-model:value={state.imgCodeStatus}
               phone={state.username}
               phone={state.username}
+              type="REGISTER"
               onClose={() => {
               onClose={() => {
                 state.imgCodeStatus = false;
                 state.imgCodeStatus = false;
               }}
               }}

+ 10 - 5
src/views/knowledge-library/unit-detail.tsx

@@ -58,8 +58,9 @@ export default defineComponent({
           }, 100);
           }, 100);
           return;
           return;
         }
         }
-      } catch {
+      } catch (e) {
         //
         //
+        console.log(e);
       }
       }
     };
     };
 
 
@@ -85,8 +86,12 @@ export default defineComponent({
         throttleScale: 0,
         throttleScale: 0,
         throttleRotate: 0
         throttleRotate: 0
       });
       });
-
+      console.log(moveable);
       moveable
       moveable
+        .on('click', () => {
+          console.log('click');
+          onGotoModel();
+        })
         .on('dragStart', ({ target, clientX, clientY }) => {
         .on('dragStart', ({ target, clientX, clientY }) => {
           // console.log('onDragStart', target);
           // console.log('onDragStart', target);
         })
         })
@@ -172,12 +177,12 @@ export default defineComponent({
         </MSticky>
         </MSticky>
 
 
         <div class={[styles.containerSection, styles.woringSection]}>
         <div class={[styles.containerSection, styles.woringSection]}>
-          {forms.dataInfo.desc && (
+          {forms.dataInfo?.desc && (
             <div
             <div
               class={styles.woringContent}
               class={styles.woringContent}
               v-html={forms.dataInfo.desc}></div>
               v-html={forms.dataInfo.desc}></div>
           )}
           )}
-          {!forms.dataInfo.desc && !forms.loading && (
+          {!forms.dataInfo?.desc && !forms.loading && (
             <div class={styles.woringContent}>
             <div class={styles.woringContent}>
               <MEmpty description="暂无内容" style={{ paddingTop: '40px' }} />
               <MEmpty description="暂无内容" style={{ paddingTop: '40px' }} />
             </div>
             </div>
@@ -188,7 +193,7 @@ export default defineComponent({
           id="iconExamQuestion"
           id="iconExamQuestion"
           src={iconExamQuestion}
           src={iconExamQuestion}
           class={styles.iconExamQuestion}
           class={styles.iconExamQuestion}
-          onClick={onGotoModel}
+          // onClick={onGotoModel}
         />
         />
       </div>
       </div>
     );
     );