yanzhu-saas/yanzhu-ui/yanzhu-ui-mall-uniapp/pages/index/user.vue

65 lines
1.4 KiB
Vue
Raw Normal View History

2026-02-04 17:47:51 +08:00
<!-- 个人中心支持装修 -->
<template>
<s-layout
title="我的"
tabbar="/pages/index/user"
navbar="custom"
:bgStyle="template.page"
:navbarStyle="template.navigationBar"
onShareAppMessage
>
<s-block
v-for="(item, index) in template.components"
:key="index"
:styles="item.property.style"
>
<s-block-item :type="item.id" :data="item.property" :styles="item.property.style" />
</s-block>
2026-02-06 14:32:50 +08:00
<text class="cicon-set-o btn-sys-info" style="color: #888" @tap="goToSystemSetting"></text>
2026-02-04 17:47:51 +08:00
</s-layout>
</template>
<script setup>
import { computed } from 'vue';
import { onShow, onPageScroll, onPullDownRefresh } from '@dcloudio/uni-app';
import sheep from '@/sheep';
// 隐藏原生tabBar
uni.hideTabBar({
fail: () => {},
});
const template = computed(() => sheep.$store('app').template.user);
onShow(() => {
sheep.$store('user').updateUserData();
});
onPullDownRefresh(() => {
sheep.$store('user').updateUserData();
setTimeout(function () {
uni.stopPullDownRefresh();
}, 800);
});
onPageScroll(() => {});
2026-02-06 14:32:50 +08:00
function goToSystemSetting() {
uni.navigateTo({
url: '/pages/public/setting'
});
}
2026-02-04 17:47:51 +08:00
</script>
2026-02-06 14:32:50 +08:00
<style lang="scss" scoped>
.btn-sys-info {
border-radius: 40rpx;
font-size: 50rpx;
font-weight: 500;
color: $white;
position: absolute;
right: 100rpx;
top:70rpx;
}
</style>