Commit 424496d4 authored by Junling Bu's avatar Junling Bu
Browse files

chore[litemall-vue]: 删除spinner

parent 6a160487
@import "./var"; @import "./var";
@import "mixin"; @import "mixin";
@import "./common"; @import "./common";
@import "./vant-theme"; @import "./vant-theme";
@import "./spinner";
* {
* { box-sizing: border-box;
box-sizing: border-box; }
}
a {
a { color: #000
color: #000 }
}
input:-webkit-autofill {
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px white inset;
-webkit-box-shadow: 0 0 0 1000px white inset; }
}
html {
html { -webkit-overflow-scrolling: touch;
-webkit-overflow-scrolling: touch; }
}
body {
body { overflow-x: hidden;
overflow-x: hidden; max-width: 700px;
max-width: 700px; margin: 0 auto;
margin: 0 auto; font-size: 14px;
font-size: 14px; }
}
.view-router {
.view-router { background-color: $bg-color;
background-color: $bg-color; height: 100vh;
height: 100vh; overflow-y: auto;
overflow-y: auto; padding-bottom: 50px;
padding-bottom: 50px; box-sizing: border-box;
box-sizing: border-box; }
}
.full-page {
.full-page { height: 100vh;
height: 100vh; }
}
.scroll-wrap {
.scroll-wrap { overflow-y: scroll;
overflow-y: scroll;
} }
\ No newline at end of file
@keyframes lds-ball {
0%, 100% {
animation-timing-function: cubic-bezier(0.45, 0, 0.9, 0.55);
}
0% {
-webkit-transform: translate(0, 0);
transform: translate(0, 0);
}
50% {
-webkit-transform: translate(0, 108px);
transform: translate(0, 108px);
animation-timing-function: cubic-bezier(0, 0.45, 0.55, 0.9);
}
100% {
-webkit-transform: translate(0, 0);
transform: translate(0, 0);
}
}
@-webkit-keyframes lds-ball {
0%, 100% {
animation-timing-function: cubic-bezier(0.45, 0, 0.9, 0.55);
}
0% {
-webkit-transform: translate(0, 0);
transform: translate(0, 0);
}
50% {
-webkit-transform: translate(0, 108px);
transform: translate(0, 108px);
animation-timing-function: cubic-bezier(0, 0.45, 0.55, 0.9);
}
100% {
-webkit-transform: translate(0, 0);
transform: translate(0, 0);
}
}
.lds-ball {
position: relative;
}
.lds-ball div {
width: 52px;
height: 52px;
border-radius: 50%;
background: #e15b64;
-webkit-animation: lds-ball 1s linear infinite;
animation: lds-ball 1s linear infinite;
}
.lds-ball {
position: fixed;
left: 50%;
top: 30%;
transform: translateX(-50%);
}
\ No newline at end of file
import spinner from './spinner';
export default spinner;
<template>
<div>
<div class="lds-ball">
<div></div>
</div>
</div>
</template>
<script>
export default {};
</script>
import { SHOPINFO } from '@/api/shop';
export default {
methods: {
getShopInfo(...keys) {
return new Promise((resolve, reject) => {
const id = window.sessionStorage.getItem('id');
if (id === null) {
const shop_id = this.$util.getLocationParam('shop_id');
this.$reqGet(`${SHOPINFO}/${shop_id}`)
.then(res => {
const { data } = res.data;
this.$util.setSessionStorage(data);
resolve(data);
})
.catch(reject);
} else {
resolve(this.$util.getSessionStorage(...keys));
}
});
}
}
};
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment