|
|
@@ -7,7 +7,8 @@
|
|
|
</template>
|
|
|
<voluntary-search @search="handleSearch"/>
|
|
|
<view class="flex flex-col p-20 gap-20">
|
|
|
- <voluntary-item v-for="item in list" :item="item" @major="openMajorPopup(item)" @notify="showNotify"/>
|
|
|
+ <voluntary-item v-for="item in list" :key="item.id" :item="item"
|
|
|
+ @major="openMajorPopup(item)" @notify="showNotify"/>
|
|
|
<vip-guide-more v-if="isNotVip"/>
|
|
|
</view>
|
|
|
<template #bottom>
|
|
|
@@ -24,6 +25,7 @@
|
|
|
<script setup>
|
|
|
import {sleep} from "@/uni_modules/uv-ui-tools/libs/function";
|
|
|
import {useUserStore} from "@/store/userStore";
|
|
|
+import {useEnv} from "@/hooks/useEnv";
|
|
|
import VoluntaryItem from "@/pagesOther/pages/vhs/index/components/voluntary-item.vue";
|
|
|
import IeConditionDropdown from "@/pagesOther/components/ie-condition-dropdown/ie-condition-dropdown.vue";
|
|
|
import VipGuideMore from "@/pagesOther/components/vip-guide-more/vip-guide-more.vue";
|
|
|
@@ -54,6 +56,7 @@ const majorPopup = ref(null)
|
|
|
const cartPopup = ref(null)
|
|
|
const dropdown = ref(null)
|
|
|
const currentUser = useUserStore()
|
|
|
+const {isMP} = useEnv()
|
|
|
const {model, batch, mode} = useInjectVoluntaryForm()
|
|
|
const {currentStep} = useInjectVoluntaryStep()
|
|
|
const {
|
|
|
@@ -172,7 +175,7 @@ const confirmSave = async () => {
|
|
|
content: '是否要保存当前志愿表',
|
|
|
showCancel: true,
|
|
|
cancelText: '放弃保存',
|
|
|
- confirmText: '保存志愿表',
|
|
|
+ confirmText: isMP.value ? '保存' : '保存志愿表',
|
|
|
success: res => {
|
|
|
if (res.confirm) {
|
|
|
reject() // to prevent back operation.
|
|
|
@@ -180,6 +183,10 @@ const confirmSave = async () => {
|
|
|
} else {
|
|
|
resolve() // to continue back operation.
|
|
|
}
|
|
|
+ },
|
|
|
+ fail: (e) => {
|
|
|
+ console.log('modal fail', e)
|
|
|
+ reject()
|
|
|
}
|
|
|
})
|
|
|
})
|