Commit ca3ee43a authored by Xuguangxing's avatar Xuguangxing

fix

parent a5c99714
......@@ -44,7 +44,7 @@
</div>
</div>
<div
v-for="num in maxCount - 1 - avatorList.length"
v-for="num in maxCount - avatorList.length"
:key="`placeholder${num}`"
class="item placeholder"
/>
......@@ -117,6 +117,11 @@ export default {
this.maxCount = openGroupCnt >= 6 ? 6 : openGroupCnt;
this.openGroupCnt = openGroupCnt;
this.avatorList = peoplePhotoList.slice(0, openGroupCnt);
this.$nextTick(() => {
if (this.avatorList.length === 0) {
this.maxCount -= 1;
}
});
},
async createAndUploadPic(sharePicData) {
this.sharePicData = sharePicData;
......
......@@ -418,7 +418,8 @@ export default {
},
async init(detailParam) {
const [res] = await goods.detailInfo(detailParam);
if (res.groupBuyInfo.groupId) {
try {
if (res.groupBuyInfo?.groupId) {
localStorage.set('groupBuyGroupId', res.groupBuyInfo.groupId || ''); // 设置groupBuyGroupId,用于下单
this.groupId = +res.groupBuyInfo.groupId || 0;
}
......@@ -479,6 +480,9 @@ export default {
// this.getAddr();
//选择的商品规格
this.getSelectedSkuNo(this.specSelected);
} catch (e) {
this.$toast('获取商品详情失败');
}
},
async getAddr() {
if (!this.hasLogin) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment