|
|
1
|
+<template>
|
|
|
2
|
+ <view class="container">
|
|
|
3
|
+ <view class="container-box">
|
|
|
4
|
+ <image :src="mpOwnConfig.logo ? mpOwnConfig.logo : staticLogo"></image>
|
|
|
5
|
+ <text class="splash-text-muted">连接世界 创造价值</text>
|
|
|
6
|
+ </view>
|
|
|
7
|
+ </view>
|
|
|
8
|
+</template>
|
|
|
9
|
+
|
|
|
10
|
+<script>
|
|
|
11
|
+import { mapState } from 'vuex';
|
|
|
12
|
+export default {
|
|
|
13
|
+ data() {
|
|
|
14
|
+ return {
|
|
|
15
|
+ staticLogo: '../../static/logo.png',
|
|
|
16
|
+ mpOwnConfig: {}
|
|
|
17
|
+ };
|
|
|
18
|
+ },
|
|
|
19
|
+ onLoad() {
|
|
|
20
|
+ this.getPlateForm();
|
|
|
21
|
+ if (!this.userInfo.isToken) {
|
|
|
22
|
+ setTimeout(() => {
|
|
|
23
|
+ uni.reLaunch({
|
|
|
24
|
+ url: '/publicLoginSubPage/public/login'
|
|
|
25
|
+ });
|
|
|
26
|
+ }, 2500);
|
|
|
27
|
+ } else {
|
|
|
28
|
+ setTimeout(() => {
|
|
|
29
|
+ uni.reLaunch({
|
|
|
30
|
+ url: '/pages/index/index'
|
|
|
31
|
+ });
|
|
|
32
|
+ }, 2500);
|
|
|
33
|
+ }
|
|
|
34
|
+ },
|
|
|
35
|
+ computed: {
|
|
|
36
|
+ ...mapState(['userInfo'])
|
|
|
37
|
+ },
|
|
|
38
|
+ methods: {
|
|
|
39
|
+ getPlateForm() {
|
|
|
40
|
+ uni.$u.http.get('/yt/app_design/get').then(res => {
|
|
|
41
|
+ if (res) {
|
|
|
42
|
+ this.mpOwnConfig = {
|
|
|
43
|
+ bg: res.background,
|
|
|
44
|
+ logo: res.logo,
|
|
|
45
|
+ name: res.name
|
|
|
46
|
+ };
|
|
|
47
|
+ }
|
|
|
48
|
+ });
|
|
|
49
|
+ }
|
|
|
50
|
+ }
|
|
|
51
|
+};
|
|
|
52
|
+</script>
|
|
|
53
|
+
|
|
|
54
|
+<style lang="less">
|
|
|
55
|
+.container {
|
|
|
56
|
+ width: 100%;
|
|
|
57
|
+ height: 100%;
|
|
|
58
|
+ margin-top: 300rpx;
|
|
|
59
|
+ .container-box {
|
|
|
60
|
+ display: flex;
|
|
|
61
|
+ align-items: center;
|
|
|
62
|
+ justify-content: space-between;
|
|
|
63
|
+ flex-direction: column;
|
|
|
64
|
+ image {
|
|
|
65
|
+ width: 100rpx;
|
|
|
66
|
+ height: 100rpx;
|
|
|
67
|
+ }
|
|
|
68
|
+ text {
|
|
|
69
|
+ }
|
|
|
70
|
+ }
|
|
|
71
|
+}
|
|
|
72
|
+</style> |
...
|
...
|
|