var vm = new Vue({ el: '#app', data: function () { return { isLoading: false, userInfo: { "loginGuid": '', "loginAccount": '', }, modeInfo: [], active: 0, tabActive:2, } }, mounted() { var that = this; this.userInfo = { loginGuid: this.GetLoginInfor().loginGuid, loginAccount: this.GetLoginInfor().loginAccount, }; this.tabActive = this.Request("tabIdx")*1; that.getInfo(); }, methods: { getInfo() { var that = this; that.isLoading = true; that.AxiosHttp("post", 'login/getUserMenu', { name: that.userInfo.loginAccount, }, false) .then(function (res) { var json = res; if (json.status == 0) { that.modeInfo = json.data.tbBillList; } else { that.$toast.fail(json.message); } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("网络错误,请重试!"); console.log(error); }); }, } })