|
@@ -316,11 +316,11 @@
|
|
|
<view class="product-details recommend product-details3">
|
|
|
<view class="title"> <view class="title-tab">相关推荐</view> </view>
|
|
|
<view class="content hot">
|
|
|
- <recommend
|
|
|
+ <cm-recommend
|
|
|
:query-productid="product.productId"
|
|
|
:query-type="product.recommendType"
|
|
|
v-if="isRequest"
|
|
|
- ></recommend>
|
|
|
+ ></cm-recommend>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -674,14 +674,14 @@
|
|
|
<script>
|
|
|
import { mapState, mapMutations } from 'vuex'
|
|
|
import customP from '@/components/cm-module/headerNavbar/header-poduct' //自定义导航
|
|
|
-import cmPrice from '@/components/cm-module/productDetails/cm-price.vue' //价格显示
|
|
|
-import cmAttributes from '@/components/cm-module/productDetails/cm-attributes.vue' //规格信息
|
|
|
import parser from '@/components/jyf-Parser/index' //富文本处理
|
|
|
import tuiSkeleton from '@/components/tui-skeleton/tui-skeleton'
|
|
|
-import recommend from '@/components/cm-module/productDetails/recommend' //相关推荐
|
|
|
-import cmParameter from '@/components/cm-module/productDetails/cm-parameter' //相关参数
|
|
|
-import cmService from '@/components/cm-module/productDetails/cm-service' //服务项目
|
|
|
-import cmProductDoc from '@/components/cm-module/productDetails/cm-product-doc.vue'
|
|
|
+import cmPrice from './components/cm-price.vue' //价格显示
|
|
|
+import cmAttributes from './components/cm-attributes.vue' //规格信息
|
|
|
+import cmRecommend from './components/recommend' //相关推荐
|
|
|
+import cmParameter from './components/cm-parameter' //相关参数
|
|
|
+import cmService from './components/cm-service' //服务项目
|
|
|
+import cmProductDoc from './components/cm-product-doc.vue'
|
|
|
import couponTabs from '@/components/cm-module/coupon/tui-tabs.vue'
|
|
|
import authorize from '@/common/config/authorize.js'
|
|
|
import wxLogin from '@/common/config/wxLogin.js'
|
|
@@ -695,7 +695,7 @@ export default {
|
|
|
customP,
|
|
|
parser,
|
|
|
tuiSkeleton,
|
|
|
- recommend,
|
|
|
+ cmRecommend,
|
|
|
cmPrice,
|
|
|
cmAttributes,
|
|
|
cmParameter,
|
|
@@ -735,6 +735,7 @@ export default {
|
|
|
userId: 0,
|
|
|
shopId: 0,
|
|
|
shopID: 0,
|
|
|
+ typeId: 0,
|
|
|
vipFlag: 0,
|
|
|
firstClubType: 0,
|
|
|
productId: 0,
|
|
@@ -865,6 +866,7 @@ export default {
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
this.productId = this.couponParam.productId = option.id //获取商品ID
|
|
|
+ this.typeId = option.typeId
|
|
|
this.opentype = option.open
|
|
|
this.isShareType = option.type
|
|
|
this.linkPath = option.path
|
|
@@ -914,7 +916,8 @@ export default {
|
|
|
this.ProductService.QueryProductDetils({
|
|
|
userId: this.userId,
|
|
|
productId: this.productId,
|
|
|
- identity: this.identity
|
|
|
+ identity: this.identity,
|
|
|
+ typeId:this.typeId
|
|
|
})
|
|
|
.then(response => {
|
|
|
this.productImage = []
|