feat: 添加签到功能

This commit is contained in:
陈淳
2024-01-13 17:20:57 +08:00
parent 4e5f51a4c8
commit f1a87ef529
3 changed files with 33 additions and 4 deletions

View File

@@ -1,8 +1,29 @@
<template>
<div class="everyday-box">每日签到页持续coding中~~~</div>
<div class="everyday-box">
<h4>每日签到页持续coding中~~~</h4>
<el-button type="primary" @click="signInOnclic">点击完成签到</el-button>
</div>
</template>
<script setup></script>
<script setup>
import { onMounted, ref, reactive, computed, nextTick, watch } from "vue";
import { signIn } from "@/apis/integralApi.js";
const signInOnclic= async()=>{
const { data: data}= await signIn();
ElMessage({
message: `恭喜!运气爆棚,今日获得:${data.value} 钱钱`,
type: "success",
});
}
</script>
<style lang="scss" scoped>
.everyday-box {