修改商品详情中发现的展示问题

master
lemon橪 2022-06-01 11:30:23 +08:00 committed by 学习很差啦
parent a393910c0a
commit 3f0e34b715
3 changed files with 14 additions and 14 deletions

View File

@ -1,6 +1,6 @@
{
"name" : "lili商城",
"appid" : "__UNI__83F0C3D",
"appid" : "__UNI__EC9FD60",
"description" : "",
"versionName" : "4.2.5",
"versionCode" : 4000250,

View File

@ -7,7 +7,7 @@
<!-- 分享 -->
<shares
v-if="shareFlage && goodsDetail.id"
v-if="enableShare && goodsDetail.id"
:skuId="this.routerVal.id"
:goodsId="this.routerVal.goodsId"
:link="
@ -19,7 +19,7 @@
:thumbnail="goodsDetail.thumbnail"
:goodsName="goodsDetail.goodsName"
type="goods"
@close="shareFlage = false"
@close="enableShare = false"
/>
<popups
v-model="popupsSwitch"
@ -116,7 +116,7 @@
<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="desc-bold">
{{ goodsDetail.goodsName || "" }}
@ -410,7 +410,6 @@ export default {
return {
setup,
promotionShow: false, //
promotionFlag: true, //
// #ifdef H5
navbarListX: 110, //x
navbarListY: 80, //y
@ -447,9 +446,10 @@ export default {
},
],
popupsSwitch: false, //
shareFlage: false,
enableShare: false,
selectedGoods: "", //
isGroup: false, //
isSeckill:false, //
pointDetail: "", //
assemble: "", //sku
navbarOnlyBack: {
@ -485,7 +485,6 @@ export default {
id: "4",
},
],
oldtabScrollTop: 0,
tabScrollTop: null,
scrollArr: [],
scrollId: "1",
@ -547,10 +546,7 @@ export default {
this.$refs.popupGoods.buyType = "PINTUAN";
clearInterval(timer);
}, 100);
this.promotionFlag = false;
} else {
this.promotionFlag = true;
this.$refs.popupGoods.buyType = "";
}
},
@ -684,6 +680,10 @@ export default {
if (item.indexOf("POINTS_GOODS") == 0) {
this.pointDetail = this.PromotionList[item];
}
//
if (item.indexOf("SECKILL") == 0) {
this.isSeckill = true
}
});
//
this.imgList = this.goodsDetail.goodsGalleryList;
@ -1074,7 +1074,7 @@ export default {
* 点击分享
*/
async shareChange() {
this.shareFlage = true;
this.enableShare = true;
},
},
};

View File

@ -1,7 +1,7 @@
<template>
<view class="recommend-box" >
<h4 class="goods-recommend-title">宝贝推荐</h4>
<goodsList :res='res' :storeName="false" />
<goodsList :res='res' v-if="res" :storeName="false" />
</view>
</template>