fix
This commit is contained in:
@@ -11,6 +11,10 @@ import img from '@/assets/images/brand-null.png'
|
||||
//])
|
||||
let data = reactive({
|
||||
})
|
||||
const cover = ref('')
|
||||
const price = ref('')
|
||||
const shopName = ref('')
|
||||
const commodityName = ref('')
|
||||
const router = useRouter()
|
||||
const isShoppingShow = ref(false)
|
||||
const shoppingClose = () => {
|
||||
@@ -25,7 +29,10 @@ const goShopping = () => {
|
||||
onMounted(()=>{
|
||||
myEvent.add('addShopping', (item) => {
|
||||
isShoppingShow.value = true
|
||||
console.log(item)
|
||||
cover.value = item.cover || ''
|
||||
price.value = item.price || ''
|
||||
shopName.value = item.shopName || ''
|
||||
commodityName.value = item.title || ''
|
||||
})
|
||||
})
|
||||
onUnmounted(()=>{
|
||||
@@ -52,18 +59,18 @@ const {} = toRefs(data);
|
||||
<img :src="img" alt="">
|
||||
</div>
|
||||
<div class="img-box">
|
||||
<img :src="img" alt="">
|
||||
<img :src="cover" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="inf-box">
|
||||
<div class="name">North Outfit Set</div>
|
||||
<div class="name">{{ commodityName }}</div>
|
||||
<div class="shopping-name">
|
||||
<div class="icon">
|
||||
<SvgIcon name="shop" size="24" />
|
||||
</div>
|
||||
Roaming Clouds
|
||||
{{ shopName }}
|
||||
</div>
|
||||
<div class="price">$15 <span class="currency">HKD</span></div>
|
||||
<div class="price">${{ price }} <span class="currency">HKD</span></div>
|
||||
</div>
|
||||
<div class="statement">
|
||||
<div class="icon">
|
||||
|
||||
Reference in New Issue
Block a user