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
c81c6ecd
Commit
c81c6ecd
authored
Oct 08, 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
6b9b32e0
89a93f09
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
20 deletions
+6
-20
index.vue
src/views/goodsDetail/index.vue
+5
-11
createOrder.vue
src/views/order/createOrder.vue
+1
-9
No files found.
src/views/goodsDetail/index.vue
View file @
c81c6ecd
...
...
@@ -398,7 +398,7 @@ export default {
return
;
}
},
async
init
(
detailParam
)
{
async
init
(
detailParam
,
disabledSetAddress
)
{
const
[
res
]
=
await
goods
.
detailInfo
(
detailParam
);
// canJoinGroupBuyAgain groupStatus
try
{
...
...
@@ -452,7 +452,7 @@ export default {
}
});
}
this
.
selectedAddress
=
res
.
receiverInfo
||
{};
if
(
!
disabledSetAddress
)
this
.
selectedAddress
=
res
.
receiverInfo
||
{};
this
.
specList
=
res
.
skuAtts
||
[];
let
li
=
[];
this
.
specList
.
forEach
(
item
=>
{
...
...
@@ -534,16 +534,10 @@ export default {
changeAddress
(
address
)
{
// 选取规格需要清空,init会重新赋值
this
.
specSelected
=
[];
const
detailParam
=
{
...
this
.
$route
.
query
};
this
.
detailParam
=
{
count
:
this
.
selectedGoods
.
skuNum
,
skuNo
:
this
.
selectedGoods
.
skuId
,
receiverId
:
address
.
addrReceiverId
,
...
detailParam
};
this
.
selectedAddress
=
address
;
this
.
detailParam
=
{
...
this
.
$route
.
query
};
this
.
init
(
this
.
detailParam
,
true
);
this
.
show
=
false
;
console
.
log
(
this
.
detailParam
);
this
.
init
(
this
.
detailParam
);
},
// 选择商品规格
getSelectedSkuNo
(
specSelected
)
{
...
...
src/views/order/createOrder.vue
View file @
c81c6ecd
...
...
@@ -133,15 +133,6 @@ export default {
this
.
orderData
=
orderData
;
this
.
getConfirmOrderInfo
();
}
const
orderAdder
=
this
.
$route
.
params
.
orderAdder
;
if
(
orderAdder
)
{
this
.
handleAddressChange
(
this
.
$route
.
params
.
addressList
);
return
false
;
}
const
addressList
=
localStorage
.
get
(
'
addressList
'
)
||
{};
if
(
addressList
)
{
this
.
handleAddressChange
(
addressList
);
}
},
handleToAddress
()
{
if
(
this
.
orderInfo
.
addrReceiverInfo
)
{
...
...
@@ -170,6 +161,7 @@ export default {
},
// 获取确认订单信息
async
getConfirmOrderInfo
()
{
console
.
log
(
this
.
orderData
,
11223
);
const
[
data
]
=
await
order
.
confirmOrder
(
this
.
orderData
);
if
(
data
)
{
const
{
addrReceiverInfo
,
calcFeeInfo
,
invalidSkuList
,
shopSkuList
}
=
data
;
...
...
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