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