Merge commit '1dafe2e5' into dev
Showing
5 changed files
with
66 additions
and
100 deletions
| ... | @@ -196,7 +196,7 @@ | ... | @@ -196,7 +196,7 @@ |
| 196 | <addCoachEn ref="dialogAddCoachEnRef" @submitForm="getMyMemberTable" /> | 196 | <addCoachEn ref="dialogAddCoachEnRef" @submitForm="getMyMemberTable" /> |
| 197 | <dialogExtraForm ref="popExtraForm" @submitForm="getSignInfoList" /> | 197 | <dialogExtraForm ref="popExtraForm" @submitForm="getSignInfoList" /> |
| 198 | 198 | ||
| 199 | <insuranceView ref="insuranceViewRef" /> | 199 | <insuranceView ref="insuranceViewRef" @checkedChange="checkedChange" @submitForm="submitForm" /> |
| 200 | </div> | 200 | </div> |
| 201 | </template> | 201 | </template> |
| 202 | 202 | ||
| ... | @@ -491,15 +491,16 @@ function commit() { | ... | @@ -491,15 +491,16 @@ function commit() { |
| 491 | closeOnClickModal: false, | 491 | closeOnClickModal: false, |
| 492 | showClose: false | 492 | showClose: false |
| 493 | }).then(() => { | 493 | }).then(() => { |
| 494 | checked.value = '1' | 494 | // checked.value = '1' |
| 495 | router.push({ | 495 | // router.push({ |
| 496 | name: 'signPreview', | 496 | // name: 'signPreview', |
| 497 | query: { | 497 | // query: { |
| 498 | matchId: matchId.value, | 498 | // matchId: matchId.value, |
| 499 | buy: checked.value | 499 | // buy: checked.value |
| 500 | 500 | // | |
| 501 | } | 501 | // } |
| 502 | }) | 502 | // }) |
| 503 | handelInsurance() | ||
| 503 | }).catch(() => { | 504 | }).catch(() => { |
| 504 | router.push({ | 505 | router.push({ |
| 505 | name: 'signPreview', | 506 | name: 'signPreview', |
| ... | @@ -730,7 +731,11 @@ function switchTabletype() { | ... | @@ -730,7 +731,11 @@ function switchTabletype() { |
| 730 | } | 731 | } |
| 731 | 732 | ||
| 732 | function handelInsurance() { | 733 | function handelInsurance() { |
| 733 | proxy.$refs['insuranceViewRef'].open(insuranceAgreement.value) | 734 | proxy.$refs['insuranceViewRef'].open(insuranceAgreement.value, checked.value) |
| 735 | } | ||
| 736 | |||
| 737 | function checkedChange(v) { | ||
| 738 | checked.value = v | ||
| 734 | } | 739 | } |
| 735 | </script> | 740 | </script> |
| 736 | 741 | ... | ... |
| ... | @@ -223,7 +223,7 @@ | ... | @@ -223,7 +223,7 @@ |
| 223 | <!-- <el-tour-step v-if="projectIds.length>0" target="#signUpBtn" title="第四步" description="点击报项"/>--> | 223 | <!-- <el-tour-step v-if="projectIds.length>0" target="#signUpBtn" title="第四步" description="点击报项"/>--> |
| 224 | <!-- </el-tour>--> | 224 | <!-- </el-tour>--> |
| 225 | 225 | ||
| 226 | <insuranceView ref="insuranceViewRef" /> | 226 | <insuranceView ref="insuranceViewRef" @checkedChange="checkedChange" @submitForm="submitForm" /> |
| 227 | </div> | 227 | </div> |
| 228 | </template> | 228 | </template> |
| 229 | 229 | ||
| ... | @@ -447,16 +447,18 @@ function submitForm() { | ... | @@ -447,16 +447,18 @@ function submitForm() { |
| 447 | closeOnClickModal: false, | 447 | closeOnClickModal: false, |
| 448 | showClose: false | 448 | showClose: false |
| 449 | }).then(() => { | 449 | }).then(() => { |
| 450 | checked.value = '1' | 450 | // checked.value = '1' |
| 451 | router.push({ | 451 | // router.push({ |
| 452 | name: 'signPreview', | 452 | // name: 'signPreview', |
| 453 | query: { | 453 | // query: { |
| 454 | matchId: matchId.value, | 454 | // matchId: matchId.value, |
| 455 | groupId: groupId.value, | 455 | // groupId: groupId.value, |
| 456 | isNational: isNational.value, | 456 | // isNational: isNational.value, |
| 457 | buy: checked.value | 457 | // buy: checked.value |
| 458 | } | 458 | // } |
| 459 | }) | 459 | // }) |
| 460 | |||
| 461 | handelInsurance() | ||
| 460 | }).catch(() => { | 462 | }).catch(() => { |
| 461 | router.push({ | 463 | router.push({ |
| 462 | name: 'signPreview', | 464 | name: 'signPreview', |
| ... | @@ -858,7 +860,11 @@ watch(choosedchoosed, (newVal, oldVal) => { | ... | @@ -858,7 +860,11 @@ watch(choosedchoosed, (newVal, oldVal) => { |
| 858 | }) | 860 | }) |
| 859 | 861 | ||
| 860 | function handelInsurance() { | 862 | function handelInsurance() { |
| 861 | proxy.$refs['insuranceViewRef'].open(insuranceAgreement.value) | 863 | proxy.$refs['insuranceViewRef'].open(insuranceAgreement.value, checked.value) |
| 864 | } | ||
| 865 | |||
| 866 | function checkedChange(v) { | ||
| 867 | checked.value = v | ||
| 862 | } | 868 | } |
| 863 | </script> | 869 | </script> |
| 864 | 870 | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <el-dialog | 2 | <el-dialog |
| 3 | v-model="show" :close-on-click-modal="false" :title="language==0?'赛事购买协会':'Event Insurance Procurement Agreement'" append-to-body center | 3 | v-model="show" :close-on-click-modal="false" |
| 4 | :title="language==0?'赛事购买协会':'Event Insurance Procurement Agreement'" append-to-body center | ||
| 4 | class="pcloginpop" | 5 | class="pcloginpop" |
| 5 | close-icon="CircleClose" destroy-on-close | 6 | close-icon="CircleClose" destroy-on-close |
| 6 | width="1100px" | 7 | width="1100px" |
| 7 | > | 8 | > |
| 8 | <div v-html="data" /> | 9 | <div v-html="data" /> |
| 10 | <div class="checkbox"> | ||
| 11 | <el-checkbox | ||
| 12 | v-model="checked" | ||
| 13 | :label="language==0?'我同意授权赛事方帮忙购买保险':'I agree to authorize the event organizer to purchase insurance on my behalf'" | ||
| 14 | false-value="0" | ||
| 15 | size="large" true-value="1" | ||
| 16 | @change="checkedChange" | ||
| 17 | /> | ||
| 18 | </div> | ||
| 9 | <template #footer> | 19 | <template #footer> |
| 10 | <div class="dialog-footer text-center"> | 20 | <div class="dialog-footer text-center"> |
| 11 | <el-button class="btn-lineG w200px" round type="primary" @click="submitForm">{{ | 21 | <el-button class="btn-lineG w200px" round type="primary" @click="submitForm">{{ |
| ... | @@ -23,17 +33,24 @@ import { useStorage } from '@vueuse/core/index' | ... | @@ -23,17 +33,24 @@ import { useStorage } from '@vueuse/core/index' |
| 23 | 33 | ||
| 24 | const language = useStorage('language', 0) | 34 | const language = useStorage('language', 0) |
| 25 | const { proxy } = getCurrentInstance() | 35 | const { proxy } = getCurrentInstance() |
| 26 | const emit = defineEmits(['submitForm']) | 36 | const emit = defineEmits(['submitForm', 'checkedChange']) |
| 37 | const checked = ref('0') | ||
| 27 | const show = ref(false) | 38 | const show = ref(false) |
| 28 | const data = ref() | 39 | const data = ref() |
| 29 | 40 | ||
| 30 | const open = (row) => { | 41 | const open = (row, num) => { |
| 31 | show.value = true | 42 | show.value = true |
| 43 | checked.value = num || '0' | ||
| 32 | data.value = row | 44 | data.value = row |
| 33 | } | 45 | } |
| 34 | 46 | ||
| 35 | function submitForm() { | 47 | function submitForm() { |
| 36 | show.value = false | 48 | show.value = false |
| 49 | emit('submitForm') | ||
| 50 | } | ||
| 51 | |||
| 52 | function checkedChange() { | ||
| 53 | emit('checkedChange', checked.value) | ||
| 37 | } | 54 | } |
| 38 | 55 | ||
| 39 | 56 | ||
| ... | @@ -42,73 +59,13 @@ defineExpose({ open }) | ... | @@ -42,73 +59,13 @@ defineExpose({ open }) |
| 42 | </script> | 59 | </script> |
| 43 | 60 | ||
| 44 | <style lang="scss"> | 61 | <style lang="scss"> |
| 45 | .threeFour { | 62 | .checkbox { |
| 46 | width: 100%; | ||
| 47 | |||
| 48 | .el-upload--picture-card { | ||
| 49 | width: 120px; | ||
| 50 | height: 160px; | ||
| 51 | } | ||
| 52 | |||
| 53 | .el-upload-list--picture-card .el-upload-list__item { | ||
| 54 | width: 120px; | ||
| 55 | height: 160px; | ||
| 56 | } | ||
| 57 | } | ||
| 58 | |||
| 59 | .tip { | ||
| 60 | font-size: 13px; | ||
| 61 | color: #999; | ||
| 62 | margin: 10px 0; | ||
| 63 | 63 | ||
| 64 | i { | 64 | span { |
| 65 | color: red; | 65 | color: #453DEA; |
| 66 | margin: 0 4px 0 0; | 66 | position: relative; |
| 67 | top: -1px; | ||
| 68 | cursor: pointer | ||
| 67 | } | 69 | } |
| 68 | } | 70 | } |
| 69 | |||
| 70 | .shenfen { | ||
| 71 | .el-upload--picture-card { | ||
| 72 | width: 320px; | ||
| 73 | height: 200px; | ||
| 74 | } | ||
| 75 | |||
| 76 | .el-upload-list--picture-card .el-upload-list__item { | ||
| 77 | width: 320px; | ||
| 78 | height: 200px; | ||
| 79 | } | ||
| 80 | } | ||
| 81 | |||
| 82 | .touxiang { | ||
| 83 | :deep(.el-upload--picture-card ) { | ||
| 84 | width: 140px; | ||
| 85 | height: 200px; | ||
| 86 | } | ||
| 87 | } | ||
| 88 | |||
| 89 | .touxiang { | ||
| 90 | :deep(.el-upload-list__item ) { | ||
| 91 | width: 140px; | ||
| 92 | height: 200px; | ||
| 93 | } | ||
| 94 | |||
| 95 | } | ||
| 96 | |||
| 97 | .el-form--inline .el-form-item { | ||
| 98 | width: 100% | ||
| 99 | } | ||
| 100 | |||
| 101 | |||
| 102 | .boxDialog { | ||
| 103 | .el-dialog__header { | ||
| 104 | background: linear-gradient(#ed2c22, #fe6d45); | ||
| 105 | margin-right: 0; | ||
| 106 | height: 52px; | ||
| 107 | |||
| 108 | span { | ||
| 109 | color: #fff; | ||
| 110 | } | ||
| 111 | } | ||
| 112 | } | ||
| 113 | |||
| 114 | </style> | 71 | </style> | ... | ... |
| ... | @@ -641,7 +641,10 @@ function goLogin() { | ... | @@ -641,7 +641,10 @@ function goLogin() { |
| 641 | 641 | ||
| 642 | function goGeren() { | 642 | function goGeren() { |
| 643 | // 注册 | 643 | // 注册 |
| 644 | router.push({ name: 'personalRegister', query: { matchId: matchId.value }}) | 644 | router.push({ |
| 645 | name: 'personalRegister', | ||
| 646 | query: { matchId: matchId.value } | ||
| 647 | }) | ||
| 645 | } | 648 | } |
| 646 | 649 | ||
| 647 | function popChangeType() { | 650 | function popChangeType() { |
| ... | @@ -675,7 +678,7 @@ function checkIsSign() { | ... | @@ -675,7 +678,7 @@ function checkIsSign() { |
| 675 | }) | 678 | }) |
| 676 | return Promise.reject('rejected message') | 679 | return Promise.reject('rejected message') |
| 677 | break | 680 | break |
| 678 | case '2': | 681 | case '2':// 报名审批拒绝 |
| 679 | ElMessageBox.confirm( | 682 | ElMessageBox.confirm( |
| 680 | language.value == 0 ? '报名审批拒绝,是否重新报名' : 'Registration approval rejected. Do you want to register again', | 683 | language.value == 0 ? '报名审批拒绝,是否重新报名' : 'Registration approval rejected. Do you want to register again', |
| 681 | language.value == 0 ? '提示' : 'Warning', | 684 | language.value == 0 ? '提示' : 'Warning', |
| ... | @@ -689,7 +692,7 @@ function checkIsSign() { | ... | @@ -689,7 +692,7 @@ function checkIsSign() { |
| 689 | }) | 692 | }) |
| 690 | return Promise.reject('rejected message') | 693 | return Promise.reject('rejected message') |
| 691 | break | 694 | break |
| 692 | case '3': | 695 | case '3':// 报名已取消 |
| 693 | ElMessageBox.confirm( | 696 | ElMessageBox.confirm( |
| 694 | language.value == 0 ? '报名已取消,是否重新报名' : 'Registration cancelled. Do you want to register again', | 697 | language.value == 0 ? '报名已取消,是否重新报名' : 'Registration cancelled. Do you want to register again', |
| 695 | language.value == 0 ? '提示' : 'Warning', | 698 | language.value == 0 ? '提示' : 'Warning', | ... | ... |
| ... | @@ -139,7 +139,6 @@ | ... | @@ -139,7 +139,6 @@ |
| 139 | </div> | 139 | </div> |
| 140 | </el-card> | 140 | </el-card> |
| 141 | </div> | 141 | </div> |
| 142 | <insuranceView ref="insuranceViewRef" /> | ||
| 143 | </div> | 142 | </div> |
| 144 | </template> | 143 | </template> |
| 145 | 144 | ||
| ... | @@ -150,7 +149,6 @@ import MatchInfoRow from '@/viewsPc/match/components/matchInfo-row' | ... | @@ -150,7 +149,6 @@ import MatchInfoRow from '@/viewsPc/match/components/matchInfo-row' |
| 150 | import GroupInfoRow from '@/viewsPc/match/components/groupInfo-row' | 149 | import GroupInfoRow from '@/viewsPc/match/components/groupInfo-row' |
| 151 | import CoachInfoRow from '@/viewsPc/match/components/coachInfo-row' | 150 | import CoachInfoRow from '@/viewsPc/match/components/coachInfo-row' |
| 152 | import SignInfoTable from '@/viewsPc/match/components/signInfo-table' | 151 | import SignInfoTable from '@/viewsPc/match/components/signInfo-table' |
| 153 | import insuranceView from './components/insuranceView.vue' | ||
| 154 | 152 | ||
| 155 | import { getCurrentInstance, ref } from 'vue' | 153 | import { getCurrentInstance, ref } from 'vue' |
| 156 | import cache from '@/plugins/cache' | 154 | import cache from '@/plugins/cache' |
| ... | @@ -203,9 +201,6 @@ function getMatch() { | ... | @@ -203,9 +201,6 @@ function getMatch() { |
| 203 | }).then(res => { | 201 | }).then(res => { |
| 204 | signEndTime.value = res.data.signEndTime | 202 | signEndTime.value = res.data.signEndTime |
| 205 | matchData.value = res.data | 203 | matchData.value = res.data |
| 206 | if (matchData.value.insuranceFlag == '2' && route.query.buy == '1') { | ||
| 207 | proxy.$refs['insuranceViewRef'].open(matchData.value.insuranceAgreement) | ||
| 208 | } | ||
| 209 | }).catch(err => { | 204 | }).catch(err => { |
| 210 | router.push({ name: 'matchList' }) | 205 | router.push({ name: 'matchList' }) |
| 211 | }) | 206 | }) | ... | ... |
-
Please register or sign in to post a comment