优化商城首页

This commit is contained in:
wuxw 2021-06-22 21:59:15 +08:00
parent 556b9c9dd3
commit 3372f93a76
2 changed files with 2 additions and 22 deletions

View File

@ -33,21 +33,11 @@
_that.communityId = _communityInfo.communityId;
})
.then(function() {
_that._getHcCode(_url);
_that.url = conf.mallUrl+"#/pages/homemaking/index?mallFrom=HC&hcCommunityId="+_that.communityId;
})
},
methods: {
_getHcCode: function(_url) {
let _that =this;
if (_url) {
this.url = conf.mallUrl + _url;
} else {
getHcCode().then(_data => {
_that.url = conf.mallUrl+"#/pages/homemaking/index?mallFrom=HC&hcCommunityId="+_that.communityId+"&hcCode="+_data.hcCode;
});
}
},
onReciveMessage: function(event) {
reciveMessage(event);
}

View File

@ -33,21 +33,11 @@
_that.communityId = _communityInfo.communityId;
})
.then(function() {
_that._getHcCode(_url);
_that.url = conf.mallUrlIndexPage +"&hcCommunityId="+_that.communityId;
})
},
methods: {
_getHcCode: function(_url) {
let _that =this;
if (_url) {
this.url = conf.mallUrl + _url;
} else {
getHcCode().then(_data => {
_that.url = conf.mallUrlIndexPage +"&hcCommunityId="+_that.communityId+"&hcCode="+_data.hcCode;
});
}
},
onReciveMessage: function(event) {
reciveMessage(event);
}