1
jhzh
2025-06-16 1760942f9204e56032ca93ff1b720bbf966dd495
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
<template>
  <view class="start-page">
    <image
      class="img"
      mode="aspectFill"
      src=""
      alt=""
    />
    <!-- 别删 预加载用 -->
    <iframe
    v-if="show"
      :src="
        app.mobile +
        '/static/chart_main/static/bundles/library.21c43e3cd2e427bd8522.js'
      "
      style="width: 0; height: 0"
      frameborder="0"
    ></iframe>
  </view>
</template>
<script>
import upgrade from "@/plugins/upgrade.js";
import app from "@/app";
export default {
  name: "startPage",
  data() {
    return {
      app,
      show:false
    };
  },
  onLoad() {
    let dtime = setTimeout(() => {
      uni.reLaunch({
        url: "/pages/base/index",
      });
      upgrade.isUpdate(() => {
        // 前往升级
        uni.reLaunch({
          url: "/pages/upgrade/index",
        });
      });
    }, 0);
    // #ifdef H5
    uni.reLaunch({
      url: "/pages/base/index",
    });
    clearTimeout(dtime);
    // #endif
    setTimeout(()=>{
      this.show = true
    },4500)
  },
  methods: {},
};
</script>
<style lang="scss" scoped>
.start-page {
  height: 100vh;
  .img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
  }
}
</style>