...
|
...
|
@@ -32,16 +32,16 @@ |
|
|
</cube-slide>
|
|
|
<div class="primary">
|
|
|
<div>
|
|
|
<p class="price">¥{{info.price}}</p>
|
|
|
<p class="price">¥{{info.price}} <span>全新¥{{info.newProductPrice}}</span><span class="red"> 省¥{{info.savePrice}}</span></p>
|
|
|
<p class="size">{{info.sizeName}}</p>
|
|
|
</div>
|
|
|
<p class="name">{{info.productName}} {{info.colorName}} {{info.describeInfo}}</p>
|
|
|
<p class="name">{{info.productName}} {{info.colorName}} {{info.productCode}}</p>
|
|
|
</div>
|
|
|
<div class="other-info">
|
|
|
<p>{{info.gender}} {{info.brandName}}</p>
|
|
|
<p>状况:{{ info.shoeQualityDesc }}</p>
|
|
|
<p>鞋盒:{{ info.shoeBoxDesc }}</p>
|
|
|
<p>售出时间:{{ info.soldTime }}</p>
|
|
|
<p v-show="info.soldTime">售出时间:{{ info.soldTime }}</p>
|
|
|
<p>{{ info.describeInfo }}</p>
|
|
|
</div>
|
|
|
<div class="extra-card" @click="$router.push({name: 'ProductDetail', params: { productId: info.productId } })">
|
...
|
...
|
@@ -54,7 +54,8 @@ |
|
|
</div>
|
|
|
</LayoutScroll>
|
|
|
<div class="fixed-footer">
|
|
|
<cube-button class="buy active" @click="buy">购买 <span class="price">¥{{info.price}}</span></cube-button>
|
|
|
<cube-button v-if="info.status===1" class="active" @click="buy">购买 <span class="price">¥{{info.price}}</span></cube-button>
|
|
|
<cube-button v-else class="disable">商品已售出</cube-button>
|
|
|
</div>
|
|
|
</LayoutApp>
|
|
|
</template>
|
...
|
...
|
@@ -94,7 +95,12 @@ export default { |
|
|
name: 'UfoSecondProductDetail',
|
|
|
mixins: [],
|
|
|
props: {
|
|
|
skup: Number
|
|
|
skup: Number,
|
|
|
yasParams: {
|
|
|
TAB_ID: '',
|
|
|
TAB_NAME: '',
|
|
|
PRD_ID: '',
|
|
|
}
|
|
|
},
|
|
|
// 服务端渲染函数
|
|
|
asyncData({store, router}) {
|
...
|
...
|
@@ -112,11 +118,11 @@ export default { |
|
|
created() {},
|
|
|
mounted() {},
|
|
|
activated() {
|
|
|
// console.log('mounted', this.info);
|
|
|
console.log(this.info);
|
|
|
|
|
|
this.fetchDetailById({ skup: this.skup })
|
|
|
this.refresh();
|
|
|
|
|
|
|
|
|
/*
|
|
|
[二手商品详情页打开时]
|
|
|
1.FP_NAME:来源页面名称;eg:XY_UFO...
|
...
|
...
|
@@ -126,16 +132,18 @@ export default { |
|
|
5.PRD_ID:商品id;
|
|
|
6.PRD_TYPE:1-二手,2-全新瑕疵;
|
|
|
*/
|
|
|
// let { TAB_ID, TAB_NAME, PRD_ID } = this.yasParams;
|
|
|
|
|
|
this.$store.dispatch('reportYas', {
|
|
|
params: {
|
|
|
appop: 'XY_UFO_PRD_DT_INFO',
|
|
|
param:{
|
|
|
FP_NAME: `XY_UFO${this.$route.name}`,
|
|
|
FP_PARAM: this.skup,
|
|
|
TAB_ID: '',
|
|
|
TAB_NAME: '',
|
|
|
PRD_ID: this.$route.query.pid,
|
|
|
PRD_TYPE: this.info.describeInfo
|
|
|
TAB_ID: this.yasParams?.TAB_ID,
|
|
|
TAB_NAME: this.yasParams?.TAB_NAME,
|
|
|
PRD_ID: this.yasParams?.PRD_ID,
|
|
|
PRD_TYPE: this.info.sechondHandTypeName == '全新瑕疵' ? 2 :1
|
|
|
}
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -168,9 +176,9 @@ export default { |
|
|
appop: 'XY_UFO_PRD_DT_BUY_SEL_C',
|
|
|
param:{
|
|
|
P_NAME: `XY_UFO${this.$route.name}`,
|
|
|
PRD_ID: this.$route.query.pid,
|
|
|
PRD_ID: this.yasParams?.pid,
|
|
|
PRD_SIZE: this.info.sizeName,
|
|
|
ORD_TYPE: this.info.describeInfo
|
|
|
ORD_TYPE: this.info.sechondHandTypeName == '全新瑕疵' ? 2 :1
|
|
|
}
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -190,7 +198,7 @@ export default { |
|
|
PRD_ID: this.info.productId,
|
|
|
PRD_SKU: this.skup,
|
|
|
PRD_SIZE: this.info.size_name,
|
|
|
ORD_TYPE: this.info.sechondHandTypeName === '二手' ? 5 : 6,
|
|
|
ORD_TYPE: this.info.sechondHandTypeName == '全新瑕疵' ? 2 :1
|
|
|
},
|
|
|
},
|
|
|
});
|
...
|
...
|
@@ -282,6 +290,13 @@ export default { |
|
|
font-size: 36px;
|
|
|
letter-spacing: 2px;
|
|
|
}
|
|
|
& > span {
|
|
|
font-size: 24px;
|
|
|
color: #000;
|
|
|
&.red {
|
|
|
color: #D0021B;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
.size {
|
|
|
font-size: 32px;
|
...
|
...
|
@@ -365,6 +380,12 @@ export default { |
|
|
letter-spacing: 2px;
|
|
|
}
|
|
|
}
|
|
|
.disable {
|
|
|
background: #ddd;
|
|
|
color: #999;
|
|
|
border-color: #ddd;
|
|
|
font-size: 32px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
</style>
|
...
|
...
|
|