Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
simgle_app
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 91a135b0
authored
Dec 30, 2025
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
refactor(HomeFrame): 将id变量重命名为activeDetailId以提高可读性
重命名变量以更清晰地表达其用途,表示当前活动的详情ID,使代码更易于理解
1 parent
93ce02c1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
components/HomeFrame/index.vue
components/HomeFrame/index.vue
View file @
91a135b
<
template
>
<
template
>
<view
class=
"container"
@
click=
"handleTouchStart"
>
<view
class=
"container"
@
click=
"handleTouchStart"
>
<view
:class=
"['home',
{ show: !
i
d
&&
showHome }]">
<view
:class=
"['home',
{ show: !
activeDetailI
d
&&
showHome }]">
<left-side
:userInfo=
"userInfo"
:tabIndex
.
sync=
"tabIndex"
ref=
"leftBox"
@
changeTab=
"changeTab"
@
stopAudio=
"stopAudio"
@
showReadCountTips=
"showReadCountTips"
@
closeTips=
"closeTips"
/>
<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=
"tips-box"
:style=
"tipsObject.style"
@
click
.
stop=
"closeTips"
>
{{
tipsObject
.
text
}}
</view>
<view
class=
"right-side"
>
<view
class=
"right-side"
>
...
@@ -11,10 +11,10 @@
...
@@ -11,10 +11,10 @@
</view>
</view>
<store-address
v-if=
"footerBox"
/>
<store-address
v-if=
"footerBox"
/>
</view>
</view>
<view
:class=
"['detail', { show:
i
d }]"
>
<view
:class=
"['detail', { show:
activeDetailI
d }]"
>
<slot
name=
"detail"
/>
<slot
name=
"detail"
/>
</view>
</view>
<view
class=
"point-page"
v-if=
"!showHome && !
i
d"
>
<view
class=
"point-page"
v-if=
"!showHome && !
activeDetailI
d"
>
<component
:is=
"pointComponentName"
:transfer=
"transfer"
@
close=
"showHome = true"
/>
<component
:is=
"pointComponentName"
:transfer=
"transfer"
@
close=
"showHome = true"
/>
</view>
</view>
<!-- 未点击开始接待,弹窗 -->
<!-- 未点击开始接待,弹窗 -->
...
@@ -51,7 +51,7 @@ export default {
...
@@ -51,7 +51,7 @@ export default {
mixins
:
[
recorder
,
uploader
,
timeout
,
versionCheck
],
mixins
:
[
recorder
,
uploader
,
timeout
,
versionCheck
],
components
:
{
LeftSide
,
Material
,
ReceptionCenter
,
FinishReceptionDialog
,
StoreAddress
,
HomeSlot
,
Order
},
components
:
{
LeftSide
,
Material
,
ReceptionCenter
,
FinishReceptionDialog
,
StoreAddress
,
HomeSlot
,
Order
},
props
:
{
props
:
{
i
d
:
[
String
,
Number
],
activeDetailI
d
:
[
String
,
Number
],
finishDoneText
:
String
,
finishDoneText
:
String
,
finishContene
:
{
finishContene
:
{
type
:
String
,
type
:
String
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment