Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
activities
/
web-job
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8b73aeb3
authored
Jan 24, 2024
by
Lays-lzq
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/buttonName'
parents
9c254453
6c290769
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
19 deletions
+14
-19
components/Index/IndexItem.vue
+9
-12
components/Index/IndexList.vue
+5
-7
No files found.
components/Index/IndexItem.vue
View file @
8b73aeb3
...
...
@@ -16,11 +16,9 @@
<img
:src=
"listItem.companyLogo"
alt=
""
/>
<div
class=
"itembar-bottom__companyname"
>
{{
listItem
.
companyName
}}
</div>
<van-button
:class=
"
{ gray: listItem.isDelivery === 1 }"
class=
"itembar-bottom__button"
:style=
"
{ '--bgc': color.bgc }"
:disabled="listItem.isDelivery === 1"
@click.stop="submit"
@click.stop="detail"
>
{{
translateButton
}}
</van-button
>
</div>
...
...
@@ -100,16 +98,16 @@ export default {
}
},
translateButton
()
{
if
(
this
.
listItem
.
isDelivery
===
1
)
{
return
'已投递'
}
else
{
return
'立即投递
'
}
//
if (this.listItem.isDelivery === 1) {
//
return '已投递'
//
} else {
return
'立即查看
'
//
}
},
},
methods
:
{
submit
()
{
this
.
$emit
(
'
submit
'
,
this
.
submitId
)
detail
()
{
this
.
$emit
(
'
detail
'
,
this
.
submitId
)
},
},
}
...
...
@@ -201,4 +199,4 @@ export default {
}
}
}
</
style
>
\ No newline at end of file
</
style
>
components/Index/IndexList.vue
View file @
8b73aeb3
...
...
@@ -15,8 +15,7 @@
:submit-id=
"item.id"
:list-item=
"list[index]"
:color=
"color"
@
submit=
"submit"
@
click
.
native=
"detail(item.id)"
@
detail=
"detail"
></index-item>
<div
v-if=
"!hasMore"
class=
"finish-text"
>
没有更多了
</div>
<!--
</van-list>
-->
...
...
@@ -53,9 +52,9 @@ export default {
return
{}
},
methods
:
{
submit
(
submitId
)
{
this
.
$emit
(
'submit'
,
submitId
)
},
//
submit(submitId) {
//
this.$emit('submit', submitId)
//
},
detail
(
submitId
)
{
this
.
$emit
(
'detail'
,
submitId
)
},
...
...
@@ -70,4 +69,4 @@ export default {
line-height
:
0.66667rem
;
text-align
:
center
;
}
</
style
>
\ No newline at end of file
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment