|
@@ -21,13 +21,13 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="mt-1 font-13" style="text-align: center;" :style="{'color': index < 连续签到天数 ? '#f98b1f' : '#333'}">
|
|
<div class="mt-1 font-13" style="text-align: center;" :style="{'color': index < 连续签到天数 ? '#f98b1f' : '#333'}">
|
|
- {{ `${index +1 === 连续签到天数 ? '今天' : index +1 + '天'}` }}
|
|
|
|
|
|
+ {{ `${index === 今天序号 ? '今天' : index +1 + '天'}` }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="mt-8 mr-8" style="text-align: right;">
|
|
|
|
- <span class="font-13 color-777 mr-3">您已经连续签到3天, 明天在领取2积分</span>
|
|
|
|
- <v-btn class="half-button" color="warning" size="small">签到</v-btn>
|
|
|
|
|
|
+ <div class="mt-8" style="text-align: right;">
|
|
|
|
+ <span class="font-13 color-777 mr-3">您已经连续签到3天, 明天再领取2积分</span>
|
|
|
|
+ <v-btn class="half-button" color="warning" size="small" :disabled="今天有无签到" @click="handleSignIn">{{ 今天有无签到 ? '已签到' : '签到' }}</v-btn>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -36,7 +36,24 @@
|
|
import integralShow from '@/views/personal/components/integralShow.vue'
|
|
import integralShow from '@/views/personal/components/integralShow.vue'
|
|
import { ref } from 'vue'
|
|
import { ref } from 'vue'
|
|
defineOptions({name: 'personal-taskCenter-signIn'})
|
|
defineOptions({name: 'personal-taskCenter-signIn'})
|
|
-const 连续签到天数 = ref(3)
|
|
|
|
|
|
+
|
|
|
|
+// 连续签到天数
|
|
|
|
+const 连续签到天数 = ref(0)
|
|
|
|
+const 连续签到天数Fun = () => {
|
|
|
|
+ 连续签到天数.value = 3
|
|
|
|
+}
|
|
|
|
+连续签到天数Fun()
|
|
|
|
+
|
|
|
|
+// 今天有无签到
|
|
|
|
+const 今天有无签到 = ref(0)
|
|
|
|
+const 今天有无签到Fun = () => {
|
|
|
|
+ 今天有无签到.value = false
|
|
|
|
+}
|
|
|
|
+今天有无签到Fun()
|
|
|
|
+
|
|
|
|
+const handleSignIn = () => {
|
|
|
|
+}
|
|
|
|
+const 今天序号 = ref(今天有无签到.value ? 连续签到天数.value -1 : 连续签到天数.value)
|
|
const list = ref([
|
|
const list = ref([
|
|
{ 增加积分数: 1 },
|
|
{ 增加积分数: 1 },
|
|
{ 增加积分数: 1 },
|
|
{ 增加积分数: 1 },
|
|
@@ -49,7 +66,6 @@ const list = ref([
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.color-333 { color: #333; }
|
|
.color-333 { color: #333; }
|
|
-.color-666 { color: #666; }
|
|
|
|
.color-777 { color: #777; }
|
|
.color-777 { color: #777; }
|
|
.font-12 { font-size: 12px; }
|
|
.font-12 { font-size: 12px; }
|
|
.font-13 { font-size: 13px; }
|
|
.font-13 { font-size: 13px; }
|