店主升级到黄金没有弹窗

master
laiiihz 4 years ago
parent 023773029a
commit c3689900ac

@ -1456,7 +1456,8 @@ class _HomePageState extends BaseStoreState<HomePage>
await UserManager.instance.updateUserBriefInfo(getStore());
}
String img;
if (oldLevel < nowLevel) {
//
if (oldLevel > nowLevel) {
switch (UserLevelTool.roleLevelEnum(nowLevel)) {
case UserRoleLevel.Diamond_1:
case UserRoleLevel.Diamond_2:
@ -1473,7 +1474,8 @@ class _HomePageState extends BaseStoreState<HomePage>
break;
}
}
if (oldLevel > nowLevel) {
//
if (oldLevel < nowLevel) {
switch (UserLevelTool.roleLevelEnum(nowLevel)) {
case UserRoleLevel.Silver:
img = R.ASSETS_USER_DOWNGRADE_SILVER_PNG_WEBP;

@ -37,6 +37,7 @@ class _CumulativeIncomePageState extends BaseStoreState<CumulativeIncomePage>
///
String get _selectYearValue => _selectYear.year.toString();
///
double get _yearIncome {
double result = 0;
_models.forEach((element) {

@ -15,7 +15,8 @@ class UserMonthIncomeModel {
(guideAmount ?? 0) +
(teamAmount ?? 0) +
(recommendAmount ?? 0) +
(rewardAmount ?? 0);
(rewardAmount ?? 0) +
.0;
UserMonthIncomeModel(
{this.id,

Loading…
Cancel
Save