Showing
1 changed file
with
4 additions
and
5 deletions
@@ -56,7 +56,7 @@ export default class ProductDetail extends Component { | @@ -56,7 +56,7 @@ export default class ProductDetail extends Component { | ||
56 | snapshootShareData: {}, | 56 | snapshootShareData: {}, |
57 | skup: '', | 57 | skup: '', |
58 | storeId: -1, | 58 | storeId: -1, |
59 | - isLogin: true, | 59 | + isLogin: false, |
60 | productDec: { | 60 | productDec: { |
61 | color: { | 61 | color: { |
62 | text: '颜色', | 62 | text: '颜色', |
@@ -158,8 +158,6 @@ export default class ProductDetail extends Component { | @@ -158,8 +158,6 @@ export default class ProductDetail extends Component { | ||
158 | this.setState({ | 158 | this.setState({ |
159 | isLogin | 159 | isLogin |
160 | }) | 160 | }) |
161 | - console.log(isLogin); | ||
162 | - console.log(this.state.storeId); | ||
163 | } | 161 | } |
164 | 162 | ||
165 | isLoginCallBack(skup, storeId) { | 163 | isLoginCallBack(skup, storeId) { |
@@ -527,10 +525,11 @@ export default class ProductDetail extends Component { | @@ -527,10 +525,11 @@ export default class ProductDetail extends Component { | ||
527 | let {productInfo, recommendList, goodsList, productDec, id, skup, isLogin, storeId} = this.state; | 525 | let {productInfo, recommendList, goodsList, productDec, id, skup, isLogin, storeId} = this.state; |
528 | let imageList = goodsList.image_list || []; | 526 | let imageList = goodsList.image_list || []; |
529 | let status = productInfo.status; | 527 | let status = productInfo.status; |
528 | + let isShowLogin = !isLogin && storeId !== -1; | ||
530 | 529 | ||
531 | return ( | 530 | return ( |
532 | <View> | 531 | <View> |
533 | - { !(!isLogin && storeId !== -1) && (<View className="product-page"> | 532 | + { !isShowLogin && (<View className="product-page"> |
534 | <View className="swiperNum">{this.swiperNum}</View> | 533 | <View className="swiperNum">{this.swiperNum}</View> |
535 | <Swiper className='product-swiper' autoplay onChange={this.onChangeSwiper}> | 534 | <Swiper className='product-swiper' autoplay onChange={this.onChangeSwiper}> |
536 | { | 535 | { |
@@ -647,7 +646,7 @@ export default class ProductDetail extends Component { | @@ -647,7 +646,7 @@ export default class ProductDetail extends Component { | ||
647 | </View>) | 646 | </View>) |
648 | } | 647 | } |
649 | { | 648 | { |
650 | - !isLogin && storeId !== -1 && (<login-bg catchtouchmove='true' onReportStoreId={this.reportStoreId.bind(this, storeId)} onLoginSuccess={this.loginSuccess}></login-bg>) | 649 | + isShowLogin && (<login-bg catchtouchmove='true' onReportStoreId={this.reportStoreId.bind(this, storeId)} onLoginSuccess={this.loginSuccess}></login-bg>) |
651 | } | 650 | } |
652 | </View> | 651 | </View> |
653 | ) | 652 | ) |
-
Please register or login to post a comment