ann0707
2018-08-16 c9bc8ec61cff4076132f6396d99d383a2cdf5a03
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
<template>
    <div id="app" :style="appScrollStyle">
        <!--<transition @after-enter="$vux.bus && $vux.bus.$emit('vux:after-view-enter')"
        :name="'vux-pop-' + (direction === 'in' ? 'in' : 'none')">-->
        <transition>
            <keep-alive>
                <router-view class="router-view"></router-view>
            </keep-alive>
        </transition>
        <loading v-model="isLoading" text=" " loading=false></loading>
    </div>
</template>
<script>
    import {Loading} from 'vux';
    import {mapState} from 'vuex';
 
    export default {
        name: 'app',
        data() {
            return {}
        },
        components: {
            Loading
        },
        computed: {
            ...mapState({
                isLoading: state => state.isLoading,    // loading  状态
                direction: state => state.direction,
                appScrollStyle: state => state.appScrollStyle
            })
        }
    };
</script>
 
<style lang="less">
    @import '~vux/src/styles/1px.less';
    @import '~vux/src/styles/reset.less';
    @import '~vux/src/styles/close.less';
    /* 关闭样式 */
    @import './assets/iconfont/iconfont.css';
    /* 图标字体 */
    @import './style/app.less'; /* 全局样式 */
    #app {
        height: 100%;
        background: @color-white;
        .vux-header .vux-header-left .left-arrow:before {
            border-color: @color-white;
        }
    }
 
    .weui-dialog__btn_primary {
        color: @color-primary !important;
    }
 
    .vux-pop-in-enter-active,
    .vux-pop-in-leave-active {
        will-change: transform;
        transition: all 500ms;
        backface-visibility: hidden;
        perspective: 1000;
    }
 
    .vux-pop-in-enter {
        opacity: 0;
        transform: translate3d(-100%, 0, 0);
    }
 
    .vux-pop-out-in-active {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }
 
    .iconfont {
        font-size: 16px;
    }
 
    .icon {
        width: 30px;
        height: 30px;
        fill: currentColor;
        overflow: hidden;
    }
 
    .v-transfer-dom {
        .vux-popup-show {
            .vux-popup-header-right {
                color: @color-primary;
            }
        }
    }
 
    /*iphoneX的input样式修改*/
 
    @media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
        //如果以后出现375*812,非ios机型,可以加上下面语句
        .weui-tabbar {
            padding-bottom: 34px !important;
        }
    }
</style>