修改个人中心订单数量显示的问题;去除多余代码

This commit is contained in:
Gao xiaosong
2020-12-08 00:26:16 +08:00
parent 10f94e6178
commit 0aaff92bc2

View File

@ -167,7 +167,7 @@
props: {}, props: {},
data: function () { data: function () {
return { return {
MyMenus: [], MyMenus: [],
switchActive: false, switchActive: false,
isWeixin: false isWeixin: false
}; };
@ -298,13 +298,6 @@
changeswitch: function (data) { changeswitch: function (data) {
this.switchActive = data; this.switchActive = data;
}, },
User: function () {
let that = this;
getUserInfo().then(res => {
that.user = res.data;
that.orderStatusNum = res.data.orderStatusNum;
});
},
MenuUser: function () { MenuUser: function () {
let that = this; let that = this;
getMenuUser() getMenuUser()