|
@@ -48,7 +48,7 @@
|
|
|
<view class="banner-section">
|
|
|
<uni-swiper-dot :info="productImage" :current="current" field="content" :mode="mode" >
|
|
|
<swiper class="banner tui-banner tui-skeleton-rect" @change="swiperChange" :duration='800' :autoplay="false" :circular="true" >
|
|
|
- <swiper-item v-for="(item, index) in product.imageList" :key="index" class="banner-item">
|
|
|
+ <swiper-item v-for="(item, index) in product.imageList" :key="index" class="banner-item">
|
|
|
<image :src="item" @click="previewImg(index)" class="product-img" />
|
|
|
</swiper-item>
|
|
|
</swiper>
|
|
@@ -59,7 +59,7 @@
|
|
|
</view>
|
|
|
<view class="product-wrap clearfix">
|
|
|
<view class="wrap-top" >
|
|
|
- <view class="wrap-top-price">
|
|
|
+ <view class="wrap-top-price">
|
|
|
<second-price :product="product"></second-price>
|
|
|
</view>
|
|
|
<view class="p-title tui-skeleton-fillet">
|
|
@@ -81,14 +81,14 @@
|
|
|
<text class="iconfont icon-wuyoutuihuo tui-skeleton-rect"><text class="text">正品保证</text></text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
<view class="product-parameter" @click="showPopup">
|
|
|
<text class="title">参数:</text>
|
|
|
<text class="name">品牌 参数 分类...</text>
|
|
|
<text class="iconfont icon-xiayibu"></text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
<view class="product-details productDetails0">
|
|
|
<!-- 商品详情 -->
|
|
|
<view class="title">
|
|
@@ -119,7 +119,7 @@
|
|
|
<view class="content hot">
|
|
|
<recommend :query-productid="product.productID" v-if="isRequest" ></recommend>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
<!-- 商品参数 -->
|
|
|
<tui-bottom-popup :radius="true" :show="popupShow" @close="hidePopup()">
|
|
|
<view class="tui-popup-box clearfix">
|
|
@@ -130,14 +130,14 @@
|
|
|
<view class="tui-button" @click="hidePopup()">收起</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- </tui-bottom-popup>
|
|
|
+ </view>
|
|
|
+ </tui-bottom-popup>
|
|
|
<!-- 侧边 -->
|
|
|
<scroll-top :isScrollTop="isScrollTop" :bottom="200"></scroll-top>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -229,7 +229,7 @@
|
|
|
},
|
|
|
methods:{
|
|
|
initData(){// 初始化商品详情查询
|
|
|
- this.SecondService.ProductDetail({productId:this.productID,userId:this.userId}).then(response =>{
|
|
|
+ this.SecondService.ProductDetail({productId:this.productID,userId:this.userId}).then(response =>{
|
|
|
this.skeletonShow = false
|
|
|
this.productImage=[];
|
|
|
this.shop = response.data.shop
|
|
@@ -243,6 +243,8 @@
|
|
|
},2000)
|
|
|
this.isRequest = true
|
|
|
}).catch(error =>{
|
|
|
+ console.log(error)
|
|
|
+ this.skeletonShow = false
|
|
|
this.isInvalid = true
|
|
|
})
|
|
|
},
|
|
@@ -365,7 +367,11 @@
|
|
|
getWinHeight() {
|
|
|
this.winHeight = wx.getSystemInfoSync().windowHeight;
|
|
|
},
|
|
|
-
|
|
|
+ goIndex(){//商城首页
|
|
|
+ uni.switchTab({
|
|
|
+ url: '/pages/tabBar/home/index'
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
setTimeout(() => {
|
|
@@ -413,7 +419,7 @@
|
|
|
},
|
|
|
onShow() {
|
|
|
this.$api.getStorage().then((resolve) => {
|
|
|
- this.userId = resolve.userId ? resolve.userId : '';
|
|
|
+ this.userId = resolve.userId ? resolve.userId : '';
|
|
|
this.userIdentity = resolve.userIdentity ? resolve.userIdentity : 3
|
|
|
if (isPreviewImg) {
|
|
|
isPreviewImg = false;
|