JXDS18FUJT пре 2 година
родитељ
комит
d0f223b30b
6 измењених фајлова са 14 додато и 4 уклоњено
  1. 2 1
      src/main.ts
  2. 0 3
      src/store/index.ts
  3. 2 0
      src/store/state.ts
  4. 5 0
      src/style/main.scss
  5. 4 0
      src/style/reset.scss
  6. 1 0
      src/views/home/index.vue

+ 2 - 1
src/main.ts

@@ -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)

+ 0 - 3
src/store/index.ts

@@ -19,9 +19,6 @@ export default createStore({
         this.commit('SET_USERINFO',res.data.data)
       })
      
-
-
-
     }
 
   },

+ 2 - 0
src/store/state.ts

@@ -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: "",
   userInfo: {
+    profitPrice:0,
     city: "",
     country: "",
     headImage: defaultHeadimgurl,

+ 5 - 0
src/style/main.scss

@@ -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;
 }

+ 4 - 0
src/style/reset.scss

@@ -1,6 +1,10 @@
 * {
   box-sizing: border-box;
 }
+:root {
+  --van-toast-default-width:270px;
+  --van-button-primary-background-color: red;
+}
 
 html, body {
   width: 100%;

+ 1 - 0
src/views/home/index.vue

@@ -281,6 +281,7 @@ export default defineComponent({
         color: #DBA05C;
         font-weight: bold;
         justify-content: space-between;
+        flex-wrap: wrap;
 
         .now {
             width: 150px;