Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
group-buy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
group-buy-ui
Commits
b5b36d68
Commit
b5b36d68
authored
Sep 09, 2021
by
beisir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:列表
parent
67551d2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
115 additions
and
14 deletions
+115
-14
index.less
src/views/goodsList/index.less
+84
-9
index.vue
src/views/goodsList/index.vue
+31
-5
No files found.
src/views/goodsList/index.less
View file @
b5b36d68
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
&-bottom {
&-bottom {
padding-left: 12px;
padding-left: 12px;
padding-right: 12px;
padding-right: 12px;
padding-bottom: 12px;
.group-list {
.group-list {
background-color: @white;
background-color: @white;
border-radius: 10px;
border-radius: 10px;
...
@@ -66,16 +67,44 @@
...
@@ -66,16 +67,44 @@
color: #333333;
color: #333333;
}
}
}
}
.cr-list {
padding-left: 8px;
padding-right: 8px;
}
@{deep} .cr-card {
.group-item {
.cr-card__header__thumb {
display: flex;
justify-content: center;
align-items: center;
padding: 12px 0;
border-bottom: #d8d8d8 solid 1px;
position: relative;
&:last-of-type {
border-bottom: none;
}
&-thumb {
box-sizing: border-box;
width: 108px;
width: 108px;
height: 108px;
height: 108px;
background-color: #f7f8f9;
background-color: #f7f8f9;
border-radius: 6px;
border-radius: 6px;
overflow: hidden;
overflow: hidden;
position: relative;
padding: 3px;
margin-right: 8px;
.cr-image {
width: 100%;
height: 100%;
}
}
}
.cr-card__header__tag {
&-content {
flex: 1;
height: 100%;
}
&-tag {
position: absolute;
top: 0;
left: 0;
font-size: @font-size-12;
font-size: @font-size-12;
color: @white;
color: @white;
width: 45px;
width: 45px;
...
@@ -85,16 +114,62 @@
...
@@ -85,16 +114,62 @@
background-image: linear-gradient(269deg, #ff5d00 12%, #ff1900 86%);
background-image: linear-gradient(269deg, #ff5d00 12%, #ff1900 86%);
border-radius: 6px 0 6px 0;
border-radius: 6px 0 6px 0;
}
}
.cr-card__header__content__title {
&-title {
line-height: 22px;
text-overflow: ellipsis;
}
display: -webkit-box;
.cr-card__header__content__desc {
-webkit-line-clamp: 2;
margin-top: 4px;
line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
line-height: 18px;
}
}
.group
-progress {
&
-progress {
width: 163px;
width: 163px;
overflow: hidden;
overflow: hidden;
border-radius: 5px;
border-radius: 5px;
margin-top: 4px;
}
&-already {
font-size: @font-size-12;
color: #999999;
margin-top: 4px;
margin-bottom: 7px;
}
&-price {
font-size: @font-size-14;
color: #f70d0d;
margin-bottom: 4px;
}
&-delprice {
color: #999999;
font-size: @font-size-12;
}
.cr-button {
width: 90px;
height: 28px;
line-height: 28px;
border-radius: 15px;
position: absolute;
bottom: 12px;
right: 0;
}
}
@{deep} .cr-card {
background-color: @white;
padding: 12px 0;
.cr-card__header__thumb {
width: 108px !important;
height: 108px !important;
overflow: hidden;
}
.cr-card__header__tag {
}
.cr-card__header__content__title {
line-height: 18px;
}
.cr-card__header__content__desc {
margin-top: 4px;
}
}
.group-price-top {
.group-price-top {
...
...
src/views/goodsList/index.vue
View file @
b5b36d68
...
@@ -36,14 +36,39 @@
...
@@ -36,14 +36,39 @@
</div>
</div>
</div>
</div>
<cr-list
v-model=
"loading"
:finished=
"finished"
finished-text=
"没有更多了"
@
load=
"onLoad"
>
<cr-list
v-model=
"loading"
:finished=
"finished"
finished-text=
"没有更多了"
@
load=
"onLoad"
>
<dl
v-for=
"(item, index) in goodsList"
:key=
"index"
:thumb=
"item.thumbImageUrl || item.imageUrl"
class=
"group-item"
>
<dt
class=
"group-item-thumb"
>
<cr-image
:src=
"item.thumbImageUrl"
/>
<span
class=
"group-item-tag"
>
3人团
</span>
</dt>
<dd
class=
"group-item-content"
>
<div
class=
"group-item-title"
>
{{ item.goodsName }}
</div>
<cr-progress
class=
"group-item-progress"
stroke-width=
"5"
color=
"#EC1500"
track-color=
"#F7F8F9"
:show-pivot=
"false"
:percentage=
"handleProgressByStatus(item)"
/>
<div
class=
"group-item-already"
>
已拼2333团
</div>
<div
class=
"group-item-price"
>
拼团价 ¥ 0
</div>
<del
class=
"group-item-delprice"
>
¥{{ item.activityPrice }}
</del>
<cr-button
shape=
"circle"
type=
"primary"
>
主要按钮
</cr-button>
</dd>
</dl>
<!--
<cr-card
<cr-card
v-for="(item, index) in goodsList"
v-for="(item, index) in goodsList"
:key="index"
:key="index"
:thumb="item.thumbImageUrl || item.imageUrl"
:thumb="item.thumbImageUrl || item.imageUrl"
class="group-item"
class="group-item"
img-height=
"108"
>
>
<!-- @click="handleBtnClick(item)" -->
<template #tag>3人团</template>
<template #tag>3人团</template>
<template #title>{{ item.goodsName }}</template>
<template #title>{{ item.goodsName }}</template>
<template #desc>
<template #desc>
...
@@ -57,6 +82,9 @@
...
@@ -57,6 +82,9 @@
/>
/>
</template>
</template>
<template #priceTop>
<div class="group-price-top">已拼2333团</div>
</template>
<template #priceTop>
<template #priceTop>
<div class="group-price-top">已拼2333团</div>
<div class="group-price-top">已拼2333团</div>
</template>
</template>
...
@@ -73,9 +101,7 @@
...
@@ -73,9 +101,7 @@
马上参团
马上参团
</cr-button>
</cr-button>
</template>
</template>
</cr-card>
</cr-card> -->
<!-- <cr-cell v-for="item in list" :key="item" :title="item" /> -->
</cr-list>
</cr-list>
</div>
</div>
<!-- 下方列表展示信息 end -->
<!-- 下方列表展示信息 end -->
...
...
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