@@ -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 () {
@@ -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%;
@@ -1,5 +1,4 @@
;(function(){
- console.log(243)
if(window.innerWidth < 768){
return;
@@ -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({