Blame view

pages/launch/index_1.vue 1.86 KB
290144e9   易尊强   第一次
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
  <template>
  	<view class="launch-v">
  		<!-- #ifdef APP-PLUS -->
  		<view class="launch-box">
  			<view class="title">全新模式 为你而来</view>
  			<view class="version">VERSION3.2</view>
  			<view class="launch-img">
  				<image :src="startup" mode="widthFix"></image>
  			</view>
  			<view class="copyright">Copyright © 2021 引迈信息技术有限公司出品</view>
  		</view>
  		<!-- #endif -->
  	</view>
  </template>
  
  <script>
  	import resources from '@/libs/resources.js'
  	export default {
  		data() {
  			return {
  				startup: resources.startup.main
  			}
  		},
  		onLoad() {
  			const launchFlag = uni.getStorageSync('launchFlag');
  			const token = uni.getStorageSync("token") || '';
  			if (launchFlag) {
  				if (token) {
  					uni.switchTab({
  						url: '/pages/index/apply'
  					})
  				} else {
  					uni.redirectTo({
  						url: '/pages/login/index'
  					})
  				}
  			} else {
  				// #ifdef APP-PLUS
  				uni.redirectTo({
  					url: '/pages/launch/policy'
  				})
  				// #endif
  				// #ifndef APP-PLUS
  				if (token) {
  					uni.switchTab({
  						url: '/pages/index/apply'
  					})
  				} 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>