project/pages/customizate/index.vue

67 lines
1.3 KiB
Vue
Raw Permalink Normal View History

2024-07-14 15:48:34 +08:00
<template>
<view :class="`customizateFather ${loading?'customizateload':''}`">
<!-- <cover-view class="loading" v-if="loading"></cover-view> -->
<!-- <customizate v-if="currentTab == 1" @changeTabs="changeTabs"></customizate> -->
<custommajor></custommajor>
</view>
</template>
<script>
import customizate from "@/components/customizate.vue"
import custommajor from "@/components/custommajor.vue"
export default {
data() {
return {
currentTab: 1,
loading: true
}
},
components: {
customizate,
custommajor,
},
onLoad() {
var _that = this;
uni.showLoading({
title: '加载中',
})
setTimeout(function() {
_that.loading = false
uni.hideLoading({
title: '加载中',
})
}, 1000);
},
methods: {
changeTabs: function(val) {
var _that = this;
uni.showLoading({
title: '加载中',
})
_that.loading = true;
_that.currentTab = val.currentTab;
setTimeout(function() {
_that.loading = false
uni.hideLoading({
title: '加载中',
})
}, 1000);
_that.$forceUpdate();
}
}
}
</script>
<style lang="scss" scoped>
.customizateFather .loading {
position: fixed;
width: 100vw;
height: 100vh;
background-color: #ffffff;
z-index: 10000000000;
}
.customizateload {
height: 100vh;
}
</style>