mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-24 05:46:04 +08:00
优化商城首页
This commit is contained in:
parent
556b9c9dd3
commit
3372f93a76
@ -33,21 +33,11 @@
|
|||||||
_that.communityId = _communityInfo.communityId;
|
_that.communityId = _communityInfo.communityId;
|
||||||
})
|
})
|
||||||
.then(function() {
|
.then(function() {
|
||||||
_that._getHcCode(_url);
|
_that.url = conf.mallUrl+"#/pages/homemaking/index?mallFrom=HC&hcCommunityId="+_that.communityId;
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
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) {
|
onReciveMessage: function(event) {
|
||||||
reciveMessage(event);
|
reciveMessage(event);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,21 +33,11 @@
|
|||||||
_that.communityId = _communityInfo.communityId;
|
_that.communityId = _communityInfo.communityId;
|
||||||
})
|
})
|
||||||
.then(function() {
|
.then(function() {
|
||||||
_that._getHcCode(_url);
|
_that.url = conf.mallUrlIndexPage +"&hcCommunityId="+_that.communityId;
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
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) {
|
onReciveMessage: function(event) {
|
||||||
reciveMessage(event);
|
reciveMessage(event);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user