路泰科技体检小程序UI设计新版本
1
wwl
2025-08-06 964dbbb27c892433563793eeec2aa321226860d0
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
<script>
  import config from './config'
  import store from '@/store'
  import { getToken } from '@/utils/auth'
 
  export default {
    onLaunch: function() {
      this.initApp()
    },
    methods: {
      // 初始化应用
      initApp() {
        // 初始化应用配置
        this.initConfig()
        // 检查用户登录状态
        //#ifdef H5
        // this.checkLogin()
        //#endif
      },
      initConfig() {
        this.globalData.config = config
      },
      checkLogin() {
        if (!getToken()) {
          this.$tab.reLaunch('/pages/login') 
        }
      }
    }
  }
</script>
 
<style lang="scss">
  @import '@/static/scss/index.scss';
    @import "@/uni_modules/uview-ui/index.scss";
        /* uni-app中的条件判断语句 */
    /* #ifdef APP-PLUS  || H5 */
    uni-swiper .uni-swiper-dot {
        width: 10rpx;
        height: 4rpx;
    }
    uni-swiper .uni-swiper-dot-active {
        width: 40rpx;
        border-radius: 6rpx;
    }
    /* #endif */
 
    /* #ifdef MP-WEIXIN */
    wx-swiper .wx-swiper-dot {
        width: 18rpx;
        height: 4rpx;
        border-radius: 1rpx;
        position: relative;
        top: 20rpx;
    }
 
    wx-swiper .wx-swiper-dot-active {
        width: 18rpx;
        height: 4rpx;
        border-radius: 1rpx;
        position: relative;
        top: 20rpx;
    }
    wx-swiper {
      height: 340rpx; /* 微信小程序使用 rpx */
    }
    /* #endif */
</style>