Commit 91a135b0 by liimin

refactor(HomeFrame): 将id变量重命名为activeDetailId以提高可读性

重命名变量以更清晰地表达其用途,表示当前活动的详情ID,使代码更易于理解
1 parent 93ce02c1
<template>
<view class="container" @click="handleTouchStart">
<view :class="['home', { show: !id && showHome }]">
<view :class="['home', { show: !activeDetailId && showHome }]">
<left-side :userInfo="userInfo" :tabIndex.sync="tabIndex" ref="leftBox" @changeTab="changeTab" @stopAudio="stopAudio" @showReadCountTips="showReadCountTips" @closeTips="closeTips" />
<view class="tips-box" :style="tipsObject.style" @click.stop="closeTips">{{ tipsObject.text }}</view>
<view class="right-side">
......@@ -11,10 +11,10 @@
</view>
<store-address v-if="footerBox" />
</view>
<view :class="['detail', { show: id }]">
<view :class="['detail', { show: activeDetailId }]">
<slot name="detail" />
</view>
<view class="point-page" v-if="!showHome && !id">
<view class="point-page" v-if="!showHome && !activeDetailId">
<component :is="pointComponentName" :transfer="transfer" @close="showHome = true" />
</view>
<!-- 未点击开始接待,弹窗 -->
......@@ -51,7 +51,7 @@ export default {
mixins: [recorder, uploader, timeout, versionCheck],
components: { LeftSide, Material, ReceptionCenter, FinishReceptionDialog, StoreAddress, HomeSlot, Order },
props: {
id: [String, Number],
activeDetailId: [String, Number],
finishDoneText: String,
finishContene: {
type: String,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!