Authored by ityuany

.

... ... @@ -21,17 +21,13 @@ export default {
data() {
return {
toHomeHref: '//m.yohobuy.com?openby:yohobuy= {"action":"go.guangchannel","params":{"index":"1"}}',
hasBackToHome: 1
hasBackToHome: 0,
isShow: false
};
},
computed: {
isShow() {
return this.hasBackToHome === 1 && this.$yoho.isApp;
}
},
mounted() {
// 地址栏携带参数过来,并且当前页面不在app中
this.hasBackToHome = _.chain(window.location.href)
const hasBackToHome = _.chain(window.location.href)
.thru(n => n.split('?'))
.get('[1]', '')
.thru(qs.parse)
... ... @@ -39,6 +35,8 @@ export default {
.thru(JSON.parse)
.thru(n => n === 1 ? 1 : 0)
.value();
this.isShow = hasBackToHome === 1 && this.$yoho.isApp;
}
};
</script>
... ...
{
"name": "yoho-community-web",
"version": "6.9.8-beta13",
"version": "6.9.8-beta14",
"private": true,
"description": "A New Yohobuy Project With Express",
"repository": {
... ...