|
@@ -117,12 +117,12 @@
|
|
|
<!-- 相关推荐 -->
|
|
|
<view class="title"><view class="title-tab">相关推荐</view></view>
|
|
|
<view class="content hot">
|
|
|
- <recommend :query-productId="product.productId" v-if="isRequest" ></recommend>
|
|
|
+ <recommend :productId="product.productId" v-if="isRequest" ></recommend>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 商品参数 -->
|
|
|
<tui-bottom-popup :radius="true" :show="popupShow" @close="hidePopup()">
|
|
|
- <view class="tui-popup-box clearfix">
|
|
|
+ <view class="tui-popup-box clearfix">
|
|
|
<view class="title">商品参数</view>
|
|
|
<cm-parameter :product="product" :goodsData="goodsData" ></cm-parameter>
|
|
|
<view class="tui-right-flex tui-popup-btn" :style="{ paddingBottom :isIphoneX ? '68rpx' : '0rpx' }">
|
|
@@ -195,8 +195,8 @@
|
|
|
isIphoneX:this.$store.state.isIphoneX,
|
|
|
windowHeight: '',
|
|
|
headerColor:false,
|
|
|
- backPage:1,
|
|
|
- nvabarData: { //顶部自定义导航
|
|
|
+ backPage:1,
|
|
|
+ nvabarData: { //顶部自定义导航
|
|
|
showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示
|
|
|
title: '' // 导航栏 中间的标题
|
|
|
},
|
|
@@ -230,17 +230,17 @@
|
|
|
this.SecondService.ProductDetail({productId:this.productId,userId:this.userId}).then(response =>{
|
|
|
this.skeletonShow = false
|
|
|
this.productImage=[]
|
|
|
- this.shop = response.data.shop
|
|
|
this.product = response.data
|
|
|
uni.setStorageSync('pageLabel', `${response.data.brandName}`)
|
|
|
+ this.shop = response.data.shop
|
|
|
//处理商品图片列表
|
|
|
this.product.imageList.forEach(item =>{
|
|
|
this.productImage.push(item)
|
|
|
})
|
|
|
setTimeout(()=>{
|
|
|
this.getSectionProps()
|
|
|
+ this.isRequest = true
|
|
|
},2000)
|
|
|
- this.isRequest = true
|
|
|
}).catch(error =>{
|
|
|
console.log(error)
|
|
|
this.skeletonShow = false
|
|
@@ -352,7 +352,7 @@
|
|
|
},
|
|
|
activeTab: debounce((top, _this)=> {//当滑动时也能同步激活tab
|
|
|
const { sectionTopRangeArr } = _this
|
|
|
- if(sectionTopRangeArr.length > 0) {
|
|
|
+ if(sectionTopRangeArr.length > 0) {
|
|
|
sectionTopRangeArr.forEach((item, index) => {
|
|
|
let splitItem = item.split('-'),
|
|
|
openInterval = Number(splitItem[0]),
|