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
Hide 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 @@
>
<img
class=
"avator"
style=
"width:
8
4px;
height:
8
4px;"
style=
"width:
9
4px;
height:
9
4px;"
:src=
"item"
alt=
""
/>
...
...
@@ -27,7 +27,7 @@
</div>
<div
class=
"leaderBorder"
>
<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=
""
/>
</div>
...
...
@@ -44,7 +44,10 @@
/>
</template>
<
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
class=
"leaderName"
style=
"width: 76px;height: 36px;border-radius: 8px;font-size: 24px;bottom: -18px;"
...
...
@@ -53,12 +56,12 @@
</div>
<div
class=
"leaderBorder"
>
<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=
""
/>
</div>
<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
...
...
@@ -273,6 +276,10 @@ body {
.groupInfo .avatorGroup .normal,
.groupInfo .avatorGroup .leader.bg {
background-color: #ffe1e1;
color: #ec1500;
}
.groupInfo .avatorGroup .leader.bg::after {
content: '?';
}
.groupInfo .avatorGroup .leader {
background: transparent;
...
...
@@ -299,6 +306,7 @@ body {
}
.groupInfo .avatorGroup .leader .crown {
position: absolute;
z-index: 3;
}
.groupInfo .avatorGroup .leader .crown img {
width: 100%;
...
...
@@ -342,6 +350,9 @@ body {
.groupInfo .avatorGroup .placeholder::after {
content: '?';
}
.groupInfo .avatorGroup .placeholder .crown {
z-index: 3;
}
.groupInfo .groupProcess .desc {
width: 100%;
height: 100%;
...
...
src/views/goodsDetail/smallPic.vue
View file @
d68f3c58
...
...
@@ -37,8 +37,8 @@
<cr-progress
class=
"group-item-progress"
stroke-width=
"5"
color=
"#
F7F8F9
"
track-color=
"#
EC1500
"
color=
"#
EC1500
"
track-color=
"#
F7F8F9
"
:show-pivot=
"false"
:percentage=
"stockPercentage"
/>
...
...
@@ -215,7 +215,7 @@ export default {
this
.
groupId
=
+
res
.
groupBuyInfo
.
groupId
||
''
;
}
if
(
res
.
saleCount
&&
res
.
activitySkuTotalCount
)
{
const
percentage
=
+
res
.
saleCount
/
+
res
.
activitySkuTotalCount
;
const
percentage
=
+
res
.
activitySkuTotalCount
-
+
res
.
saleCount
/
+
res
.
activitySkuTotalCount
;
if
(
isNaN
(
percentage
))
{
this
.
stockPercentage
=
0
;
}
else
{
...
...
src/views/goodsList/components/goodsCard.vue
View file @
d68f3c58
...
...
@@ -82,10 +82,12 @@ export default {
let
percentage
=
0
;
// saleCount / activitySkuTotalCount
const
{
saleCount
,
activitySkuTotalCount
}
=
item
;
percentage
=
((
activitySkuTotalCount
-
saleCount
)
/
activitySkuTotalCount
)
*
100
;
percentage
=
percentage
<
0
?
0
:
percentage
;
percentage
=
this
.
btnByStatus
.
d
?
0
:
percentage
;
return
Math
.
round
(
percentage
*
100
)
/
100
;
percentage
=
+
activitySkuTotalCount
-
+
saleCount
/
+
activitySkuTotalCount
;
if
(
isNaN
(
percentage
))
{
return
0
;
}
else
{
return
Math
.
floor
(
percentage
)
>=
1
?
100
:
Math
.
floor
(
percentage
*
100
);
}
},
onButtonClick
()
{
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