product-image.vue
414 Bytes
<template>
<div class="product-image">
<span>{{skn}}</span>
<img :src="src" alt="" width="150px" height="150px">
</div>
</template>
<style scoped>
.product-image {
width: 150px;
text-align: center;
}
</style>
<script>
export default {
props: ["src",'skn'],
methods: {
handle() {
this.src = this.src.replace('/w/78/h/78', '/w/150/h150')
return this.src
}
}
};
</script>