Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
c7ed24ab
Commit
c7ed24ab
authored
Mar 22, 2022
by
张洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
995595c6
Pipeline
#72441
passed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
110 additions
and
1 deletion
+110
-1
src/components/shop-list-new.vue
src/components/shop-list-new.vue
+109
-0
src/pages/service_shop/services_shop.vue
src/pages/service_shop/services_shop.vue
+1
-1
No files found.
src/components/shop-list-new.vue
0 → 100644
View file @
c7ed24ab
<
template
>
<div
class=
"shop_list"
>
<h3
class=
"shop_list-title"
>
<span
v-text=
"name"
></span>
<a
@
click.prevent=
"goto"
:style=
"
{ cursor: to ? 'pointer' : 'text' }"
>
</a>
</h3>
<ul
class=
"shop_cards"
>
<li
v-for=
"(item, index) in data"
:key=
"'card_' + index"
>
<shop-card
:data=
"item"
:showImg=
"showImg"
:showSummary=
"showSummary"
:detail-path=
"detailPath"
></shop-card>
</li>
</ul>
</div>
</
template
>
<
script
>
import
shopCard
from
"
./shop-card
"
;
export
default
{
components
:
{
shopCard
,
},
props
:
{
name
:
{
type
:
String
,
required
:
true
,
},
to
:
{
type
:
String
,
required
:
true
,
},
detailPath
:
{
type
:
String
,
required
:
true
,
},
data
:
{
type
:
Array
,
default
:
()
=>
[],
},
showImg
:
{
type
:
Boolean
,
default
:
false
,
},
showSummary
:
{
type
:
Boolean
,
default
:
false
,
},
},
methods
:
{
goto
()
{
if
(
this
.
to
)
{
this
.
$router
.
push
(
this
.
to
);
}
},
},
};
</
script
>
<
style
scoped
>
.shop_list-title
{
margin
:
13px
20px
;
}
.shop_list-title
>
span
{
display
:
inline-block
;
vertical-align
:
middle
;
font-size
:
18px
;
font-weight
:
bold
;
color
:
#0d1847
;
line-height
:
27px
;
}
.shop_list-title
>
a
{
display
:
inline-block
;
vertical-align
:
middle
;
background-image
:
url("../assets/imgs/home_btn_enter.png")
;
width
:
28px
;
height
:
28px
;
background-size
:
100%
;
vertical-align
:
-9px
;
margin-left
:
5px
;
}
.shop_list-title
>
a
:hover
{
background-image
:
url("../assets/imgs/home_btn_enter_hov.png")
;
}
.shop_cards
{
/* display: flex;
justify-content: space-between;
align-items: flex-start; */
margin
:
0px
;
padding
:
0px
;
list-style
:
none
;
}
.shop_cards
>
li
{
width
:
calc
((
100%
-
80px
)
/
4
);
display
:
block
;
float
:
left
;
margin
:
10px
10px
;
}
</
style
>
src/pages/service_shop/services_shop.vue
View file @
c7ed24ab
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
</template>
</template>
<
script
>
<
script
>
import
shopList
from
"
@/components/shop-list
"
;
import
shopList
from
"
@/components/shop-list
-new
"
;
import
helper
from
"
@/services/helper
"
;
import
helper
from
"
@/services/helper
"
;
export
default
{
export
default
{
...
...
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