|
@@ -23,8 +23,6 @@ const stock = ref(0)
|
|
|
const category = ref('')
|
|
const category = ref('')
|
|
|
const price = ref(0)
|
|
const price = ref(0)
|
|
|
|
|
|
|
|
-const photoUrl = ref(0)
|
|
|
|
|
-
|
|
|
|
|
const amount = ref(1)
|
|
const amount = ref(1)
|
|
|
const totalPrice = ref(price.value)
|
|
const totalPrice = ref(price.value)
|
|
|
const discountPrice = ref(0)
|
|
const discountPrice = ref(0)
|
|
@@ -73,7 +71,6 @@ function getProductDetail() {
|
|
|
category.value = productVO.value.category
|
|
category.value = productVO.value.category
|
|
|
price.value = productVO.value.price
|
|
price.value = productVO.value.price
|
|
|
|
|
|
|
|
- photoUrl.value = photoUrlList.value[0]
|
|
|
|
|
totalPrice.value = price.value
|
|
totalPrice.value = price.value
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
@@ -261,7 +258,11 @@ function toBackPage() {
|
|
|
</el-icon>
|
|
</el-icon>
|
|
|
</el-button>
|
|
</el-button>
|
|
|
|
|
|
|
|
- <el-image class="logo-image" :src="photoUrl"/>
|
|
|
|
|
|
|
+ <el-carousel trigger="click" arrow="always" indicator-position="outside">
|
|
|
|
|
+ <el-carousel-item v-for="item in photoUrlList" :key="item">
|
|
|
|
|
+ <el-image class="logo-image" :src="item" />
|
|
|
|
|
+ </el-carousel-item>
|
|
|
|
|
+ </el-carousel>
|
|
|
|
|
|
|
|
<span class="product-title">{{ name }}</span>
|
|
<span class="product-title">{{ name }}</span>
|
|
|
|
|
|