|
@@ -59,10 +59,12 @@
|
|
|
<v-tabs v-model="describeTab" align-tabs="start" color="primary" bg-color="#f7f8fa" @update:model-value="null">
|
|
|
<v-tab :value="0">商品介绍</v-tab>
|
|
|
<v-tab :value="1">商品评价</v-tab>
|
|
|
+ <v-tab :value="2" v-if="(id-0)=== 648">房券抽奖活动</v-tab>
|
|
|
</v-tabs>
|
|
|
</div>
|
|
|
<describe v-if="describeTab === 0 && state.goodsInfo?.description" :content="state.goodsInfo.description"></describe>
|
|
|
- <comment v-if="describeTab === 1 && state.goodsId" class="detail-comment-selector" :goodsId="state.goodsId" />
|
|
|
+ <commentCard v-if="describeTab === 1 && state.goodsId" class="detail-comment-selector" :goodsId="state.goodsId" />
|
|
|
+ <prizeDrawContent v-if="describeTab === 2" />
|
|
|
</div>
|
|
|
</v-card>
|
|
|
</div>
|
|
@@ -84,7 +86,8 @@ import { getProductDetail } from '@/api/mall/product'
|
|
|
import { addCart } from '@/api/mall/cart'
|
|
|
import selectSku from './details/s-select-sku.vue'
|
|
|
import describe from './details/describe.vue'
|
|
|
-import comment from './details/detail-comment-card.vue'
|
|
|
+import commentCard from './details/detail-comment-card.vue'
|
|
|
+import prizeDrawContent from './details/prizeDrawContent.vue'
|
|
|
import confirm from './details/order/confirm.vue'
|
|
|
import { ref, reactive } from 'vue'
|
|
|
import { useRouter } from 'vue-router'
|