...
|
...
|
@@ -56,7 +56,7 @@ export default class ProductDetail extends Component { |
|
|
snapshootShareData: {},
|
|
|
skup: '',
|
|
|
storeId: -1,
|
|
|
isLogin: true,
|
|
|
isLogin: false,
|
|
|
productDec: {
|
|
|
color: {
|
|
|
text: '颜色',
|
...
|
...
|
@@ -158,8 +158,6 @@ export default class ProductDetail extends Component { |
|
|
this.setState({
|
|
|
isLogin
|
|
|
})
|
|
|
console.log(isLogin);
|
|
|
console.log(this.state.storeId);
|
|
|
}
|
|
|
|
|
|
isLoginCallBack(skup, storeId) {
|
...
|
...
|
@@ -527,10 +525,11 @@ export default class ProductDetail extends Component { |
|
|
let {productInfo, recommendList, goodsList, productDec, id, skup, isLogin, storeId} = this.state;
|
|
|
let imageList = goodsList.image_list || [];
|
|
|
let status = productInfo.status;
|
|
|
let isShowLogin = !isLogin && storeId !== -1;
|
|
|
|
|
|
return (
|
|
|
<View>
|
|
|
{ !(!isLogin && storeId !== -1) && (<View className="product-page">
|
|
|
{ !isShowLogin && (<View className="product-page">
|
|
|
<View className="swiperNum">{this.swiperNum}</View>
|
|
|
<Swiper className='product-swiper' autoplay onChange={this.onChangeSwiper}>
|
|
|
{
|
...
|
...
|
@@ -647,7 +646,7 @@ export default class ProductDetail extends Component { |
|
|
</View>)
|
|
|
}
|
|
|
{
|
|
|
!isLogin && storeId !== -1 && (<login-bg catchtouchmove='true' onReportStoreId={this.reportStoreId.bind(this, storeId)} onLoginSuccess={this.loginSuccess}></login-bg>)
|
|
|
isShowLogin && (<login-bg catchtouchmove='true' onReportStoreId={this.reportStoreId.bind(this, storeId)} onLoginSuccess={this.loginSuccess}></login-bg>)
|
|
|
}
|
|
|
</View>
|
|
|
)
|
...
|
...
|
|