|
@@ -6,7 +6,8 @@
|
|
|
<van-icon name="arrow-down" />
|
|
|
</div>
|
|
|
<van-popup v-model:show="showLange" destroy-on-close round position="bottom">
|
|
|
- <van-picker :model-value="[langSelect]" :columns="langObj" @cancel="showLange = false"
|
|
|
+ <van-picker :confirm-button-text="lang[langSelect].confirm"
|
|
|
+ :cancel-button-text="lang[langSelect].cancel" :model-value="[langSelect]" :columns="langObj" @cancel="showLange = false"
|
|
|
@confirm="langChange" />
|
|
|
</van-popup>
|
|
|
</div>
|
|
@@ -19,11 +20,11 @@
|
|
|
<Work25 ref="work25" v-if="componentId === 'work25'" :verificationCode="verificationCode" :langType="langSelect"
|
|
|
@closeComponent="closeComponent" />
|
|
|
|
|
|
- <Fore25-recurrence ref="fore25" v-if="componentId === 'fore25Recurrence'" :subData="subData"
|
|
|
+ <Fore25-recurrence ref="fore25Recurrence" v-if="componentId === 'fore25Recurrence'" :subData="subData"
|
|
|
:verificationCode="verificationCode" :langType="langSelect" @closeComponent="closeComponent" />
|
|
|
- <Chin25-recurrence ref="chin25" v-if="componentId === 'chin25Recurrence'" :subData="subData"
|
|
|
+ <Chin25-recurrence ref="chin25Recurrence" v-if="componentId === 'chin25Recurrence'" :subData="subData"
|
|
|
:verificationCode="verificationCode" :langType="langSelect" @closeComponent="closeComponent" />
|
|
|
- <Work25-recurrence ref="work25" v-if="componentId === 'work25Recurrence'" :subData="subData"
|
|
|
+ <Work25-recurrence ref="work25Recurrence" v-if="componentId === 'work25Recurrence'" :subData="subData"
|
|
|
:verificationCode="verificationCode" :langType="langSelect" @closeComponent="closeComponent" />
|
|
|
</div>
|
|
|
</template>
|
|
@@ -45,6 +46,9 @@ const showLange = ref(false);
|
|
|
const fore25 = ref(null); // 引入子组件的实例,用于调用子组件的方法
|
|
|
const chin25 = ref(null); // 引入子组件的实例,用于调用子组件的方法
|
|
|
const work25 = ref(null); // 引入子组件的实例,用于调用子组件的方法
|
|
|
+const fore25Recurrence = ref(null); // 引入子组件的实例,用于调用子组件的方法
|
|
|
+const chin25Recurrence = ref(null); // 引入子组件的实例,用于调用子组件的方法
|
|
|
+const work25Recurrence = ref(null); // 引入子组件的实例,用于调用子组件的方法
|
|
|
|
|
|
const subData = ref({})
|
|
|
|
|
@@ -78,14 +82,25 @@ const closeComponent = () => {
|
|
|
const langChange = ({ selectedValues }) => {
|
|
|
langSelect.value = selectedValues[0];
|
|
|
localStorage.setItem('langSelect', selectedValues[0]);
|
|
|
- // const cardTypeList = ref(lang.value[langSelect.value].cardTypeList)
|
|
|
- // const countryOrRegionList = ref(lang.value[langSelect.value].countryOrRegionList)
|
|
|
- if (componentId.value === 'fore25') {
|
|
|
- fore25.value.reset(); // 调用子组件的方法
|
|
|
- } else if (componentId.value === 'chin25') {
|
|
|
- chin25.value.reset(); // 调用子组件的方法
|
|
|
- } else if (componentId.value === 'work25') {
|
|
|
- work25.value.reset(); // 调用子组件的方法
|
|
|
+ switch (componentId.value) {
|
|
|
+ case 'fore25':
|
|
|
+ fore25.value.reset(); // 调用子组件的方法
|
|
|
+ break;
|
|
|
+ case 'chin25':
|
|
|
+ chin25.value.reset(); // 调用子组件的方法
|
|
|
+ break;
|
|
|
+ case 'work25':
|
|
|
+ work25.value.reset(); // 调用子组件的方法
|
|
|
+ break;
|
|
|
+ case 'fore25Recurrence':
|
|
|
+ fore25Recurrence.value.reset(); // 调用子组件的方法
|
|
|
+ break;
|
|
|
+ case 'chin25Recurrence':
|
|
|
+ chin25Recurrence.value.reset(); // 调用子组件的方法
|
|
|
+ break;
|
|
|
+ case 'work25Recurrence':
|
|
|
+ work25Recurrence.value.reset(); // 调用子组件的方法
|
|
|
+ break;
|
|
|
}
|
|
|
showLange.value = false;
|
|
|
};
|