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
ca1e1cac
Commit
ca1e1cac
authored
Oct 01, 2021
by
beisir
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/group-buy' of git.quantgroup.cn:ui/group-buy-ui into feat/group-buy
parents
4683e2ec
0fe96356
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
9 deletions
+19
-9
sharePic.vue
src/components/sharePic.vue
+1
-1
address.vue
src/views/address/address.vue
+0
-1
index.vue
src/views/goodsDetail/index.vue
+16
-5
smallPic.vue
src/views/goodsDetail/smallPic.vue
+2
-2
No files found.
src/components/sharePic.vue
View file @
ca1e1cac
...
@@ -368,7 +368,7 @@ body {
...
@@ -368,7 +368,7 @@ body {
left: 0;
left: 0;
display: flex;
display: flex;
width: 100%;
width: 100%;
background
-image
: #fff url('https://img.lkbang.net/activity/share/default/skuInfoBg.png');
background: #fff url('https://img.lkbang.net/activity/share/default/skuInfoBg.png');
background-repeat: no-repeat;
background-repeat: no-repeat;
background-size: cover;
background-size: cover;
}
}
...
...
src/views/address/address.vue
View file @
ca1e1cac
...
@@ -66,7 +66,6 @@ export default {
...
@@ -66,7 +66,6 @@ export default {
const
addressList
=
{
...
e
,
noAddr
:
true
};
const
addressList
=
{
...
e
,
noAddr
:
true
};
localStorage
.
set
(
'
addressList
'
,
addressList
);
localStorage
.
set
(
'
addressList
'
,
addressList
);
this
.
$router
.
go
(
-
1
);
// 返回上一页
this
.
$router
.
go
(
-
1
);
// 返回上一页
// this.$router.push({ name: 'createOrder' });
},
},
toAdd
()
{
toAdd
()
{
this
.
$router
.
push
({
name
:
'
addressManage
'
});
this
.
$router
.
push
({
name
:
'
addressManage
'
});
...
...
src/views/goodsDetail/index.vue
View file @
ca1e1cac
...
@@ -279,7 +279,7 @@ export default {
...
@@ -279,7 +279,7 @@ export default {
localStorage
.
remove
(
'
orderData
'
);
localStorage
.
remove
(
'
orderData
'
);
localStorage
.
set
(
'
templateId
'
,
this
.
detailParam
.
templateId
);
// 设置活动模板id,用于下单
localStorage
.
set
(
'
templateId
'
,
this
.
detailParam
.
templateId
);
// 设置活动模板id,用于下单
if
(
this
.
detailParam
.
groupBuyGroupId
)
{
if
(
this
.
detailParam
.
groupBuyGroupId
)
{
localStorage
.
set
(
'
groupBuyGroupId
'
,
this
.
detailParam
.
groupBuyGroupId
);
// 设置groupBuyGroupId,用于下单
//
localStorage.set('groupBuyGroupId', this.detailParam.groupBuyGroupId); // 设置groupBuyGroupId,用于下单
this
.
groupId
=
+
this
.
detailParam
.
groupBuyGroupId
;
this
.
groupId
=
+
this
.
detailParam
.
groupBuyGroupId
;
}
else
{
}
else
{
localStorage
.
remove
(
'
groupBuyGroupId
'
);
localStorage
.
remove
(
'
groupBuyGroupId
'
);
...
@@ -369,7 +369,7 @@ export default {
...
@@ -369,7 +369,7 @@ export default {
sku_no
:
this
.
detailInfo
.
skuNo
,
sku_no
:
this
.
detailInfo
.
skuNo
,
buttons_name
:
buttonNameMap
[
res
]
buttons_name
:
buttonNameMap
[
res
]
});
});
this
.
toOrder
();
this
.
toOrder
(
res
);
},
},
setStartStatus
(
data
)
{
setStartStatus
(
data
)
{
const
currentTime
=
new
Date
(
data
.
currentTime
.
replace
(
/
\-
/g
,
'
/
'
)).
getTime
();
const
currentTime
=
new
Date
(
data
.
currentTime
.
replace
(
/
\-
/g
,
'
/
'
)).
getTime
();
...
@@ -403,7 +403,7 @@ export default {
...
@@ -403,7 +403,7 @@ export default {
// canJoinGroupBuyAgain groupStatus
// canJoinGroupBuyAgain groupStatus
try
{
try
{
if
(
res
.
groupBuyInfo
?.
groupId
)
{
if
(
res
.
groupBuyInfo
?.
groupId
)
{
localStorage
.
set
(
'
groupBuyGroupId
'
,
res
.
groupBuyInfo
.
groupId
||
''
);
// 设置groupBuyGroupId,用于下单
//
localStorage.set('groupBuyGroupId', res.groupBuyInfo.groupId || ''); // 设置groupBuyGroupId,用于下单
this
.
groupId
=
+
res
.
groupBuyInfo
.
groupId
||
0
;
this
.
groupId
=
+
res
.
groupBuyInfo
.
groupId
||
0
;
}
}
if
(
res
.
groupBuyInfo
?.
joinGroup
)
{
if
(
res
.
groupBuyInfo
?.
joinGroup
)
{
...
@@ -494,7 +494,7 @@ export default {
...
@@ -494,7 +494,7 @@ export default {
this
.
show
=
false
;
this
.
show
=
false
;
this
.
$router
.
push
({
name
:
'
addressManage
'
});
this
.
$router
.
push
({
name
:
'
addressManage
'
});
},
},
toOrder
()
{
toOrder
(
type
)
{
if
(
!
this
.
hasLogin
)
{
if
(
!
this
.
hasLogin
)
{
this
.
checkLogin
();
this
.
checkLogin
();
return
;
return
;
...
@@ -518,7 +518,18 @@ export default {
...
@@ -518,7 +518,18 @@ export default {
};
};
localStorage
.
set
(
'
orderData
'
,
order
);
localStorage
.
set
(
'
orderData
'
,
order
);
localStorage
.
remove
(
'
addressList
'
);
localStorage
.
remove
(
'
addressList
'
);
this
.
$router
.
push
({
name
:
'
createOrder
'
});
// const buttonNameMap = {
// 3: '立即参团',
// 1: '立即开团',
// 2: '自己做团长'
// };
const
query
=
{};
localStorage
.
set
(
'
groupBuyGroupId
'
,
type
==
3
?
this
.
groupId
:
''
);
this
.
$router
.
push
({
name
:
'
createOrder
'
,
query
});
},
},
changeAddress
(
address
)
{
changeAddress
(
address
)
{
// 选取规格需要清空,init会重新赋值
// 选取规格需要清空,init会重新赋值
...
...
src/views/goodsDetail/smallPic.vue
View file @
ca1e1cac
...
@@ -165,7 +165,7 @@ export default {
...
@@ -165,7 +165,7 @@ export default {
this
.
detailParam
=
{
...
this
.
$route
.
query
};
this
.
detailParam
=
{
...
this
.
$route
.
query
};
localStorage
.
set
(
'
templateId
'
,
this
.
detailParam
.
templateId
);
// 设置活动模板id,用于下单
localStorage
.
set
(
'
templateId
'
,
this
.
detailParam
.
templateId
);
// 设置活动模板id,用于下单
if
(
this
.
detailParam
.
groupBuyGroupId
)
{
if
(
this
.
detailParam
.
groupBuyGroupId
)
{
localStorage
.
set
(
'
groupBuyGroupId
'
,
this
.
detailParam
.
groupBuyGroupId
);
// 设置groupBuyGroupId,用于下单
//
localStorage.set('groupBuyGroupId', this.detailParam.groupBuyGroupId); // 设置groupBuyGroupId,用于下单
this
.
groupId
=
+
this
.
detailParam
.
groupBuyGroupId
;
this
.
groupId
=
+
this
.
detailParam
.
groupBuyGroupId
;
}
else
{
}
else
{
localStorage
.
remove
(
'
groupBuyGroupId
'
);
localStorage
.
remove
(
'
groupBuyGroupId
'
);
...
@@ -211,7 +211,7 @@ export default {
...
@@ -211,7 +211,7 @@ export default {
async
init
(
detailParam
)
{
async
init
(
detailParam
)
{
const
[
res
]
=
await
goods
.
detailInfo
(
detailParam
);
const
[
res
]
=
await
goods
.
detailInfo
(
detailParam
);
if
(
res
.
groupBuyInfo
.
groupId
)
{
if
(
res
.
groupBuyInfo
.
groupId
)
{
localStorage
.
set
(
'
groupBuyGroupId
'
,
res
.
groupBuyInfo
.
groupId
||
''
);
// 设置groupBuyGroupId,用于下单
//
localStorage.set('groupBuyGroupId', res.groupBuyInfo.groupId || ''); // 设置groupBuyGroupId,用于下单
this
.
groupId
=
+
res
.
groupBuyInfo
.
groupId
||
''
;
this
.
groupId
=
+
res
.
groupBuyInfo
.
groupId
||
''
;
}
}
if
(
res
.
saleCount
&&
res
.
activitySkuTotalCount
)
{
if
(
res
.
saleCount
&&
res
.
activitySkuTotalCount
)
{
...
...
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