diff --git a/pages/homemaking/homemaking.vue b/pages/homemaking/homemaking.vue index 568a752..11ba49a 100644 --- a/pages/homemaking/homemaking.vue +++ b/pages/homemaking/homemaking.vue @@ -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); } diff --git a/pages/mall/mall.vue b/pages/mall/mall.vue index cfd151c..a96ae5c 100644 --- a/pages/mall/mall.vue +++ b/pages/mall/mall.vue @@ -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); }