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
ce441ef3
Commit
ce441ef3
authored
Aug 27, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/goods' into 'master'
fix: 微信H5支付添加支付回调等待页;协议弹框文案修复 See merge request
!95
parents
4210c87c
ea274b7d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
48 additions
and
8 deletions
+48
-8
routes.js
src/router/routes.js
+4
-3
pay.js
src/service/pay.js
+7
-3
index.vue
src/views/Goods/Detail/index.vue
+1
-1
GoInsureDialog.vue
src/views/Goods/Detail/modules/GoInsureDialog.vue
+1
-1
index.less
src/views/Policy/PayWaiting/index.less
+6
-0
index.vue
src/views/Policy/PayWaiting/index.vue
+29
-0
No files found.
src/router/routes.js
View file @
ce441ef3
...
...
@@ -155,9 +155,10 @@ export default [
meta
:
{
title
:
"
了解芒果保险
"
}
},
{
path
:
"
/paytest
"
,
name
:
"
Introduction
"
,
component
:
()
=>
import
(
"
../views/paytest
"
)
path
:
"
/payWaiting
"
,
name
:
"
PayWaiting
"
,
component
:
()
=>
import
(
"
../views/Policy/PayWaiting/index.vue
"
),
meta
:
{
title
:
"
支付中
"
}
},
{
path
:
"
*
"
,
...
...
src/service/pay.js
View file @
ce441ef3
...
...
@@ -2,7 +2,7 @@
* @Description: 支付微信h5, jsapi, 第三方收银台,跳转)
* @Date: 2020-07-28 15:03:52
* @LastEditors: gzw
* @LastEditTime: 2020-08-27 1
4:54:50
* @LastEditTime: 2020-08-27 1
5:41:41
*/
// import cherry from "@qg/cherry-ui";
...
...
@@ -58,7 +58,9 @@ function payByWeixinJsapi(info = {}, callback) {
function
payByWeixinH5
(
info
)
{
if
(
!
info
.
url
)
return
;
const
currentPath
=
encodeURIComponent
(
window
.
location
.
href
+
qs
.
stringify
(
info
.
params
,
{
encode
:
true
,
addQueryPrefix
:
true
})
window
.
location
.
origin
+
"
/payWaiting
"
+
qs
.
stringify
(
info
.
params
,
{
encode
:
true
,
addQueryPrefix
:
true
})
);
window
.
location
.
href
=
`
${
info
.
url
}
&redirect_url=
${
currentPath
}
`
;
}
...
...
@@ -74,7 +76,9 @@ function payByWeixinH5(info) {
function
payByThirdPartyCashier
(
info
)
{
if
(
!
info
.
url
)
return
;
const
currentPath
=
encodeURIComponent
(
window
.
location
.
href
+
qs
.
stringify
(
info
.
params
,
{
encode
:
true
,
addQueryPrefix
:
true
})
window
.
location
.
origin
+
"
/payWaiting
"
+
qs
.
stringify
(
info
.
params
,
{
encode
:
true
,
addQueryPrefix
:
true
})
);
window
.
location
.
href
=
`
${
info
.
url
}
&redirect_uri=
${
currentPath
}
`
;
}
...
...
src/views/Goods/Detail/index.vue
View file @
ce441ef3
...
...
@@ -56,7 +56,7 @@ export default {
return
;
}
const
res
=
await
getCulOrder
();
this
.
noOrder
=
res
[
0
].
state
&&
res
[
0
].
state
<=
2
;
this
.
noOrder
=
res
[
0
]
&&
res
[
0
]
.
state
&&
res
[
0
].
state
<=
2
;
},
pageBack
(
e
)
{
this
.
showRec
=
false
;
...
...
src/views/Goods/Detail/modules/GoInsureDialog.vue
View file @
ce441ef3
<
template
>
<modal
v-model=
"show"
:closeable=
"true"
cancel-btn=
""
confirm-btn=
"
好的
继续"
@
confirm=
"go"
>
<modal
v-model=
"show"
:closeable=
"true"
cancel-btn=
""
confirm-btn=
"
同意并
继续"
@
confirm=
"go"
>
<h4
slot=
"title"
class=
"pay-title"
>
立即拥有
<br
/>
{{
title
}}
</h4>
<compactCellGroup
class=
"pay-det"
:cell-data=
"payData"
:text-bold=
"true"
/>
<slot>
...
...
src/views/Policy/PayWaiting/index.less
0 → 100644
View file @
ce441ef3
@import "../../../style/var.less";
.container {
overflow: hidden;
background-color: @white;
}
\ No newline at end of file
src/views/Policy/PayWaiting/index.vue
0 → 100644
View file @
ce441ef3
<
template
>
<div
class=
"container"
></div>
</
template
>
<
script
>
import
detailPayMixin
from
"
@/views/Goods/Detail/modules/detailPay.mixin
"
;
export
default
{
name
:
"
PayWaiting
"
,
mixins
:
[
detailPayMixin
],
data
()
{
return
{
orderInfo
:
{}
};
},
mounted
()
{
this
.
setIsPayWait
(
true
);
this
.
orderInfo
=
this
.
$route
.
query
;
if
(
!
this
.
orderInfo
.
payOrderNo
)
{
this
.
$notify
({
type
:
"
warning
"
,
message
:
"
正在跳转...
"
});
setTimeout
(()
=>
{
this
.
$router
.
replace
(
"
/policy
"
);
},
1000
);
return
;
}
this
.
getPayResult
();
}
};
</
script
>
<
style
lang=
"less"
src=
"./index.less"
scoped
></
style
>
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