| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <template>
- <view class="content">
- <view class="loadding" v-if="loadding">
- <image src="@/static/logo.jpg"></image>
- <text class="text">互联网医院</text>
- </view>
- </view>
- </template>
- <script>
- import {getDicts} from '@/api/index'
- export default {
- data() {
- return {
- loadding:true,
- };
- },
- methods: {
-
- getDicts:function(){
- this.loadding=false
- this.navigatHandler();
- },
- navigatHandler: function() {
- uni.reLaunch({
- url: '../home/index',
- animationType: 'pop-in',
- animationDuration: 100
- })
- },
-
- },
- onLoad() {
- this.getDicts()
- }
- };
-
- </script>
- .
- <style lang="scss">
- content {
- height: 100%;
- width: 100%;
- position: relative;
- padding-top: 0;
-
- }
- .loadding{
- background-color: #fff;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- z-index: 9999;
- image{
- border-radius: 50%;
- animation: load linear 1s infinite;
- width: 120rpx;
- height:120rpx;
- }
- .text{
- font-size: 28rpx;
- margin-top: 20rpx;
- }
- }
- </style>
|