谢杰标 hace 2 años
padre
commit
d9f116785f
Se han modificado 4 ficheros con 5 adiciones y 11 borrados
  1. 2 5
      App.vue
  2. 3 3
      pages/bill/index.vue
  3. 0 1
      static/adapt-pc/pc.js
  4. 0 2
      store/index.js

+ 2 - 5
App.vue

@@ -1,11 +1,8 @@
 <script>
 export default {
   onLaunch: function () {
-    if (
-      this.$method.isLogin() &&
-      !this.$route.path.includes("/pages/bill/index")
-    ) {
-      !this.$store.state.userInfo && this.$store.dispatch("getUserInfo");
+    if (this.$method.isLogin()) {
+      this.$store.dispatch("getUserInfo");
     }
   },
   onShow: function () {

+ 3 - 3
pages/bill/index.vue

@@ -191,12 +191,12 @@ export default {
   }
   .bill-head {
     position: absolute;
-    left: 20rpx;
+    left: 30rpx;
     top: 20rpx;
     z-index: 100;
     image {
-      width: 80rpx;
-      height: 80rpx;
+      width: 60rpx;
+      height: 60rpx;
       border-radius: 50%;
     }
   }

+ 0 - 1
static/adapt-pc/pc.js

@@ -1,5 +1,4 @@
 ;(function(){
-	console.log(243)
 	if(window.innerWidth < 768){
 		return;
 	}

+ 0 - 2
store/index.js

@@ -1,7 +1,5 @@
 import Vue from "vue";
 import Vuex from "vuex";
-// import api from "@/common/api.js";
-import method from "@/common/tool";
 Vue.use(Vuex);
 import { getInfo } from "@/utils/login";
 const store = new Vuex.Store({