Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
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
mallapp
Commits
d1e66130
Commit
d1e66130
authored
Nov 01, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
727d3157
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
41 deletions
+34
-41
submit2Pay.vue
components/pay/submit2Pay.vue
+4
-20
order-submit2.vue
pages/order-submit/order-submit2.vue
+30
-21
No files found.
components/pay/submit2Pay.vue
View file @
d1e66130
...
@@ -68,7 +68,6 @@
...
@@ -68,7 +68,6 @@
this
.
$emit
(
'closePay'
);
this
.
$emit
(
'closePay'
);
},
},
Pay
()
{
Pay
()
{
let
that
=
this
let
msg
=
{
let
msg
=
{
'pay_channel'
:
this
'pay_channel'
:
this
.
payType
,
//网页打开支付宝支付:alipay_wap 支付宝正扫:alipay_qr 支付宝app:alipay 微信小程序:wx_lite 微信公众号:wx_pub
.
payType
,
//网页打开支付宝支付:alipay_wap 支付宝正扫:alipay_qr 支付宝app:alipay 微信小程序:wx_lite 微信公众号:wx_pub
...
@@ -88,25 +87,10 @@
...
@@ -88,25 +87,10 @@
this
.
loading
=
false
this
.
loading
=
false
uni
.
hideLoading
()
uni
.
hideLoading
()
if
(
res
.
data
!=
''
)
{
if
(
res
.
data
!=
''
)
{
if
(
res
.
data
.
OrderStatus
==
5
){
if
(
this
.
payType
!=
'wx_lite'
)
{
if
(
that
.
u
&&
that
.
u
.
TenantId
==
27
)
{
this
.
aliPay
(
res
.
data
)
uni
.
navigateTo
({
}
else
{
url
:
`/pages/order-submit/pay-success2?payInfo=
${
JSON
.
stringify
(
that
.
payInfo
)}
&StuId=
${
that
.
StuId
}
&TeacherIds=
${
that
.
TeacherIds
}
`
this
.
wxPay
(
JSON
.
parse
(
res
.
data
))
});
that
.
pay
=
false
}
else
{
uni
.
navigateTo
({
url
:
'/pages/order-submit/pay-success?payInfo='
+
JSON
.
stringify
(
that
.
payInfo
)
});
that
.
pay
=
false
}
}
else
{
if
(
this
.
payType
!=
'wx_lite'
)
{
this
.
aliPay
(
res
.
data
)
}
else
{
this
.
wxPay
(
JSON
.
parse
(
res
.
data
))
}
}
}
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
...
...
pages/order-submit/order-submit2.vue
View file @
d1e66130
...
@@ -561,32 +561,41 @@
...
@@ -561,32 +561,41 @@
},
},
res
=>
{
res
=>
{
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
if
(
that
.
checked
==
true
)
{
that
.
payInfo
.
OrderId
=
res
.
data
.
OrderId
;
that
.
zhaoren
=
true
;
that
.
payInfo
.
total_price
=
that
.
ds
.
total_price
;
let
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
if
(
res
.
data
.
OrderStatus
==
5
){
let
uid
=
u
.
UserId
?
u
.
UserId
:
0
;
uni
.
reLaunch
({
let
Up
=
u
.
UserPageType
?
u
.
UserPageType
:
0
;
let
SmallShopId
=
u
.
SmallShopId
?
u
.
SmallShopId
:
0
;
if
(
SmallShopId
==
0
)
{
//如果微店id为0 去找所属微店id
SmallShopId
=
u
.
UserSmallShopId
?
u
.
UserSmallShopId
:
0
;
}
that
.
path
=
'/pages/index/index?OrderId='
+
res
.
data
.
OrderId
+
"&user_id="
+
uid
+
"&Up="
+
Up
+
"&SmallShopId="
+
SmallShopId
+
'&JumpType=4'
;
}
else
{
that
.
payInfo
.
OrderId
=
res
.
data
.
OrderId
;
that
.
payInfo
.
total_price
=
that
.
ds
.
total_price
;
if
(
that
.
formdata
.
Use_Deposit_Id
!=
0
&&
that
.
ds
.
total_price
==
0
)
{
//如果使用了储蓄卡 就直接支付成功 跳入支付结果
uni
.
reLaunch
({
url
:
'/pages/order-submit/pay-success?payInfo='
+
url
:
'/pages/order-submit/pay-success?payInfo='
+
JSON
.
stringify
(
that
.
payInfo
)
JSON
.
stringify
(
that
.
payInfo
)
})
})
}
else
{
//没使用的话 就弹出支付页面
}
else
{
that
.
payBtn
=
true
;
if
(
that
.
checked
==
true
)
{
that
.
zhaoren
=
true
;
let
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
let
uid
=
u
.
UserId
?
u
.
UserId
:
0
;
let
Up
=
u
.
UserPageType
?
u
.
UserPageType
:
0
;
let
SmallShopId
=
u
.
SmallShopId
?
u
.
SmallShopId
:
0
;
if
(
SmallShopId
==
0
)
{
//如果微店id为0 去找所属微店id
SmallShopId
=
u
.
UserSmallShopId
?
u
.
UserSmallShopId
:
0
;
}
that
.
path
=
'/pages/index/index?OrderId='
+
res
.
data
.
OrderId
+
"&user_id="
+
uid
+
"&Up="
+
Up
+
"&SmallShopId="
+
SmallShopId
+
'&JumpType=4'
;
}
else
{
if
(
that
.
formdata
.
Use_Deposit_Id
!=
0
&&
that
.
ds
.
total_price
==
0
)
{
//如果使用了储蓄卡 就直接支付成功 跳入支付结果
uni
.
reLaunch
({
url
:
'/pages/order-submit/pay-success?payInfo='
+
JSON
.
stringify
(
that
.
payInfo
)
})
}
else
{
//没使用的话 就弹出支付页面
that
.
payBtn
=
true
;
}
}
}
}
}
}
else
{
}
else
{
that
.
$refs
.
uToast
.
show
({
that
.
$refs
.
uToast
.
show
({
title
:
res
.
data
.
message
,
title
:
res
.
data
.
message
,
...
...
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