Browse Source

Update apply.tsx

lex 1 year ago
parent
commit
9e69b1dc99
1 changed files with 14 additions and 5 deletions
  1. 14 5
      src/student/music-group/pre-apply/component/apply.tsx

+ 14 - 5
src/student/music-group/pre-apply/component/apply.tsx

@@ -11,7 +11,8 @@ import {
   RadioGroup,
   RadioGroup,
   showToast,
   showToast,
   Tag,
   Tag,
-  Image
+  Image,
+  showImagePreview
 } from 'vant'
 } from 'vant'
 import { defineComponent, onMounted, reactive } from 'vue'
 import { defineComponent, onMounted, reactive } from 'vue'
 import { useRoute, useRouter } from 'vue-router'
 import { useRoute, useRouter } from 'vue-router'
@@ -180,6 +181,10 @@ export default defineComponent({
       }
       }
     }
     }
 
 
+    const onPreviewImg = () => {
+      showImagePreview([props.registerInfo?.instrumentPriceImg])
+    }
+
     onMounted(async () => {
     onMounted(async () => {
       // state.code = route.query.code || ''
       // state.code = route.query.code || ''
       // console.log('pre register code: ' + state.code)
       // console.log('pre register code: ' + state.code)
@@ -288,10 +293,6 @@ export default defineComponent({
             />
             />
           </CellGroup>
           </CellGroup>
 
 
-          {props.registerInfo?.orchestraRegisterType === 'PARENT_CONFERENCES' && (
-            <Image src={props.registerInfo?.instrumentPriceImg} class={styles.instrumentPriceImg} />
-          )}
-
           <div class={styles.applyTitle}>声部信息</div>
           <div class={styles.applyTitle}>声部信息</div>
           <div class={styles.applyTips}>(请务必按照学生的录取声部填报)</div>
           <div class={styles.applyTips}>(请务必按照学生的录取声部填报)</div>
           <CellGroup inset class={styles.applyCellGroup}>
           <CellGroup inset class={styles.applyCellGroup}>
@@ -326,6 +327,14 @@ export default defineComponent({
             />
             />
           </CellGroup>
           </CellGroup>
 
 
+          {props.registerInfo?.orchestraRegisterType === 'PARENT_CONFERENCES' && (
+            <Image
+              src={props.registerInfo?.instrumentPriceImg}
+              class={styles.instrumentPriceImg}
+              onClick={onPreviewImg}
+            />
+          )}
+
           <div class={styles.applyTitle}>家长信息</div>
           <div class={styles.applyTitle}>家长信息</div>
           <CellGroup inset class={styles.applyCellGroup}>
           <CellGroup inset class={styles.applyCellGroup}>
             <Field
             <Field