gaoluyang
2025-11-18 8e94706c3cda9ee1412d397692a5e0a1f226534c
src/pages/cooperativeOffice/collaborativeApproval/contactSelect.vue
@@ -1,11 +1,11 @@
<template>
  <view class="contact-select">
    <!-- 顶部标题栏 -->
    <view class="header">
      <up-icon name="arrow-left" size="20" color="#333" @click="goBack" />
      <text class="title">选择联系人</text>
      <text class="confirm-btn" @click="confirmSelect">确定</text>
    </view>
    <PageHeader title="选择联系人" @back="goBack">
      <template #right>
        <text class="confirm-btn" @click="confirmSelect">确定</text>
      </template>
    </PageHeader>
    <!-- 搜索框 -->
<!--    <view class="search-section">-->
@@ -81,11 +81,10 @@
const stepIndex = ref(0)
onMounted(() => {
  // 获取页面参数
  const pages = getCurrentPages()
  const currentPage = pages[pages.length - 1]
  if (currentPage.options.stepIndex !== undefined) {
    stepIndex.value = parseInt(currentPage.options.stepIndex)
  // 从本地存储获取参数
  const storedStepIndex = uni.getStorageSync('stepIndex');
  if (storedStepIndex !== undefined && storedStepIndex !== null) {
    stepIndex.value = parseInt(storedStepIndex)
  }
  
  // 初始化联系人数据
@@ -121,6 +120,7 @@
}
const goBack = () => {
  uni.removeStorageSync('stepIndex');
  uni.navigateBack()
}