修改商品详情中发现的展示问题
parent
a393910c0a
commit
3f0e34b715
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name" : "lili商城",
|
"name" : "lili商城",
|
||||||
"appid" : "__UNI__83F0C3D",
|
"appid" : "__UNI__EC9FD60",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "4.2.5",
|
"versionName" : "4.2.5",
|
||||||
"versionCode" : 4000250,
|
"versionCode" : 4000250,
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
<!-- 分享 -->
|
<!-- 分享 -->
|
||||||
<shares
|
<shares
|
||||||
v-if="shareFlage && goodsDetail.id"
|
v-if="enableShare && goodsDetail.id"
|
||||||
:skuId="this.routerVal.id"
|
:skuId="this.routerVal.id"
|
||||||
:goodsId="this.routerVal.goodsId"
|
:goodsId="this.routerVal.goodsId"
|
||||||
:link="
|
:link="
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
:thumbnail="goodsDetail.thumbnail"
|
:thumbnail="goodsDetail.thumbnail"
|
||||||
:goodsName="goodsDetail.goodsName"
|
:goodsName="goodsDetail.goodsName"
|
||||||
type="goods"
|
type="goods"
|
||||||
@close="shareFlage = false"
|
@close="enableShare = false"
|
||||||
/>
|
/>
|
||||||
<popups
|
<popups
|
||||||
v-model="popupsSwitch"
|
v-model="popupsSwitch"
|
||||||
|
@ -116,7 +116,7 @@
|
||||||
|
|
||||||
<view class="card-box top-radius-0" id="main2">
|
<view class="card-box top-radius-0" id="main2">
|
||||||
<!-- 活动不显示价钱 -->
|
<!-- 活动不显示价钱 -->
|
||||||
<view v-if="!promotionFlag" class="desc-bold -goods-msg">
|
<view v-if="isSeckill || isGroup" class="desc-bold -goods-msg">
|
||||||
<view class="-goods-flex">
|
<view class="-goods-flex">
|
||||||
<view class="desc-bold">
|
<view class="desc-bold">
|
||||||
{{ goodsDetail.goodsName || "" }}
|
{{ goodsDetail.goodsName || "" }}
|
||||||
|
@ -410,7 +410,6 @@ export default {
|
||||||
return {
|
return {
|
||||||
setup,
|
setup,
|
||||||
promotionShow: false, //弹窗开关
|
promotionShow: false, //弹窗开关
|
||||||
promotionFlag: true, //活动开关
|
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
navbarListX: 110, //导航栏列表栏x轴
|
navbarListX: 110, //导航栏列表栏x轴
|
||||||
navbarListY: 80, //导航栏列表栏y轴
|
navbarListY: 80, //导航栏列表栏y轴
|
||||||
|
@ -447,9 +446,10 @@ export default {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
popupsSwitch: false, //导航栏列表栏开关
|
popupsSwitch: false, //导航栏列表栏开关
|
||||||
shareFlage: false,
|
enableShare: false,
|
||||||
selectedGoods: "", //选择的商品规格昵称
|
selectedGoods: "", //选择的商品规格昵称
|
||||||
isGroup: false, // 是否是拼团活动
|
isGroup: false, // 是否是拼团活动
|
||||||
|
isSeckill:false, // 是否秒杀活动
|
||||||
pointDetail: "", // 是否是积分商品
|
pointDetail: "", // 是否是积分商品
|
||||||
assemble: "", //拼团的sku
|
assemble: "", //拼团的sku
|
||||||
navbarOnlyBack: {
|
navbarOnlyBack: {
|
||||||
|
@ -485,7 +485,6 @@ export default {
|
||||||
id: "4",
|
id: "4",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
oldtabScrollTop: 0,
|
|
||||||
tabScrollTop: null,
|
tabScrollTop: null,
|
||||||
scrollArr: [],
|
scrollArr: [],
|
||||||
scrollId: "1",
|
scrollId: "1",
|
||||||
|
@ -547,10 +546,7 @@ export default {
|
||||||
this.$refs.popupGoods.buyType = "PINTUAN";
|
this.$refs.popupGoods.buyType = "PINTUAN";
|
||||||
clearInterval(timer);
|
clearInterval(timer);
|
||||||
}, 100);
|
}, 100);
|
||||||
|
|
||||||
this.promotionFlag = false;
|
|
||||||
} else {
|
} else {
|
||||||
this.promotionFlag = true;
|
|
||||||
this.$refs.popupGoods.buyType = "";
|
this.$refs.popupGoods.buyType = "";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -684,6 +680,10 @@ export default {
|
||||||
if (item.indexOf("POINTS_GOODS") == 0) {
|
if (item.indexOf("POINTS_GOODS") == 0) {
|
||||||
this.pointDetail = this.PromotionList[item];
|
this.pointDetail = this.PromotionList[item];
|
||||||
}
|
}
|
||||||
|
// 秒杀
|
||||||
|
if (item.indexOf("SECKILL") == 0) {
|
||||||
|
this.isSeckill = true
|
||||||
|
}
|
||||||
});
|
});
|
||||||
// 轮播图
|
// 轮播图
|
||||||
this.imgList = this.goodsDetail.goodsGalleryList;
|
this.imgList = this.goodsDetail.goodsGalleryList;
|
||||||
|
@ -1074,7 +1074,7 @@ export default {
|
||||||
* 点击分享
|
* 点击分享
|
||||||
*/
|
*/
|
||||||
async shareChange() {
|
async shareChange() {
|
||||||
this.shareFlage = true;
|
this.enableShare = true;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="recommend-box" >
|
<view class="recommend-box" >
|
||||||
<h4 class="goods-recommend-title">宝贝推荐</h4>
|
<h4 class="goods-recommend-title">宝贝推荐</h4>
|
||||||
<goodsList :res='res' :storeName="false" />
|
<goodsList :res='res' v-if="res" :storeName="false" />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import goodsList from '@/components/m-goods-list/list.vue'
|
import goodsList from '@/components/m-goods-list/list.vue'
|
||||||
export default {
|
export default {
|
||||||
props: ["res"],
|
props: ["res"],
|
||||||
components:{goodsList},
|
components:{goodsList},
|
||||||
methods: {
|
methods: {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue