@@ -2,9 +2,10 @@ import { createApp } from 'vue';
import App from './App';
import router from './router';
import store from './store';
-import '@/style/index.scss';
+
import Vant from "vant";
import "vant/lib/index.css";
+import '@/style/index.scss';
import "babel-polyfill"
import components from "./components";
let app = createApp(App)
@@ -19,9 +19,6 @@ export default createStore({
this.commit('SET_USERINFO',res.data.data)
})
-
}
},
@@ -5,6 +5,7 @@ export interface State {
endTime: string,
token: string,
userInfo: {
+ profitPrice:number,
city: string
country: string
headImage: string
@@ -23,6 +24,7 @@ export const state: State = {
endTime: "",
token: "",
+ profitPrice:0,
city: "",
country: "",
headImage: defaultHeadimgurl,
@@ -1,3 +1,5 @@
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
@@ -7,6 +9,9 @@
width: 100%;
height: 100%;
+:root {
+ --van-button-primary-background-color: red;
+}
body{
background-color: #F2F3F5;
@@ -1,6 +1,10 @@
* {
box-sizing: border-box;
+ --van-toast-default-width:270px;
html, body {
@@ -281,6 +281,7 @@ export default defineComponent({
color: #DBA05C;
font-weight: bold;
justify-content: space-between;
+ flex-wrap: wrap;
.now {
width: 150px;