| | |
| | | <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">--> |
| | |
| | | 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) |
| | | } |
| | | |
| | | // 初始化联系人数据 |
| | |
| | | } |
| | | |
| | | const goBack = () => { |
| | | uni.removeStorageSync('stepIndex'); |
| | | uni.navigateBack() |
| | | } |
| | | |