Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
million
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
viitto
million
Commits
6052dfa2
Commit
6052dfa2
authored
Apr 10, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
46500507
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
5 deletions
+34
-5
utils.js
src/boot/utils.js
+6
-2
pay.vue
src/pages/pay/pay.vue
+28
-3
No files found.
src/boot/utils.js
View file @
6052dfa2
...
...
@@ -25,8 +25,8 @@ Vue.prototype.domainManager = function() {
if
(
domainNameUrl
.
indexOf
(
'testerp.oytour'
)
!==
-
1
)
{
domainUrl
=
"http://testapi.oytour.com"
;
}
else
if
(
domainNameUrl
.
indexOf
(
'oytour'
)
!==
-
1
)
{
domainUrl
=
"http://reborn.oytour.com"
;
//domainUrl = 'http://192.168.10.206:8015' //'http://192.168.10.206:8015' ''http://192.168.10.11
:8083' '
//
domainUrl = "http://reborn.oytour.com";
domainUrl
=
'http://192.168.10.226:8015'
//'http://192.168.10.226:8015' ''http://192.168.10.9
:8083' '
}
var
obj
=
{
//主地址
...
...
@@ -121,7 +121,11 @@ Vue.prototype.apipost = function(cmd, msg, successCall, faildCall) {
}
})
.
then
(
res
=>
{
if
(
res
.
resultCode
==
10000
){
this
.
CommonJump
(
'/login'
,
{});
}
successCall
(
res
);
},
faildCall
)
}
...
...
src/pages/pay/pay.vue
View file @
6052dfa2
...
...
@@ -70,9 +70,10 @@
style=
"width: 100px"
/>
</div>
<!--
<div
class=
"rounded-borders q-pa-sm bg-grey-2 cursor-pointer"
>
<q-img
src=
"../assets/img/pay/alipay.png"
spinner-color=
"white"
style=
"height:25px;max-width: 150px;min-width: 30px"
/>
</div>
-->
<div
class=
"rounded-borders q-pa-sm bg-grey-2 cursor-pointer"
@
click=
"showPayFormHandler('alipay')"
>
<!-- height:25px;max-width: 150px;min-width: 30px -->
<q-img
src=
"../../assets/img/pay/alipay.png"
spinner-color=
"white"
style=
"width: 80px;"
/>
</div>
</div>
<div
class=
"q-mt-md"
v-if=
"showPay != ''"
>
<wechatpay
@
cancel=
"cancelPayHandler"
v-if=
"showPay == 'wechat'"
:order-no=
"orderNo"
></wechatpay>
...
...
@@ -133,6 +134,30 @@ export default {
methods
:
{
showPayFormHandler
(
payStr
)
{
this
.
showPay
=
payStr
;
// 支付宝支付
if
(
this
.
showPay
&&
this
.
showPay
==
'alipay'
){
this
.
checkPaySatausHandler
()
}
},
checkPaySatausHandler
(){
this
.
apipost
(
"GetAliPayByOrderNo_post"
,{
OrderNo
:
this
.
orderNo
},
r
=>
{
if
(
r
.
data
.
resultCode
==
1
){
if
(
r
.
data
.
data
.
OrderStatus
==
2
||
r
.
data
.
data
.
OrderStatus
==
3
){
this
.
CommonJump
(
"/paysuccess/"
+
this
.
orderNo
,
{});
}
else
{
let
url
=
r
.
data
.
data
.
QrCode
if
(
url
){
this
.
OpenNewUrl
(
url
)
}
else
{
this
.
$message
.
error
(
"當前訂單未支付,請您繼續完成訂單支付"
)
}
}
}
else
{
location
.
reload
()
}
},
e
=>
{
})
},
checkParamsHandler
()
{
if
(
this
.
$route
.
params
&&
this
.
$route
.
params
.
id
)
{
...
...
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