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

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商城", "name" : "lili商城",
"appid" : "__UNI__83F0C3D", "appid" : "__UNI__EC9FD60",
"description" : "", "description" : "",
"versionName" : "4.2.5", "versionName" : "4.2.5",
"versionCode" : 4000250, "versionCode" : 4000250,

View File

@ -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;
}, },
}, },
}; };

View File

@ -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: {
} }