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.

175 lines
3.4 KiB

2 years ago
<template>
<view class="container">
2 years ago
<image class="logo" :src="require('@/static/index-logo.png')"></image>
2 years ago
<image class="logo1" :src="require('@/static/index-logo1.png')"></image>
2 years ago
<image class="logo2" :src="require('@/static/index-logo2.png')"></image>
2 years ago
<view class="titlewrap">
<image class="title" :src="require('@/static/index-title.png')"></image>
<view class="title-progress">
<view class="progress-text">{{progressPercentage}}%</view>
2 years ago
2 years ago
<view class="progress-bar-container">
<view class="progress-bar" :style="{'width':progressPercentage+'%'}"></view>
</view>
2 years ago
</view>
2 years ago
2 years ago
</view>
2 years ago
2 years ago
<view class="support">
2 years ago
<view>
2 years ago
<p>技术支撑江苏有线苏州分公司</p>
2 years ago
</view>
2 years ago
</view>
2 years ago
</view>
</template>
2 years ago
<script>
export default {
2 years ago
data() {
return {
2 years ago
progressPercentage: 0,
interval:null,
2 years ago
isShare:false,
2 years ago
}
},
2 years ago
async onLoad() {
2 years ago
// await this.$onLaunched;
2 years ago
this.start();
},
beforeDestroy() {
clearInterval(this.interval);
2 years ago
},
2 years ago
methods: {
2 years ago
start() {
this.interval = setInterval(() => {
this.isShare = uni.getStorageSync('tadk2_lifeData').vuex_share?true:false
const userInfo = uni.getStorageSync('tadk2_lifeData').vuex_user
2 years ago
// if(this.isShare){
2 years ago
if(this.progressPercentage<100){
this.progressPercentage++;
}else{
2 years ago
// return
2 years ago
clearInterval(this.interval);
if(userInfo && userInfo.mobile){
uni.navigateTo({
url:'/pages/map/map'
})
}else{
uni.navigateTo({
url:'/pages/login/login'
})
}
}
2 years ago
// }else{
// if(this.progressPercentage<99){
// this.progressPercentage++;
// }
// }
2 years ago
2 years ago
}, 60);
2 years ago
},
},
}
</script>
<style lang="scss">
.container {
height: 100vh;
width: 100vw;
2 years ago
background: #e1f1f2;
2 years ago
position: relative;
2 years ago
.logo {
width: 59rpx;
height: 106rpx;
2 years ago
position: absolute;
2 years ago
top: 35rpx;
left: 65rpx;
2 years ago
}
2 years ago
.logo1 {
width: 97rpx;
height: 86rpx;
2 years ago
position: absolute;
2 years ago
top: 45rpx;
left: 140rpx
2 years ago
}
.logo2 {
width: 189rpx;
height: 88rpx;
position: absolute;
top: 45rpx;
left: 250rpx
2 years ago
}
2 years ago
.titlewrap{
position: absolute;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
.title {
width: 633rpx;
height: 498rpx;
}
.title-progress{
margin-top:30rpx;
.progress-text{
text-align: center;
color:#156e68;
font-size: 60rpx;
margin-bottom:20rpx
}
.progress-bar-container {
width: 90%;
height: 55rpx;
background-color: #f7f1e1;
overflow: hidden;
border:4rpx solid #156e68;
border-radius: 20rpx;
margin:0 auto;
font-size: 0;
}
.progress-bar {
height: 100%;
background-color: #156e68;
width:0;
border-radius:0 16rpx 16rpx 0;
// transition: width 0.5s;
// animation: width100 5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
// @keyframes width100 {
// 0% {
// width:0%
// }
// 30% {
// width:30%
// }
// 50%{
// width:30%
// }
// 70%{
// width:70%
// }
// 100% {
// width:100%
// }
// }
}
2 years ago
}
2 years ago
2 years ago
2 years ago
.support {
2 years ago
position: absolute;
2 years ago
bottom: 10rpx;
width: 100%;
font-size: 24rpx;
2 years ago
color: #333;
2 years ago
font-family: '宋体';
opacity: 1;
text-align: center;
z-index: 9;
2 years ago
}
}
</style>