|
@@ -158,7 +158,7 @@
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<!-- 评价 -->
|
|
<!-- 评价 -->
|
|
- <detail-comment-card class="detail-comment-selector" :goodsId="state.goodsId" />
|
|
|
|
|
|
+ <!-- <detail-comment-card class="detail-comment-selector" :goodsId="state.goodsId" /> -->
|
|
<!-- 详情 -->
|
|
<!-- 详情 -->
|
|
<detail-content-card
|
|
<detail-content-card
|
|
class="detail-content-selector"
|
|
class="detail-content-selector"
|
|
@@ -176,7 +176,7 @@
|
|
<view class="buy-box ss-flex ss-col-center ss-p-r-20" v-if="state.goodsInfo.stock > 0">
|
|
<view class="buy-box ss-flex ss-col-center ss-p-r-20" v-if="state.goodsInfo.stock > 0">
|
|
<button
|
|
<button
|
|
class="ss-reset-button add-btn ui-Shadow-Main"
|
|
class="ss-reset-button add-btn ui-Shadow-Main"
|
|
- @tap="state.showSelectSku = true"
|
|
|
|
|
|
+ @tap="handleJoinShoppingCart"
|
|
>
|
|
>
|
|
加入购物车
|
|
加入购物车
|
|
</button>
|
|
</button>
|
|
@@ -224,7 +224,7 @@
|
|
import detailCellSku from './components/detail/detail-cell-sku.vue';
|
|
import detailCellSku from './components/detail/detail-cell-sku.vue';
|
|
import detailTabbar from './components/detail/detail-tabbar.vue';
|
|
import detailTabbar from './components/detail/detail-tabbar.vue';
|
|
import detailSkeleton from './components/detail/detail-skeleton.vue';
|
|
import detailSkeleton from './components/detail/detail-skeleton.vue';
|
|
- import detailCommentCard from './components/detail/detail-comment-card.vue';
|
|
|
|
|
|
+ // import detailCommentCard from './components/detail/detail-comment-card.vue';
|
|
import detailContentCard from './components/detail/detail-content-card.vue';
|
|
import detailContentCard from './components/detail/detail-content-card.vue';
|
|
import detailActivityTip from './components/detail/detail-activity-tip.vue';
|
|
import detailActivityTip from './components/detail/detail-activity-tip.vue';
|
|
import { isEmpty } from 'lodash-es';
|
|
import { isEmpty } from 'lodash-es';
|
|
@@ -262,6 +262,16 @@
|
|
state.selectedSku = e;
|
|
state.selectedSku = e;
|
|
state.settlementSku = e;
|
|
state.settlementSku = e;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ // 点击加入购物车,虚拟商品不能加入购物车
|
|
|
|
+ function handleJoinShoppingCart () {
|
|
|
|
+ // type: 0实体商品, 99文件
|
|
|
|
+ if (state.goodsInfo.type !== '0') {
|
|
|
|
+ uni.showToast({ title: '虚拟商品不能加入购物车', icon: 'none', duration: 2000 })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ state.showSelectSku = true
|
|
|
|
+ }
|
|
|
|
|
|
// 添加购物车
|
|
// 添加购物车
|
|
function onAddCart(e) {
|
|
function onAddCart(e) {
|