Authored by huangyi

新品活动,分享修改

... ... @@ -18,7 +18,7 @@ export default class guochaoHome extends PureComponent {
display: false,
url: ''
}
this.scrollTop = this.scrollTop.bind(this);
this.collect = this.collect.bind(this);
this.init();
let shareData={
title: '国潮崛起年,中西碰撞博出位!',
... ... @@ -155,7 +155,7 @@ export default class guochaoHome extends PureComponent {
} else {
this.setState({env: 'h5'})
}
if (envFlag) {
if (envFlag == 'miniprogram') {
if (wx.miniProgram.postMessage) {
wx.miniProgram.postMessage({
data: {
... ...
... ... @@ -83,7 +83,7 @@ export default class top40 extends PureComponent {
} else {
this.setState({env: 'h5'})
}
if (envFlag) {
if (envFlag == 'miniprogram') {
if (wx.miniProgram.postMessage) {
wx.miniProgram.postMessage({
data: {
... ...