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
d68f3c58
Commit
d68f3c58
authored
Oct 01, 2021
by
beisir
Browse files
Options
Browse Files
Download
Plain Diff
feat:测试webpp线上
parents
e1521398
5003a0f2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
13 deletions
+26
-13
sharePic.vue
src/components/sharePic.vue
+17
-6
smallPic.vue
src/views/goodsDetail/smallPic.vue
+3
-3
goodsCard.vue
src/views/goodsList/components/goodsCard.vue
+6
-4
No files found.
src/components/sharePic.vue
View file @
d68f3c58
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
>
>
<img
<img
class=
"avator"
class=
"avator"
style=
"width:
8
4px;
style=
"width:
9
4px;
height:
8
4px;"
height:
9
4px;"
:src=
"item"
:src=
"item"
alt=
""
alt=
""
/>
/>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
</div>
</div>
<div
class=
"leaderBorder"
>
<div
class=
"leaderBorder"
>
<img
<img
src=
"https://img.lkbang.net/activity/share/default/leaderBorder.png?i=
1
"
src=
"https://img.lkbang.net/activity/share/default/leaderBorder.png?i=
9
"
alt=
""
alt=
""
/>
/>
</div>
</div>
...
@@ -44,7 +44,10 @@
...
@@ -44,7 +44,10 @@
/>
/>
</template>
</template>
<
template
v-else
>
<
template
v-else
>
<div
class=
"item leader bg"
style=
"width: 94px;height: 94px;margin: 0 21px;"
>
<div
class=
"item leader bg"
style=
"width: 94px;height: 94px;margin: 0 21px; font-size: 34px;"
>
<div
<div
class=
"leaderName"
class=
"leaderName"
style=
"width: 76px;height: 36px;border-radius: 8px;font-size: 24px;bottom: -18px;"
style=
"width: 76px;height: 36px;border-radius: 8px;font-size: 24px;bottom: -18px;"
...
@@ -53,12 +56,12 @@
...
@@ -53,12 +56,12 @@
</div>
</div>
<div
class=
"leaderBorder"
>
<div
class=
"leaderBorder"
>
<img
<img
src=
"https://img.lkbang.net/activity/share/default/leaderBorder.png?i=
1
"
src=
"https://img.lkbang.net/activity/share/default/leaderBorder.png?i=
9
"
alt=
""
alt=
""
/>
/>
</div>
</div>
<div
class=
"crown"
style=
"top: -18px;right: -5px;width: 49px;height: 43px;"
>
<div
class=
"crown"
style=
"top: -18px;right: -5px;width: 49px;height: 43px;"
>
<img
src=
"https://img.lkbang.net/activity/share/default/crown.png?i=
1
"
alt=
""
/>
<img
src=
"https://img.lkbang.net/activity/share/default/crown.png?i=
9
"
alt=
""
/>
</div>
</div>
</div>
</div>
<div
<div
...
@@ -273,6 +276,10 @@ body {
...
@@ -273,6 +276,10 @@ body {
.groupInfo .avatorGroup .normal,
.groupInfo .avatorGroup .normal,
.groupInfo .avatorGroup .leader.bg {
.groupInfo .avatorGroup .leader.bg {
background-color: #ffe1e1;
background-color: #ffe1e1;
color: #ec1500;
}
.groupInfo .avatorGroup .leader.bg::after {
content: '?';
}
}
.groupInfo .avatorGroup .leader {
.groupInfo .avatorGroup .leader {
background: transparent;
background: transparent;
...
@@ -299,6 +306,7 @@ body {
...
@@ -299,6 +306,7 @@ body {
}
}
.groupInfo .avatorGroup .leader .crown {
.groupInfo .avatorGroup .leader .crown {
position: absolute;
position: absolute;
z-index: 3;
}
}
.groupInfo .avatorGroup .leader .crown img {
.groupInfo .avatorGroup .leader .crown img {
width: 100%;
width: 100%;
...
@@ -342,6 +350,9 @@ body {
...
@@ -342,6 +350,9 @@ body {
.groupInfo .avatorGroup .placeholder::after {
.groupInfo .avatorGroup .placeholder::after {
content: '?';
content: '?';
}
}
.groupInfo .avatorGroup .placeholder .crown {
z-index: 3;
}
.groupInfo .groupProcess .desc {
.groupInfo .groupProcess .desc {
width: 100%;
width: 100%;
height: 100%;
height: 100%;
...
...
src/views/goodsDetail/smallPic.vue
View file @
d68f3c58
...
@@ -37,8 +37,8 @@
...
@@ -37,8 +37,8 @@
<cr-progress
<cr-progress
class=
"group-item-progress"
class=
"group-item-progress"
stroke-width=
"5"
stroke-width=
"5"
color=
"#
F7F8F9
"
color=
"#
EC1500
"
track-color=
"#
EC1500
"
track-color=
"#
F7F8F9
"
:show-pivot=
"false"
:show-pivot=
"false"
:percentage=
"stockPercentage"
:percentage=
"stockPercentage"
/>
/>
...
@@ -215,7 +215,7 @@ export default {
...
@@ -215,7 +215,7 @@ export default {
this
.
groupId
=
+
res
.
groupBuyInfo
.
groupId
||
''
;
this
.
groupId
=
+
res
.
groupBuyInfo
.
groupId
||
''
;
}
}
if
(
res
.
saleCount
&&
res
.
activitySkuTotalCount
)
{
if
(
res
.
saleCount
&&
res
.
activitySkuTotalCount
)
{
const
percentage
=
+
res
.
saleCount
/
+
res
.
activitySkuTotalCount
;
const
percentage
=
+
res
.
activitySkuTotalCount
-
+
res
.
saleCount
/
+
res
.
activitySkuTotalCount
;
if
(
isNaN
(
percentage
))
{
if
(
isNaN
(
percentage
))
{
this
.
stockPercentage
=
0
;
this
.
stockPercentage
=
0
;
}
else
{
}
else
{
...
...
src/views/goodsList/components/goodsCard.vue
View file @
d68f3c58
...
@@ -82,10 +82,12 @@ export default {
...
@@ -82,10 +82,12 @@ export default {
let
percentage
=
0
;
let
percentage
=
0
;
// saleCount / activitySkuTotalCount
// saleCount / activitySkuTotalCount
const
{
saleCount
,
activitySkuTotalCount
}
=
item
;
const
{
saleCount
,
activitySkuTotalCount
}
=
item
;
percentage
=
((
activitySkuTotalCount
-
saleCount
)
/
activitySkuTotalCount
)
*
100
;
percentage
=
+
activitySkuTotalCount
-
+
saleCount
/
+
activitySkuTotalCount
;
percentage
=
percentage
<
0
?
0
:
percentage
;
if
(
isNaN
(
percentage
))
{
percentage
=
this
.
btnByStatus
.
d
?
0
:
percentage
;
return
0
;
return
Math
.
round
(
percentage
*
100
)
/
100
;
}
else
{
return
Math
.
floor
(
percentage
)
>=
1
?
100
:
Math
.
floor
(
percentage
*
100
);
}
},
},
onButtonClick
()
{
onButtonClick
()
{
try
{
try
{
...
...
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