Authored by 李靖

会员等级进度条

... ... @@ -36,6 +36,11 @@ class storeHome extends global.yoho.BaseModel {
let photography = result[0].data.vip_type === 3;
let gallery = result[0].data.vip_type === 4;
// 画廊只有两个状态,0:非会员,1:会员,会员进度条相当于普通的vip3
if (gallery && result[0].data.vip_level === 1) {
result[0].data.vip_level = 3;
}
Object.assign(result[0].data, {
photography: photography,
coffee: coffee,
... ... @@ -189,6 +194,15 @@ class storeHome extends global.yoho.BaseModel {
}
process = (amount / 10000) * 100;
return process;
case 4:
if (amount < 0) {
amount = 0;
}
if (amount > 10000) {
amount = 10000;
}
process = (amount / 10000) * 100;
return process;
default:
return process;
}
... ...
... ... @@ -70,10 +70,6 @@ input::-webkit-calendar-picker-indicator {
display: inline-block;
}
.vip-s {
background-image: url("/activity/store-home/vip.png");
}
.vip-1 {
background-image: url("/activity/store-home/vip1.png");
}
... ... @@ -86,6 +82,10 @@ input::-webkit-calendar-picker-indicator {
background-image: url("/activity/store-home/vip3.png");
}
.vip-s {
background-image: url("/activity/store-home/vip.png");
}
.list {
clear: both;
padding: 0 30px;
... ... @@ -434,10 +434,6 @@ input::-webkit-calendar-picker-indicator {
}
.disable {
.vip-s {
background-image: url("/activity/store-home/vip-1.png");
}
.vip-1 {
background-image: url("/activity/store-home/vip1-1.png");
}
... ... @@ -450,6 +446,10 @@ input::-webkit-calendar-picker-indicator {
background-image: url("/activity/store-home/vip3-1.png");
}
.vip-s {
background-image: url("/activity/store-home/vip-1.png");
}
.dot {
background-color: #e0e0e0 !important;
}
... ...