|
@@ -1,45 +1,47 @@
|
|
|
<template>
|
|
|
- <up-popup class="check-popup" :show="showPopup" mode="center" @close="closeCheckPopup" bgColor="transparent" overlayOpacity="0.8">
|
|
|
- <view class="title">
|
|
|
- <image class="left-image image" :src="`${config.BASIC_IMG}img/treePage/two-star.png`" alt="" />
|
|
|
- <text>恭喜你,登录成功</text>
|
|
|
- <image class="right-image image" :src="`${config.BASIC_IMG}img/treePage/two-star.png`" alt="" />
|
|
|
- </view>
|
|
|
- <view class="check-wrap">
|
|
|
- <!-- First row with 3 items -->
|
|
|
- <view class="check-row">
|
|
|
- <view v-for="(item, index) in firstRowItems" :key="index"
|
|
|
- :class="['check-day', { active: runningDays == index + 1 },{gary:runningDays > index + 1}]">
|
|
|
- <view class="leaf-wrap">
|
|
|
- <image class="leaf"
|
|
|
- :src="`${config.BASIC_IMG}img/treePage/${runningDays == index + 1 ? 'white-leaf' : runningDays > index + 1 ?'gary-leaf':'leaf-icon'}.png`"
|
|
|
- alt="leaf icon" />
|
|
|
- <text>x{{ item.energy }}</text>
|
|
|
- </view>
|
|
|
- <view v-if="runningDays > index + 1"><text>已领取</text></view>
|
|
|
- <view v-else><text v-if="runningDays == index + 1">累计</text>{{ item.days }}天</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <!-- Second row with 4 items -->
|
|
|
- <view class="check-row">
|
|
|
- <view v-for="(item, index) in secondRowItems" :key="index"
|
|
|
- :class="['check-day', { active: runningDays == index + 4 },{gary:runningDays > index + 4}]">
|
|
|
- <view class="leaf-wrap">
|
|
|
- <image class="leaf"
|
|
|
- :src="`${config.BASIC_IMG}img/treePage/${runningDays == index + 4 ? 'white-leaf' : runningDays > index + 4 ?'gary-leaf':'leaf-icon'}.png`"
|
|
|
- alt="leaf icon" />
|
|
|
- <text>x{{ item.energy }}</text>
|
|
|
- </view>
|
|
|
- <view v-if="runningDays > index + 4"><text>已领取</text></view>
|
|
|
- <view v-else><text v-if="runningDays == index + 4">累计</text>{{ item.days }}天</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="button" @click="showPopup = false">开心收下</view>
|
|
|
- <view class="close">
|
|
|
- <up-icon name="close-circle-fill" size="30" @click="showPopup = false"
|
|
|
- color="rgba(255, 255, 255, 0.7)"></up-icon>
|
|
|
+ <up-popup :show="showPopup" mode="center" @close="closeCheckPopup" bgColor="transparent" overlayOpacity="0.8">
|
|
|
+ <view class="check-popup">
|
|
|
+ <view class="title">
|
|
|
+ <image class="left-image image" :src="`${config.BASIC_IMG}img/treePage/two-star.png`" alt="" />
|
|
|
+ <text>恭喜你,登录成功</text>
|
|
|
+ <image class="right-image image" :src="`${config.BASIC_IMG}img/treePage/two-star.png`" alt="" />
|
|
|
+ </view>
|
|
|
+ <view class="check-wrap">
|
|
|
+ <!-- First row with 3 items -->
|
|
|
+ <view class="check-row">
|
|
|
+ <view v-for="(item, index) in firstRowItems" :key="index"
|
|
|
+ :class="['check-day', { active: runningDays == index + 1 },{gary:runningDays > index + 1}]">
|
|
|
+ <view class="leaf-wrap">
|
|
|
+ <image class="leaf"
|
|
|
+ :src="`${config.BASIC_IMG}img/treePage/${runningDays == index + 1 ? 'white-leaf' : runningDays > index + 1 ?'gary-leaf':'leaf-icon'}.png`"
|
|
|
+ alt="leaf icon" />
|
|
|
+ <text>x{{ item.energy }}</text>
|
|
|
+ </view>
|
|
|
+ <view v-if="runningDays > index + 1"><text>已领取</text></view>
|
|
|
+ <view v-else><text v-if="runningDays == index + 1">累计</text>{{ item.days }}天</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <!-- Second row with 4 items -->
|
|
|
+ <view class="check-row">
|
|
|
+ <view v-for="(item, index) in secondRowItems" :key="index"
|
|
|
+ :class="['check-day', { active: runningDays == index + 4 },{gary:runningDays > index + 4}]">
|
|
|
+ <view class="leaf-wrap">
|
|
|
+ <image class="leaf"
|
|
|
+ :src="`${config.BASIC_IMG}img/treePage/${runningDays == index + 4 ? 'white-leaf' : runningDays > index + 4 ?'gary-leaf':'leaf-icon'}.png`"
|
|
|
+ alt="leaf icon" />
|
|
|
+ <text>x{{ item.energy }}</text>
|
|
|
+ </view>
|
|
|
+ <view v-if="runningDays > index + 4"><text>已领取</text></view>
|
|
|
+ <view v-else><text v-if="runningDays == index + 4">累计</text>{{ item.days }}天</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="button" @click="showPopup = false">开心收下</view>
|
|
|
+ <view class="close">
|
|
|
+ <up-icon name="close-circle-fill" size="30" @click="showPopup = false"
|
|
|
+ color="rgba(255, 255, 255, 0.7)"></up-icon>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</up-popup>
|
|
|
</template>
|
|
@@ -92,7 +94,6 @@
|
|
|
|
|
|
.check-popup {
|
|
|
width: 100%;
|
|
|
- background: transparent;
|
|
|
text-align: center;
|
|
|
|
|
|
.title {
|
|
@@ -114,11 +115,11 @@
|
|
|
|
|
|
.left-image {
|
|
|
top: 0;
|
|
|
- left: -14rpx;
|
|
|
+ left: 84rpx;
|
|
|
}
|
|
|
|
|
|
.right-image {
|
|
|
- right: -16rpx;
|
|
|
+ right: 84rpx;
|
|
|
bottom: 0;
|
|
|
}
|
|
|
|
|
@@ -128,7 +129,7 @@
|
|
|
width: 600rpx;
|
|
|
height: 104rpx;
|
|
|
bottom: -44rpx;
|
|
|
- left: -16rpx;
|
|
|
+ left: 84rpx;
|
|
|
@include ossBg("treePage/check-title-bg.png");
|
|
|
}
|
|
|
}
|