lifanagju_citu преди 5 месеца
родител
ревизия
64328bc026
променени са 2 файла, в които са добавени 19 реда и са изтрити 0 реда
  1. 2 0
      src/views/mall/components/details.vue
  2. 17 0
      src/views/mall/components/detailsComponents/comment.vue

+ 2 - 0
src/views/mall/components/details.vue

@@ -60,6 +60,7 @@
           </v-tabs>
         </div>
         <describe v-if="describeTab === 0 && state.goodsInfo?.description" :content="state.goodsInfo.description"></describe>
+        <comment v-if="describeTab === 0 && state.goodsId" class="detail-comment-selector" :goodsId="state.goodsId" />
       </div>
     </v-card>
   </div>
@@ -70,6 +71,7 @@ defineOptions({name: 'goods-details'})
 import { getProductDetail } from '@/api/mall'
 import selectSku from './detailsComponents/s-select-sku.vue'
 import describe from './detailsComponents/describe.vue'
+import comment from './detailsComponents/comment.vue'
 import { ref, reactive } from 'vue'
 import { useRouter } from 'vue-router'
 import Snackbar from '@/plugins/snackbar'

+ 17 - 0
src/views/mall/components/detailsComponents/comment.vue

@@ -0,0 +1,17 @@
+<!--  -->
+<template>
+  <div>商品评价</div>
+</template>
+
+<script setup>
+defineOptions({name: 'goods-details-comment'})
+const props = defineProps({
+  goodsId: {
+    type: String,
+    default: '',
+  },
+});
+console.log('content:', props.goodsId)
+</script>
+<style lang="scss" scoped>
+</style>