|
@@ -4,10 +4,23 @@
|
|
|
<item-banner :title="productTypeText" :sub-title="productTypeSubText"></item-banner>
|
|
<item-banner :title="productTypeText" :sub-title="productTypeSubText"></item-banner>
|
|
|
<div class="conBox big-title">
|
|
<div class="conBox big-title">
|
|
|
<span >
|
|
<span >
|
|
|
- {{}}
|
|
|
|
|
|
|
+ {{product.name}}
|
|
|
</span>
|
|
</span>
|
|
|
<div class="hr"></div>
|
|
<div class="hr"></div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class="product-view">
|
|
|
|
|
+ <div class="left">
|
|
|
|
|
+ <div class="imgView">
|
|
|
|
|
+ <img :src="product.image"/>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="concatUs">
|
|
|
|
|
+<!-- 联系销售 -->
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="right">
|
|
|
|
|
+
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
<!-- 产品展示页面 -->
|
|
<!-- 产品展示页面 -->
|
|
|
<!-- 页脚 -->
|
|
<!-- 页脚 -->
|
|
|
<default-footer :lang="lang"/>
|
|
<default-footer :lang="lang"/>
|
|
@@ -36,12 +49,12 @@ export default {
|
|
|
beforeMount() {
|
|
beforeMount() {
|
|
|
const queryString = window.location.search;
|
|
const queryString = window.location.search;
|
|
|
const params = new URLSearchParams(queryString);
|
|
const params = new URLSearchParams(queryString);
|
|
|
-
|
|
|
|
|
if(params&¶ms.get('id')){
|
|
if(params&¶ms.get('id')){
|
|
|
this.productId = params.get('id');
|
|
this.productId = params.get('id');
|
|
|
}else{
|
|
}else{
|
|
|
window.location.href = '/product'
|
|
window.location.href = '/product'
|
|
|
}
|
|
}
|
|
|
|
|
+ this.loadProductDetail();
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
console.log(this.pType);
|
|
console.log(this.pType);
|
|
@@ -65,7 +78,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
let result = res.data;
|
|
let result = res.data;
|
|
|
if(result.rcode === 1){
|
|
if(result.rcode === 1){
|
|
|
-
|
|
|
|
|
|
|
+ this.productDetail = result.data;
|
|
|
}else{
|
|
}else{
|
|
|
console.log('not match result');
|
|
console.log('not match result');
|
|
|
console.log(result);
|
|
console.log(result);
|