zyejMAll-mobile/pages/index/user.vue

56 lines
1.2 KiB
Vue
Raw Normal View History

2024-08-07 10:31:42 +08:00
<!-- 个人中心支持装修 -->
<template>
<s-layout
2024-09-19 17:57:12 +08:00
title=" "
2024-08-07 10:31:42 +08:00
tabbar="/pages/index/user"
2024-09-19 17:57:12 +08:00
navbar="normal"
2024-08-07 10:31:42 +08:00
:bgStyle="template.page"
:navbarStyle="template.navigationBar"
onShareAppMessage
>
2024-09-19 17:57:12 +08:00
<image class="seckill" src="@/static/images/seckill-bg.png"></image>
2024-08-07 21:40:27 +08:00
<s-block
v-for="(item, index) in template.components"
:key="index"
:styles="item.property.style"
>
2024-08-07 10:31:42 +08:00
<s-block-item :type="item.id" :data="item.property" :styles="item.property.style" />
</s-block>
</s-layout>
</template>
<script setup>
import { computed } from 'vue';
import { onShow, onPageScroll, onPullDownRefresh } from '@dcloudio/uni-app';
import sheep from '@/sheep';
// 隐藏原生tabBar
uni.hideTabBar();
const template = computed(() => sheep.$store('app').template.user);
const isLogin = computed(() => sheep.$store('user').isLogin);
onShow(() => {
sheep.$store('user').updateUserData();
});
onPullDownRefresh(() => {
sheep.$store('user').updateUserData();
setTimeout(function () {
uni.stopPullDownRefresh();
}, 800);
});
onPageScroll(() => {});
</script>
2024-09-19 17:57:12 +08:00
<style>
.seckill{
width:100%;
position:absolute;
}
view{
position: relative;
}
</style>