更新10.8

This commit is contained in:
许允枞 2024-10-08 18:29:23 +08:00
parent 41b52c140a
commit 3452957db9
3 changed files with 7 additions and 2 deletions

View File

@ -396,9 +396,11 @@ public class IntegralSettingsServiceImpl implements IntegralSettingsService {
Pattern pattern = Pattern.compile("\\d+");
Matcher matcher = pattern.matcher(integralDetail.getChangeReason());
StringBuilder numbers = new StringBuilder();
StringBuilder classColor = new StringBuilder();
numbers.append(0);
while (matcher.find()) {
numbers.append(matcher.group());
classColor.append(matcher.group());
}
if (StrUtil.isEmpty(numbers)) {
integralSettingsVo.setSignInDays("0");
@ -408,6 +410,7 @@ public class IntegralSettingsServiceImpl implements IntegralSettingsService {
numbers.deleteCharAt(0);
}
integralSettingsVo.setSignInDays(numbers.toString());
integralSettingsVo.setClassColor(Integer.parseInt(classColor.toString()));
} else {
integralSettingsVo.setSignInDays("0");
}

View File

@ -17,6 +17,7 @@ import java.util.List;
public class IntegralSettingsVo{
private String signInDays;
private List<IntegralSettingsBo> integralSettings;
private Integer classColor;
}

View File

@ -10,7 +10,7 @@
</view>
<view class="wrap-box">
<view class="w_box" v-for="(item,index) in list" :key="index" @click="setIndex(index,item)"
:class="{'acv_w' : wIndex == index }">
:class="{'acv_w' : (index + 1) <= wIndex }">
<view class="">{{item.integralName}}</view>
<image src="@/static/imgs/jinbi.png" style="width: 25px; height: 25px; "></image>
<view class="">{{item.integral}}积分</view>
@ -147,7 +147,7 @@
this.equityShow = false
},
setIndex(index, data) {
this.wIndex = index
// this.wIndex = index
this.integral = data.integral
},
getList() {
@ -161,6 +161,7 @@
if (res.code == 200) {
this.list = res.data.integralSettings
this.signInDays = res.data.signInDays
this.wIndex = res.data.classColor
}
})
},