Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-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
mongo-ui
Commits
04344062
Commit
04344062
authored
Aug 06, 2020
by
郭志伟
Committed by
郝聪敏
Aug 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 支付完善
parent
684c8aa3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
97 additions
and
93 deletions
+97
-93
detailPay.mixin.js
src/views/Goods/Detail/modules/detailPay.mixin.js
+5
-3
index.vue
src/views/Policy/Add/index.vue
+92
-90
No files found.
src/views/Goods/Detail/modules/detailPay.mixin.js
View file @
04344062
...
...
@@ -16,7 +16,9 @@ export default {
},
methods
:
{
async
generateOrder
()
{
const
res
=
await
placeOrder
.
create
(...
this
.
subFromData
);
const
res
=
await
placeOrder
.
create
({
...
this
.
subFromData
});
if
(
res
)
{
this
.
orderInfo
=
res
;
this
.
goPay
();
...
...
@@ -32,7 +34,7 @@ export default {
const
res
=
await
placeOrder
.
pay
({
payOrderNo
,
payType
,
tradeType
});
if
(
res
)
{
let
payInfo
=
{
url
:
res
.
data
.
payUrl
,
url
:
res
.
payUrl
,
params
:
{
...
orderInfo
,
tradeType
,
...
...
@@ -40,7 +42,7 @@ export default {
}
};
if
(
tradeType
===
"
JSAPI
"
)
{
payInfo
=
res
.
data
.
payInfo
;
payInfo
=
res
.
payInfo
;
}
payByWay
(
tradeType
,
payInfo
).
then
(()
=>
{
this
.
$router
.
push
({
url
:
"
/policy/detail
"
,
query
:
{
id
:
orderNo
}
});
...
...
src/views/Policy/Add/index.vue
View file @
04344062
...
...
@@ -156,6 +156,7 @@
>
<div
class=
"form-unit"
slot=
"button"
>
公斤
</div>
</cr-field>
<
template
v-if=
"formData.insuredUserInfo.relation !== '1'"
>
<cr-field
v-model=
"formData.insuredUserInfo.name"
name=
"insuredUserInfo.name"
...
...
@@ -246,6 +247,7 @@
/>
</
template
>
</cr-field>
</template>
</cr-cell-group>
<cr-cell-group
title=
"保障方案"
>
<cr-field
...
...
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