From 3372f93a76ae5c5b37a496015dfdeb3ff58214bd Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Tue, 22 Jun 2021 21:59:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=95=86=E5=9F=8E=E9=A6=96?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/homemaking/homemaking.vue | 12 +----------- pages/mall/mall.vue | 12 +----------- 2 files changed, 2 insertions(+), 22 deletions(-) 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); }