lifanagju_citu 5 mesiacov pred
rodič
commit
eca37dc33b
1 zmenil súbory, kde vykonal 11 pridanie a 2 odobranie
  1. 11 2
      src/views/mall/components/details.vue

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

@@ -47,12 +47,20 @@
     </v-card>
     <!-- 详情描述 detail-content-card -->
     <v-card class="carousel border-radius-8 white-bgc pa-5 mt-3" style="width: 100%;">
-      <div class="resume-header">
+      <!-- <div class="resume-header">
         <div class="resume-title">
           详情
         </div>
+      </div> -->
+      <div>
+        <div class="mb-3">
+          <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-tabs>
+        </div>
+        <describe v-if="describeTab === 0 && state.goodsInfo?.description" :content="state.goodsInfo.description"></describe>
       </div>
-      <describe v-if="state.goodsInfo?.description" class="detail-content-selector" :content="state.goodsInfo.description"></describe>
     </v-card>
   </div>
 </template>
@@ -69,6 +77,7 @@ import Snackbar from '@/plugins/snackbar'
 const router = useRouter()
 const { id } = router.currentRoute.value.params
 
+const describeTab = ref(0)
 const selectedSkuPicUrl = ref('')
 const selectedSkuPrice = ref('')
 const selectedSkuMarketPrice = ref('')