|
|
@@ -19,6 +19,7 @@
|
|
|
<img
|
|
|
src="@assets/check/png-qiandao-btn.png"
|
|
|
alt=""
|
|
|
+ @click="sign"
|
|
|
class="btn animate__animated animate__heartBeat animate__infinite"
|
|
|
/>
|
|
|
<div class="text2">连续签到10天即可点亮<span>健康福</span></div>
|
|
|
@@ -50,9 +51,38 @@
|
|
|
|
|
|
<script setup>
|
|
|
import '@/styles/animate.css';
|
|
|
-import { ref } from 'vue';
|
|
|
+import { ref, onMounted } from 'vue';
|
|
|
+import http from '../plugins/http';
|
|
|
+import { useStore } from 'vuex';
|
|
|
+import dayjs from 'dayjs';
|
|
|
|
|
|
const cards = ref(['健康福', '成长福', '感恩福', '财富福', '事业福', '好运福', '智慧福']);
|
|
|
+
|
|
|
+const store = new useStore();
|
|
|
+function sign() {
|
|
|
+ http.http.post('/dailySign/sign', {
|
|
|
+ userId: store.state.userInfo.id
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+const startDate = ref('');
|
|
|
+const dates = ref([]);
|
|
|
+
|
|
|
+onMounted(() => {
|
|
|
+ http.http.get('sysConfig/get/fu_startTime').then(res => {
|
|
|
+ startDate.value = res.value;
|
|
|
+ // for (let i = 0; i < 10; i++)
|
|
|
+ });
|
|
|
+ // http.http.post(
|
|
|
+ // '/dailySign/all',
|
|
|
+ // {
|
|
|
+ // query: {
|
|
|
+ // userId: store.state.userInfo.id
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // { body: 'json' }
|
|
|
+ // );
|
|
|
+});
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|