...
|
...
|
@@ -29,28 +29,27 @@ |
|
|
<p class="price">¥{{info.price}}</p>
|
|
|
<p class="size">{{info.sizeName}}</p>
|
|
|
</div>
|
|
|
<p class="name">{{info.describeInfo}}</p>
|
|
|
<p class="name">{{info.productName}} {{info.colorName}} {{info.describeInfo}}</p>
|
|
|
</div>
|
|
|
<div class="other-info">
|
|
|
<p>男款 Jordan brand</p>
|
|
|
<p>状况:氧化泛黄</p>
|
|
|
<p>{{info.gender}} {{info.brandName}}</p>
|
|
|
<p>状况:{{ info.shoeQualityDesc }}</p>
|
|
|
<p>鞋盒:{{ info.shoeBoxDesc }}</p>
|
|
|
<p>售出时间:{{ info.soldTime }}</p>
|
|
|
<p>{{ info.shoeQualityDesc }}</p>
|
|
|
<p>{{ info.describeInfo }}</p>
|
|
|
</div>
|
|
|
<div class="extra-card">
|
|
|
<img-size class='image' src="//upyun.h800.com.cn/goods/1522828276980.png!/sq/1000" :width="375" :height="375" />
|
|
|
<div class="middle">
|
|
|
<p class="name ellipsis">Air Jordan 1 Rebel 20 Chicago Air Jordan 1 Rebel 20 Chicago</p>
|
|
|
<p class="number ellipsis">货号 8764212-001</p>
|
|
|
<div class="extra-card" @click="$router.push({name: 'ProductDetail', params: { productId: info.productId } })">
|
|
|
<img-size class='image' :src="info.image" :width="70" :height="70" />
|
|
|
<div class="middle" @click="'productId'">
|
|
|
<p class="name ellipsis">{{ info.productName }}</p>
|
|
|
<p class="number ellipsis">货号 {{ info.productCode }}</p>
|
|
|
</div>
|
|
|
<span class="iconfont iconright"></span>
|
|
|
</div>
|
|
|
<div class="fixed-footer">
|
|
|
<cube-button class="buy active" @click="buy">购买 <span class="price">¥1209.00</span></cube-button>
|
|
|
</div>
|
|
|
</LayoutScroll>
|
|
|
<div class="fixed-footer">
|
|
|
<cube-button class="buy active" @click="buy">购买 <span class="price">¥1209.00</span></cube-button>
|
|
|
</div>
|
|
|
|
|
|
<Filtrate ref="filtrate" :yasParams="{P_NAME: 'XY_UFOSearchList', TYPE_ID: 1}"></Filtrate>
|
|
|
</LayoutApp>
|
|
|
</template>
|
...
|
...
|
@@ -60,35 +59,35 @@ import { Button, Slide } from 'cube-ui'; |
|
|
import { mapState } from 'vuex'
|
|
|
|
|
|
import ImgSize from '@/components/img-size';
|
|
|
import Filtrate from './filtrate';
|
|
|
import Filtrate from './components/filter-list';
|
|
|
|
|
|
|
|
|
const info = {
|
|
|
"brandName": "NIKE",
|
|
|
"colorName": "黑色",
|
|
|
"describeInfo": "ggAir Jordan 4 Retro Motorsport Away BG AJ4 赛车白40839787-002g",
|
|
|
"gender": "男款",
|
|
|
"image": "",
|
|
|
"imageList": [
|
|
|
"http://img11.static.yhbimg.com/goodsimg/2019/11/07/17/01f5f36a2ce3e935b7481a658466c574af.jpg",
|
|
|
"http://img11.static.yhbimg.com/goodsimg/2019/11/07/17/0150f24aed5fe9f26df7516c9479ee39c8.jpg",
|
|
|
"http://img11.static.yhbimg.com/goodsimg/2019/11/07/17/01f247d64097dfadd5d510621e9d69abc3.jpg",
|
|
|
"http://img11.static.yhbimg.com/goodsimg/2019/11/07/17/01e758d028aeb48d40e656a708488844dc.jpg",
|
|
|
"http://img11.static.yhbimg.com/goodsimg/2019/11/07/17/017d63f422ee227a6fa519d44d7aa27f7f.jpg",
|
|
|
"http://img11.static.yhbimg.com/goodsimg/2019/11/07/17/01a15766233785ea70f2fda57e1e906ce4.jpg",
|
|
|
"http://img11.static.yhbimg.com/goodsimg/2019/11/07/17/01701885a5ca6b7cf8cae2fca6c0e36795.jpg"
|
|
|
],
|
|
|
"price": "99.00",
|
|
|
"productCode": "TB-011-A-BLK-GLD-49",
|
|
|
"productId": 10014795,
|
|
|
"productName": "DXF测试商品",
|
|
|
"sechondHandTypeName": "二手",
|
|
|
"shoeBoxDesc": "完好",
|
|
|
"shoeQualityDesc": "该商品没有明显瑕疵",
|
|
|
"sizeName": "37 2/3码",
|
|
|
"soldTime": "2019.03.12",
|
|
|
"status": 1
|
|
|
}
|
|
|
// const info = {
|
|
|
// "brandName": "NIKE",
|
|
|
// "colorName": "黑色",
|
|
|
// "describeInfo": "ggAir Jordan 4 Retro Motorsport Away BG AJ4 赛车白40839787-002g",
|
|
|
// "gender": "男款",
|
|
|
// "image": "",
|
|
|
// "imageList": [
|
|
|
// "http://img11.static.yhbimg.com/goodsimg/2019/11/07/17/01f5f36a2ce3e935b7481a658466c574af.jpg",
|
|
|
// "http://img11.static.yhbimg.com/goodsimg/2019/11/07/17/0150f24aed5fe9f26df7516c9479ee39c8.jpg",
|
|
|
// "http://img11.static.yhbimg.com/goodsimg/2019/11/07/17/01f247d64097dfadd5d510621e9d69abc3.jpg",
|
|
|
// "http://img11.static.yhbimg.com/goodsimg/2019/11/07/17/01e758d028aeb48d40e656a708488844dc.jpg",
|
|
|
// "http://img11.static.yhbimg.com/goodsimg/2019/11/07/17/017d63f422ee227a6fa519d44d7aa27f7f.jpg",
|
|
|
// "http://img11.static.yhbimg.com/goodsimg/2019/11/07/17/01a15766233785ea70f2fda57e1e906ce4.jpg",
|
|
|
// "http://img11.static.yhbimg.com/goodsimg/2019/11/07/17/01701885a5ca6b7cf8cae2fca6c0e36795.jpg"
|
|
|
// ],
|
|
|
// "price": "99.00",
|
|
|
// "productCode": "TB-011-A-BLK-GLD-49",
|
|
|
// "productId": 10014795,
|
|
|
// "productName": "DXF测试商品",
|
|
|
// "sechondHandTypeName": "二手",
|
|
|
// "shoeBoxDesc": "完好",
|
|
|
// "shoeQualityDesc": "该商品没有明显瑕疵",
|
|
|
// "sizeName": "37 2/3码",
|
|
|
// "soldTime": "2019.03.12",
|
|
|
// "status": 1
|
|
|
// }
|
|
|
|
|
|
|
|
|
export default {
|
...
|
...
|
@@ -99,6 +98,7 @@ export default { |
|
|
},
|
|
|
// 服务端渲染函数
|
|
|
asyncData({store, router}) {
|
|
|
store.dispatch('second/fetchFilterData', { skup: router.params.skup });
|
|
|
return store.dispatch('second/fetchDetailById', { skup: router.params.skup });
|
|
|
},
|
|
|
data(){
|
...
|
...
|
@@ -107,7 +107,7 @@ export default { |
|
|
eventPassthrough: 'vertical'
|
|
|
},
|
|
|
|
|
|
info
|
|
|
// info
|
|
|
}
|
|
|
},
|
|
|
created() {},
|
...
|
...
|
@@ -123,7 +123,7 @@ export default { |
|
|
methods: {
|
|
|
// 购买
|
|
|
buy() {
|
|
|
this.$refs.filtrate.show();
|
|
|
// this.$refs.filtrate.show();
|
|
|
|
|
|
/**
|
|
|
* 数据埋点
|
...
|
...
|
@@ -151,7 +151,7 @@ export default { |
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
// ...mapState('second', ['info'])
|
|
|
...mapState('second', ['info'])
|
|
|
},
|
|
|
watch: {},
|
|
|
components: {
|
...
|
...
|
@@ -168,7 +168,9 @@ export default { |
|
|
/* 定义局部样式,添加外围容器,scss嵌套尽量不要超过三层,会影响查找器性能 */
|
|
|
<style rel='stylesheet/scss' lang='scss' scoped>
|
|
|
@import '@/pages/product/product-detail.scss';
|
|
|
.second-detail-wrap {}
|
|
|
.second-detail-wrap {
|
|
|
|
|
|
}
|
|
|
|
|
|
.ellipsis {
|
|
|
white-space: nowrap;
|
...
|
...
|
@@ -186,6 +188,8 @@ export default { |
|
|
img {
|
|
|
display: flex;
|
|
|
height: 375px;
|
|
|
margin: 0 auto;
|
|
|
max-width: max-content;
|
|
|
}
|
|
|
}
|
|
|
.pole-dot-area {
|
...
|
...
|
@@ -258,6 +262,8 @@ export default { |
|
|
border: 1px solid #f2f2f2;
|
|
|
border-radius: 4px;
|
|
|
.image {
|
|
|
min-width: 140px;
|
|
|
min-height: 140px;
|
|
|
max-width: 140px;
|
|
|
max-height: 140px;
|
|
|
margin: 0 20px;
|
...
|
...
|
|