You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.5 KiB
60 lines
1.5 KiB
<template>
|
|
<s-layout
|
|
title="我的"
|
|
tabbar="/pages/index/user"
|
|
:bgStyle="template.style?.background"
|
|
:navbarStyle="template.style?.navbar"
|
|
onShareAppMessage
|
|
:showFloatButton="true"
|
|
>
|
|
<s-block v-for="(item, index) in template.data" :key="index" :styles="item.style">
|
|
<s-block-item :type="item.type" :data="item.data" :styles="item.style" />
|
|
</s-block>
|
|
<view class="copyright">
|
|
<view>copyright@2020-2024</view>
|
|
<view>zhongkexiangjiu.com.cn版权所有</view>
|
|
<view>备案号:苏ICP备2024087275号-3A</view>
|
|
<view>建邺禾蕙健康产业中心</view>
|
|
</view>
|
|
</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);
|
|
console.log(111, template);
|
|
|
|
onShow(() => {
|
|
sheep.$store('user').updateUserData();
|
|
});
|
|
|
|
onPullDownRefresh(() => {
|
|
sheep.$store('user').updateUserData();
|
|
setTimeout(function () {
|
|
uni.stopPullDownRefresh();
|
|
}, 800);
|
|
});
|
|
|
|
onPageScroll(() => {});
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.copyright {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 40px 0;
|
|
>view {
|
|
font-size: 26rpx;
|
|
line-height: 40rpx;
|
|
color: #999;
|
|
}
|
|
}
|
|
</style>
|
|
|