|
@ -6,7 +6,7 @@ |
|
|
style="position: fixed;z-index: 98;width: 100%;background-color: #fff;padding: 10rpx 0;" |
|
|
style="position: fixed;z-index: 98;width: 100%;background-color: #fff;padding: 10rpx 0;" |
|
|
:style="{opacity : !headerClass? 0 : 1}"> |
|
|
:style="{opacity : !headerClass? 0 : 1}"> |
|
|
<gui-switch-navigation |
|
|
<gui-switch-navigation |
|
|
:items="[{id:1,name:'商品'},{id:2,name:'购买须知'},{id:4,name:'详情'},{id:5,name:'推荐'}]" |
|
|
|
|
|
|
|
|
:items="[{id:1,name:'商品'},{id:2,name:'购买须知'},{id:3,name:'评论'},{id:4,name:'详情'},{id:5,name:'推荐'}]" |
|
|
@change="navchange" :currentIndex="navIndex" textAlign="center" :isCenter="true" |
|
|
@change="navchange" :currentIndex="navIndex" textAlign="center" :isCenter="true" |
|
|
activeLineBg="linear-gradient(to right, #9E1A91, #4D0868)" activeDirection="center" :size="0" |
|
|
activeLineBg="linear-gradient(to right, #9E1A91, #4D0868)" activeDirection="center" :size="0" |
|
|
:margin="10" padding="30rpx" |
|
|
:margin="10" padding="30rpx" |
|
@ -121,7 +121,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view style="height: 20rpx;"></view> |
|
|
<view style="height: 20rpx;"></view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="mainitems"> |
|
|
|
|
|
|
|
|
<view class="mainitems" id="comment"> |
|
|
<view style="border-radius: 10rpx;background-color: #fff;"> |
|
|
<view style="border-radius: 10rpx;background-color: #fff;"> |
|
|
<Comment v-if="!isLoading" :goods-id="goodsId" :limit="2"/> |
|
|
<Comment v-if="!isLoading" :goods-id="goodsId" :limit="2"/> |
|
|
</view> |
|
|
</view> |
|
@ -394,10 +394,14 @@ export default { |
|
|
} |
|
|
} |
|
|
break; |
|
|
break; |
|
|
case 2 : { |
|
|
case 2 : { |
|
|
which = 'detail' |
|
|
|
|
|
|
|
|
which = 'comment' |
|
|
} |
|
|
} |
|
|
break; |
|
|
break; |
|
|
case 3 : { |
|
|
case 3 : { |
|
|
|
|
|
which = 'detail' |
|
|
|
|
|
} |
|
|
|
|
|
break; |
|
|
|
|
|
case 4 : { |
|
|
which = 'recommended' |
|
|
which = 'recommended' |
|
|
} |
|
|
} |
|
|
break; |
|
|
break; |
|
|