Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
group-buy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
group-buy-ui
Commits
ca3ee43a
Commit
ca3ee43a
authored
Sep 25, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a5c99714
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
57 deletions
+66
-57
sharePic.vue
src/components/sharePic.vue
+6
-1
index.vue
src/views/goodsDetail/index.vue
+60
-56
No files found.
src/components/sharePic.vue
View file @
ca3ee43a
...
...
@@ -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
;
...
...
src/views/goodsDetail/index.vue
View file @
ca3ee43a
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment