Commit d68f3c58 authored by beisir's avatar beisir

feat:测试webpp线上

parents e1521398 5003a0f2
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
> >
<img <img
class="avator" class="avator"
style="width: 84px; style="width: 94px;
height: 84px;" height: 94px;"
: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%;
......
...@@ -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 {
......
...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment