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
cd18a063
Commit
cd18a063
authored
Oct 03, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 确认订单连点
parent
ee40dfe8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
19 deletions
+24
-19
order.api.js
src/api/order.api.js
+0
-1
createOrder.vue
src/views/order/createOrder.vue
+24
-18
No files found.
src/api/order.api.js
View file @
cd18a063
...
...
@@ -42,7 +42,6 @@ export default {
},
orderSubmit
(
data
)
{
console
.
log
(
encryption
(
data
),
JSON
.
stringify
(
encryption
(
data
)));
return
http
.
post
(
`
${
talosHost
}
/api/kdsp/order-info/e/hundredGroupSubmit`
,
encryption
(
data
));
},
// 物流公司列表
...
...
src/views/order/createOrder.vue
View file @
cd18a063
...
...
@@ -192,7 +192,8 @@ export default {
},
// 点击立即下单
async
handleBuy
()
{
handleBuy
()
{
this
.
$store
.
dispatch
(
'
change_loading
'
,
true
);
if
(
!
this
.
orderInfo
.
addrReceiverInfo
?.
addrReceiverId
)
{
this
.
$dialog
({
closeOnClickOverlay
:
true
,
...
...
@@ -203,28 +204,33 @@ export default {
this
.
handleToAddress
();
}
});
this
.
$store
.
dispatch
(
'
change_loading
'
,
false
);
return
;
}
saTrackEvent
(
'
H5_UserClickOrderConfirmPageSubmitOrderBtnClick
'
,
{
order_type
:
'
0元购
'
});
const
{
addrReceiverInfo
:
{
addrReceiverId
:
receiverId
},
calcFeeInfo
:
{
totalFreightFee
,
totalPayFee
:
totalFee
},
shopSkuList
}
=
this
.
orderInfo
;
const
params
=
{
receiverId
,
totalFreightFee
,
totalFee
,
activityId
:
localStorage
.
get
(
'
templateId
'
)
||
''
,
activityHundredGroupId
:
localStorage
.
get
(
'
groupBuyGroupId
'
)
||
''
,
skuList
:
shopSkuList
.
map
(
item
=>
{
const
{
skuId
:
skuNo
,
count
}
=
item
;
return
{
skuNo
,
count
};
})
};
this
.
orderSubmit
(
params
);
try
{
const
{
addrReceiverInfo
:
{
addrReceiverId
:
receiverId
},
calcFeeInfo
:
{
totalFreightFee
,
totalPayFee
:
totalFee
},
shopSkuList
}
=
this
.
orderInfo
;
const
params
=
{
receiverId
,
totalFreightFee
,
totalFee
,
activityId
:
localStorage
.
get
(
'
templateId
'
)
||
''
,
activityHundredGroupId
:
localStorage
.
get
(
'
groupBuyGroupId
'
)
||
''
,
skuList
:
shopSkuList
.
map
(
item
=>
{
const
{
skuId
:
skuNo
,
count
}
=
item
;
return
{
skuNo
,
count
};
})
};
this
.
orderSubmit
(
params
);
}
catch
(
e
)
{
this
.
$store
.
dispatch
(
'
change_loading
'
,
false
);
}
},
async
orderSubmit
(
params
)
{
console
.
log
(
params
);
...
...
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