|
@@ -4,26 +4,16 @@
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
import { onMounted, ref } from 'vue'
|
|
import { onMounted, ref } from 'vue'
|
|
-import Card from '@/components/card.vue'
|
|
|
|
import CardMenu from '@/components/card-menu.vue'
|
|
import CardMenu from '@/components/card-menu.vue'
|
|
import SectionHeading from '@/components/section-heading.vue'
|
|
import SectionHeading from '@/components/section-heading.vue'
|
|
import StartMenuButton from '@/components/start-menu-button.vue'
|
|
import StartMenuButton from '@/components/start-menu-button.vue'
|
|
import { designer, settled, treaty, vipBg } from '@/core/libs/pngs'
|
|
import { designer, settled, treaty, vipBg } from '@/core/libs/pngs'
|
|
-import {
|
|
|
|
- integral,
|
|
|
|
- coupon,
|
|
|
|
- order,
|
|
|
|
- agent,
|
|
|
|
- setting,
|
|
|
|
- wechat,
|
|
|
|
- award,
|
|
|
|
- camera,
|
|
|
|
- vip,
|
|
|
|
-} from '@/core/libs/svgs'
|
|
|
|
|
|
+import { integral, coupon, order, agent, setting, vip } from '@/core/libs/svgs'
|
|
import { getMemberUserInfo } from '@/core/libs/requests'
|
|
import { getMemberUserInfo } from '@/core/libs/requests'
|
|
import { useUserStore } from '@/store'
|
|
import { useUserStore } from '@/store'
|
|
import { storeToRefs } from 'pinia'
|
|
import { storeToRefs } from 'pinia'
|
|
import { isEmpty } from 'radash'
|
|
import { isEmpty } from 'radash'
|
|
|
|
+import TasksCard from './components/tasks-card.vue'
|
|
|
|
|
|
const userStore = useUserStore()
|
|
const userStore = useUserStore()
|
|
const { isLogined, userInfo } = storeToRefs(userStore)
|
|
const { isLogined, userInfo } = storeToRefs(userStore)
|
|
@@ -59,6 +49,13 @@ const pieces = ref([
|
|
iconSize: 44,
|
|
iconSize: 44,
|
|
},
|
|
},
|
|
])
|
|
])
|
|
|
|
+const tasks = ref([
|
|
|
|
+ { title: '到店打卡获取积分', score: 150, completed: true },
|
|
|
|
+ { title: '到店打卡获取积分', score: 150 },
|
|
|
|
+ { title: '到店打卡获取积分', score: 150 },
|
|
|
|
+ { title: '到店打卡获取积分', score: 150 },
|
|
|
|
+ { title: '到店打卡获取积分', score: 150 },
|
|
|
|
+])
|
|
const avatar = computed(() =>
|
|
const avatar = computed(() =>
|
|
!isEmpty(userInfo.value.avatar) ? userInfo.value.avatar : 'https://via.placeholder.com/72x72',
|
|
!isEmpty(userInfo.value.avatar) ? userInfo.value.avatar : 'https://via.placeholder.com/72x72',
|
|
)
|
|
)
|
|
@@ -184,7 +181,8 @@ onMounted(async () => {
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
- <SectionHeading title="和筑巢荟一起共同成长"></SectionHeading>
|
|
|
|
|
|
+ <TasksCard custom-class="my-6" :items="tasks"></TasksCard>
|
|
|
|
+ <SectionHeading custom-class="my-6" title="和筑巢荟一起共同成长"></SectionHeading>
|
|
<CardMenu :items="pieces" custom-class="grid-cols-2" />
|
|
<CardMenu :items="pieces" custom-class="grid-cols-2" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|