65 lines
1.3 KiB
Vue
65 lines
1.3 KiB
Vue
<!-- 个人中心:支持装修 -->
|
||
<template>
|
||
<s-layout title="个人中心" tabbar="/pages/index/user" navbar="normal" :bgStyle="template.page"
|
||
:navbarStyle="template.navigationBar" onShareAppMessage>
|
||
|
||
<image class="seckill" src="@/static/images/seckilbg.png"></image>
|
||
<s-block class="" 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>
|
||
</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>
|
||
|
||
<style>
|
||
.new-main{
|
||
|
||
}
|
||
.seckill1 {
|
||
position: absolute;
|
||
top: 117px;
|
||
z-index: 22;
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
width: 94%;
|
||
}
|
||
|
||
.seckill {
|
||
width: 100%;
|
||
position: absolute;
|
||
}
|
||
|
||
view {
|
||
position: relative;
|
||
}
|
||
</style> |