chore[litemall-vue]: 删除spinner
This commit is contained in:
@@ -1,45 +1,44 @@
|
||||
@import "./var";
|
||||
@import "mixin";
|
||||
|
||||
@import "./common";
|
||||
@import "./vant-theme";
|
||||
@import "./spinner";
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #000
|
||||
}
|
||||
|
||||
input:-webkit-autofill {
|
||||
-webkit-box-shadow: 0 0 0 1000px white inset;
|
||||
}
|
||||
|
||||
html {
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
body {
|
||||
overflow-x: hidden;
|
||||
max-width: 700px;
|
||||
margin: 0 auto;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.view-router {
|
||||
background-color: $bg-color;
|
||||
height: 100vh;
|
||||
overflow-y: auto;
|
||||
padding-bottom: 50px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.full-page {
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.scroll-wrap {
|
||||
overflow-y: scroll;
|
||||
@import "./var";
|
||||
@import "mixin";
|
||||
|
||||
@import "./common";
|
||||
@import "./vant-theme";
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #000
|
||||
}
|
||||
|
||||
input:-webkit-autofill {
|
||||
-webkit-box-shadow: 0 0 0 1000px white inset;
|
||||
}
|
||||
|
||||
html {
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
body {
|
||||
overflow-x: hidden;
|
||||
max-width: 700px;
|
||||
margin: 0 auto;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.view-router {
|
||||
background-color: $bg-color;
|
||||
height: 100vh;
|
||||
overflow-y: auto;
|
||||
padding-bottom: 50px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.full-page {
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.scroll-wrap {
|
||||
overflow-y: scroll;
|
||||
}
|
||||
@@ -1,53 +0,0 @@
|
||||
@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%);
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
import spinner from './spinner';
|
||||
|
||||
export default spinner;
|
||||
@@ -1,11 +0,0 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="lds-ball">
|
||||
<div></div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {};
|
||||
</script>
|
||||
@@ -1,23 +0,0 @@
|
||||
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));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user