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
1703e665
Commit
1703e665
authored
Aug 28, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/goods' into 'master'
fix: 信用钱包H5跳转问题 See merge request
!107
parents
744d589a
8b5c1f44
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
10 deletions
+30
-10
AuthFromXyqb.vue
src/components/AuthFromXyqb.vue
+18
-4
pay.js
src/service/pay.js
+4
-4
InsurePersonForm.vue
src/views/Goods/Detail/modules/InsurePersonForm.vue
+3
-1
index.vue
src/views/Policy/PayWaiting/index.vue
+5
-1
No files found.
src/components/AuthFromXyqb.vue
View file @
1703e665
...
...
@@ -23,8 +23,8 @@
</div>
<div
class=
"auth-protocol"
>
允许即表示同意
<a
href
>
《用户协议》
</a>
<a
href
>
《隐私政策》
</a>
<a
href
=
"javascript:;"
@
click=
"showProtocol(0)"
>
《用户协议》
</a>
<a
href
=
"javascript:;"
@
click=
"showProtocol(1)"
>
《隐私政策》
</a>
</div>
<div
class=
"auth-foot"
>
<cr-button
class=
"wx-default"
@
click=
"setAuthXyqb(3)"
>
拒绝
</cr-button>
...
...
@@ -36,6 +36,7 @@
<
script
>
import
{
mapState
,
mapActions
}
from
"
vuex
"
;
import
protocol
from
"
@/api/protocol
"
;
import
localStorage
from
"
@/service/localStorage
"
;
export
default
{
...
...
@@ -43,6 +44,16 @@ export default {
data
()
{
return
{
showAuth
:
true
,
protocol
:
[
{
title
:
"
用户协议
"
,
url
:
protocol
.
userAgreement
},
{
title
:
"
隐私政策
"
,
url
:
protocol
.
privacyPolicy
}
],
userInfo
:
[]
};
},
...
...
@@ -51,7 +62,7 @@ export default {
immediate
:
true
,
handler
(
val
)
{
this
.
setUserInfo
();
this
.
showAuth
=
!!
this
.
userInfo
.
length
&&
val
===
2
;
this
.
showAuth
=
!!
this
.
userInfo
.
length
&&
val
===
2
&&
!
localStorage
.
get
(
"
mongoToken
"
)
;
if
(
this
.
showAuth
)
{
this
.
$nextTick
(()
=>
{
const
activeElement
=
document
.
activeElement
;
...
...
@@ -72,11 +83,14 @@ export default {
...
mapState
([
"
showAuthXyqb
"
])
},
methods
:
{
...
mapActions
([
"
setAuthXyqb
"
]),
...
mapActions
([
"
setAuthXyqb
"
,
"
setPublicPopup
"
]),
confirm
()
{
localStorage
.
set
(
"
mongoToken
"
,
localStorage
.
get
(
"
mongoTokenFromxyqb
"
));
this
.
setAuthXyqb
(
4
);
},
showProtocol
(
idx
)
{
this
.
setPublicPopup
(
this
.
protocol
[
idx
]);
},
setUserInfo
()
{
const
xyqbUserInfo
=
localStorage
.
get
(
"
xyqbUserInfo
"
)
||
{};
Object
.
keys
(
xyqbUserInfo
).
forEach
(
key
=>
{
...
...
src/service/pay.js
View file @
1703e665
...
...
@@ -2,13 +2,11 @@
* @Description: 支付微信h5, jsapi, 第三方收银台,跳转)
* @Date: 2020-07-28 15:03:52
* @LastEditors: gzw
* @LastEditTime: 2020-08-2
7 15:41:41
* @LastEditTime: 2020-08-2
8 11:56:33
*/
// import cherry from "@qg/cherry-ui";
import
qs
from
"
qs
"
;
// const { Notify } = cherry;
import
{
isXyqb
}
from
"
@/service/validation
"
;
/**
* payByWeixinJsapi
* @description: 微信通过jsapi支付
...
...
@@ -57,6 +55,7 @@ function payByWeixinJsapi(info = {}, callback) {
*/
function
payByWeixinH5
(
info
)
{
if
(
!
info
.
url
)
return
;
info
.
params
.
isXyqb
=
isXyqb
;
const
currentPath
=
encodeURIComponent
(
window
.
location
.
origin
+
"
/payWaiting
"
+
...
...
@@ -75,6 +74,7 @@ function payByWeixinH5(info) {
*/
function
payByThirdPartyCashier
(
info
)
{
if
(
!
info
.
url
)
return
;
info
.
params
.
isXyqb
=
isXyqb
;
const
currentPath
=
encodeURIComponent
(
window
.
location
.
origin
+
"
/payWaiting
"
+
...
...
src/views/Goods/Detail/modules/InsurePersonForm.vue
View file @
1703e665
...
...
@@ -270,7 +270,9 @@ export default {
this
.
formData
.
selfIdNo
=
idNoMask
;
}
if
(
phoneNoMask
)
{
setTimeout
(()
=>
{
this
.
formData
.
selfPhone
=
phoneNoMask
;
},
500
);
}
this
.
xyqbAuthState
=
localStorage
.
get
(
"
xyqbAuthState
"
);
this
.
selfInfoReadonly
=
nameMask
&&
idNoMask
&&
phoneNoMask
;
...
...
src/views/Policy/PayWaiting/index.vue
View file @
1703e665
...
...
@@ -15,10 +15,14 @@ export default {
mounted
()
{
this
.
setIsPayWait
(
true
);
this
.
orderInfo
=
this
.
$route
.
query
;
if
(
this
.
orderInfo
.
isXyqb
)
{
window
.
location
.
href
=
"
xyqb://
"
;
return
;
}
if
(
!
this
.
orderInfo
.
payOrderNo
)
{
this
.
$notify
({
type
:
"
warning
"
,
message
:
"
正在跳转...
"
});
setTimeout
(()
=>
{
this
.
$router
.
replace
(
"
/
policy
"
);
this
.
$router
.
replace
(
"
/
"
);
},
1000
);
return
;
}
...
...
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