|
|
<style src="./css/detail.css"></style>
|
|
|
<template>
|
|
|
<show-box :is-first="true">
|
|
|
<div>
|
|
|
<image-carousel></image-carousel>
|
|
|
</div>
|
|
|
|
|
|
<div class="title-box">
|
|
|
<h1>{{title}}</h1>
|
|
|
<i class="price">¥{{price}}</i>
|
|
|
</div>
|
|
|
</show-box>
|
|
|
|
|
|
<show-box>
|
|
|
<div class="brand">
|
|
|
<img src="" width="55" height="34"/>
|
|
|
|
|
|
<h2>Brand Name</h2>
|
|
|
<a href="#">
|
|
|
进入店铺
|
|
|
<span class="icon icon-right"></span>
|
|
|
</a>
|
|
|
</div>
|
|
|
</show-box>
|
|
|
|
|
|
<show-box>
|
|
|
<h2>商品信息</h2>
|
|
|
<i>DESCRIPTION</i>
|
|
|
<hr>
|
|
|
</show-box>
|
|
|
|
|
|
|
|
|
<show-box>
|
|
|
<h2>尺码信息</h2>
|
|
|
<i>SIZE INFO</i>
|
|
|
<hr>
|
|
|
<i class="info">提示:左滑查看完整表格信息</i>
|
|
|
</show-box>
|
|
|
|
|
|
<show-box>
|
|
|
<h2>测量方式</h2>
|
|
|
<i>MEASUREMENT METHOD</i>
|
|
|
<hr>
|
|
|
</show-box>
|
|
|
|
|
|
<show-box>
|
|
|
<h2>模特试穿</h2>
|
|
|
<i>REFERENCE</i>
|
|
|
<hr>
|
|
|
<div class="horizon-wrapper">
|
|
|
<table class="table">
|
|
|
<thead>
|
|
|
<th>模特</th>
|
|
|
<th>身高</th>
|
|
|
<th>体重</th>
|
|
|
<th>三围</th>
|
|
|
<th>三围</th>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<td>Oliver</td>
|
|
|
<td>175</td>
|
|
|
<td>51</td>
|
|
|
<td>78/70/87</td>
|
|
|
<td>78/70/87</td>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
<i class="info">提示:左滑查看完整表格信息</i>
|
|
|
</show-box>
|
|
|
|
|
|
<show-box>
|
|
|
<h2>商品材质</h2>
|
|
|
<i>MATERIALS</i>
|
|
|
<hr>
|
|
|
<div>
|
|
|
<div class="image-box">
|
|
|
<img src="#" width="86" height="35"/>
|
|
|
</div>
|
|
|
<div class="text-box">
|
|
|
<div>涤纶</div>
|
|
|
<div>Terylene</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<p>
|
|
|
用各种洗涤剂,可手洗机洗,但不宜氯漂,宜阴干,避免曝晒,以免深色衣物褪色,在日光下晾晒时,将里面朝外。浸泡时间不能太长,避免褪色。
|
|
|
</p>
|
|
|
</show-box>
|
|
|
|
|
|
<show-box :is-last="true">
|
|
|
<h2>商品详情</h2>
|
|
|
<i>DETAILS</i>
|
|
|
</show-box>
|
|
|
|
|
|
<div class="control-box">
|
|
|
<button class="button control-button" style="flex: 1"><span class="icon icon-bag"></span></button>
|
|
|
<button class="button control-button" style="flex: 1"><span class="icon icon-love"></span></button>
|
|
|
<button class="button button-solid" style="flex: 2" v-on:click="showAddToCart()">加入购物袋</button>
|
|
|
</div>
|
|
|
|
|
|
<feature-selector :is-visible="showFeatureSelector"></feature-selector>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
module.exports = {
|
|
|
data() {
|
|
|
return {
|
|
|
title: 'Supereme经典中长款Supereme经典中长款Supereme经典中长款',
|
|
|
price: '1289',
|
|
|
showFeatureSelector: false
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
|
'image-carousel': require('./image-carousel.vue'),
|
|
|
'feature-selector': require('component/product/feature-selector.vue'),
|
|
|
'show-box': require('./show-box.vue')
|
|
|
},
|
|
|
methods: {
|
|
|
showAddToCart: function() {
|
|
|
this.showFeatureSelector = true;
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
const self = this;
|
|
|
|
|
|
this.$on('featureselector.close', function() {
|
|
|
self.showFeatureSelector = false;
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
</script> |
...
|
...
|
|