123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <template>
- <view class="launch-v">
- <view class="launch-box">
- <view class="title">全新模式 为你而来</view>
- <view class="version">VERSION5.2</view>
- <view class="launch-img">
- <image :src="startup" mode="widthFix"></image>
- </view>
- <view class="copyright">Copyright © 2024 引迈信息技术有限公司出品</view>
- </view>
- </view>
- </template>
- <script>
- import resources from '@/libs/resources.js'
- export default {
- data() {
- return {
- startup: resources.startup.main
- }
- },
- onLoad() {
- if (uni.getStorageSync('isUpdate')) return
- const launchFlag = uni.getStorageSync('launchFlag');
- const token = uni.getStorageSync("token") || '';
- if (launchFlag) {
- if (token) {
- uni.switchTab({
- url: '/pages/index/index'
- })
- } else {
- uni.redirectTo({
- url: '/pages/login/index'
- })
- }
- } else {
- // #ifdef APP
- uni.redirectTo({
- url: '/pages/launch/policy'
- })
- // #endif
- // #ifndef APP
- if (token) {
- uni.switchTab({
- url: '/pages/index/index'
- })
- } else {
- uni.redirectTo({
- url: '/pages/login/index'
- })
- }
- // #endif
- }
- },
- }
- </script>
- <style lang="scss">
- .launch-v {
- .launch-box {
- padding-top: 170rpx;
- .title {
- font-size: 50rpx;
- line-height: 70rpx;
- color: #5098FA;
- text-align: center;
- margin-bottom: 10rpx;
- }
- .version {
- width: 250rpx;
- margin: 0 auto;
- text-align: center;
- height: 50rpx;
- border: 1px solid #5098FA;
- border-radius: 25rpx;
- line-height: 48rpx;
- color: #5098FA;
- letter-spacing: 2rpx;
- }
- .launch-img {
- margin: 0 auto;
- width: 680rpx;
- image {
- width: 100%;
- }
- }
- .copyright {
- position: fixed;
- bottom: 120rpx;
- right: 0;
- left: 0;
- text-align: center;
- color: #999999;
- font-size: 24rpx;
- }
- }
- }
- </style>
|