Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
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
zhengke
jz_Travel
Commits
9c854fd2
Commit
9c854fd2
authored
Oct 13, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
991c41e9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
126 additions
and
133 deletions
+126
-133
jz_Reserve.vue
pages/jiuzhai/jz_Reserve.vue
+10
-12
jz_SureOrder.vue
pages/jiuzhai/jz_SureOrder.vue
+2
-10
paysuccess.vue
pages/jiuzhai/paysuccess.vue
+114
-111
No files found.
pages/jiuzhai/jz_Reserve.vue
View file @
9c854fd2
...
...
@@ -688,14 +688,7 @@ export default {
data
.
CoverImg
=
this
.
currentPriceInfo
.
CoverImg
;
let
myData
=
JSON
.
stringify
(
data
);
this
.
orderData
=
encodeURIComponent
(
myData
);
// this.queren(data.OrderId);
let
obj
=
{
TradeNo
:
"2021101322001457051451455636"
,
OrderNo
:
data
.
OrderNo
,
OrderId
:
data
.
OrderId
,
preferPrice
:
data
.
PreferPrice
,
};
this
.
payAliCallback
(
obj
);
this
.
queren
(
data
.
OrderId
);
}
else
{
}
this
.
submit
=
false
;
...
...
@@ -743,7 +736,10 @@ export default {
});
setTimeout
(()
=>
{
uni
.
redirectTo
({
url
:
"/pages/jiuzhai/paysuccess?PreferPrice="
+
this
.
price
,
url
:
"/pages/jiuzhai/paysuccess?PreferPrice="
+
this
.
price
+
"&isFrom=1"
,
});
},
100
);
},
...
...
@@ -875,7 +871,6 @@ export default {
(
res
)
=>
{
this
.
orderInfo
=
JSON
.
parse
(
res
.
data
);
if
(
res
.
data
)
{
// that.PayAli(res.data, data);
let
cbObj
=
{
TradeNo
:
res
.
data
,
OrderNo
:
data
.
OrderNo
,
...
...
@@ -915,7 +910,6 @@ export default {
},
});
},
// #endif
payAliCallback
(
obj
)
{
this
.
request2
(
{
...
...
@@ -933,7 +927,10 @@ export default {
console
.
log
(
"cb"
,
res
);
this
.
submit
=
false
;
uni
.
redirectTo
({
url
:
"/pages/jiuzhai/paysuccess?PreferPrice="
+
obj
.
preferPrice
,
url
:
"/pages/jiuzhai/paysuccess?PreferPrice="
+
obj
.
preferPrice
+
"&isFrom=1"
,
});
},
(
err
)
=>
{
...
...
@@ -951,6 +948,7 @@ export default {
}
);
},
// #endif
},
};
</
script
>
pages/jiuzhai/jz_SureOrder.vue
View file @
9c854fd2
...
...
@@ -596,7 +596,7 @@
@
click=
"goback"
style=
"background: #fff; color: #111; border: 1px solid #111"
v-if=
"!showPayBtn"
>
取消
>
关闭
</view>
</view>
<view
style=
"display: flex; margin-left: 30rpx"
>
...
...
@@ -881,7 +881,6 @@ export default {
});
},
payAliCallback
(
obj
)
{
console
.
log
(
893
),
Obj
;
let
that
=
this
;
this
.
request2
(
{
...
...
@@ -896,18 +895,11 @@ export default {
},
},
(
res
)
=>
{
console
.
log
(
"cb"
,
res
);
// uni.redirectTo({
// url:
// "/pages/jiuzhai/paysuccess?PreferPrice=" +
// obj.PreferPrice +
// "&isFrom=1",
// });
that
.
submit
=
false
;
that
.
initOrderInfo
(
that
.
orderData
.
model
.
OrderId
);
},
(
err
)
=>
{
console
.
log
(
"
cb2
"
,
err
);
console
.
log
(
"
err
"
,
err
);
uni
.
showToast
({
title
:
"支付失败"
,
icon
:
"none"
,
...
...
pages/jiuzhai/paysuccess.vue
View file @
9c854fd2
<
template
>
<view
class=
"paySuccess"
>
<view
style=
"background: #fff;"
>
<view
class=
"img-box"
>
<img
src=
"/static/images/icon/pay-success.png"
class=
"img"
/>
</view>
<view
class=
"title"
>
订单支付成功
</view>
<view
class=
"price"
>
实付 ¥
{{
PreferPrice
}}
</view>
<view
class=
"btn-box"
>
<u-button
style=
"display: inline-block;"
shape=
"circle"
:custom-style=
"customStyle"
@
click=
"goHome"
>
返回首页
</u-button>
<u-button
shape=
"circle"
style=
"margin-left: 60rpx; display: inline-block;"
:custom-style=
"themCustomStyle"
@
click
.
stop=
"redictToOrders"
>
查看订单
</u-button>
</view>
</view>
</view>
<view
class=
"paySuccess"
>
<view
style=
"background: #fff"
>
<view
class=
"img-box"
>
<img
src=
"/static/images/icon/pay-success.png"
class=
"img"
/>
</view>
<view
class=
"title"
>
订单支付成功
</view>
<view
class=
"price"
>
实付 ¥
{{
PreferPrice
}}
</view>
<view
class=
"btn-box"
>
<u-button
shape=
"circle"
:custom-style=
"customStyle"
@
click=
"goHome"
>
返回首页
</u-button
>
<u-button
shape=
"circle"
:custom-style=
"themCustomStyle"
@
click=
"redictToOrders"
>
查看订单
</u-button
>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
components
:
{
},
data
()
{
return
{
customStyle
:
{
marginLeft
:
"20px"
,
padding
:
"0 30rpx"
,
},
themCustomStyle
:
{
marginLeft
:
"20px"
,
padding
:
"0 30rpx"
,
},
mainColor
:
""
,
recommend
:
[],
payInfo
:
{},
showCoupons
:
false
,
couponMessage
:
''
,
PreferPrice
:
''
,
isLineOrder
:
0
,
};
},
onLoad
(
option
)
{
if
(
option
.
PreferPrice
)
{
this
.
PreferPrice
=
option
.
PreferPrice
}
uni
.
setNavigationBarTitle
({
title
:
"支付成功"
,
});
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
themCustomStyle
.
color
=
this
.
mainColor
;
this
.
themCustomStyle
.
borderColor
=
this
.
mainColor
;
if
(
option
.
isFrom
){
this
.
isLineOrder
=
option
.
isFrom
}
},
methods
:
{
redictToOrders
()
{
if
(
this
.
isLineOrder
==
0
){
uni
.
redirectTo
({
url
:
'/pages/jiuzhai/allorderList'
});
}
else
if
(
this
.
isLineOrder
==
1
){
uni
.
redirectTo
({
url
:
'/pages/jiuzhai/jz_MyOrder'
});
}
else
if
(
this
.
isLineOrder
==
2
){
//司导订单
uni
.
redirectTo
({
url
:
'/pages/guidecar/orderList'
});
}
},
goHome
()
{
uni
.
reLaunch
({
url
:
"/pages/index/index"
,
});
},
},
};
export
default
{
components
:
{},
data
()
{
return
{
customStyle
:
{
width
:
"150rpx"
,
padding
:
"0 30rpx"
,
},
themCustomStyle
:
{
width
:
"150rpx"
,
marginLeft
:
"60rpx"
,
padding
:
"0 30rpx"
,
},
mainColor
:
""
,
recommend
:
[],
payInfo
:
{},
showCoupons
:
false
,
couponMessage
:
""
,
PreferPrice
:
""
,
isLineOrder
:
0
,
};
},
onLoad
(
option
)
{
if
(
option
.
PreferPrice
)
{
this
.
PreferPrice
=
option
.
PreferPrice
;
}
uni
.
setNavigationBarTitle
({
title
:
"支付成功"
,
});
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
themCustomStyle
.
color
=
this
.
mainColor
;
this
.
themCustomStyle
.
borderColor
=
this
.
mainColor
;
if
(
option
.
isFrom
)
{
this
.
isLineOrder
=
option
.
isFrom
;
}
},
methods
:
{
redictToOrders
()
{
if
(
this
.
isLineOrder
==
0
)
{
uni
.
redirectTo
({
url
:
"/pages/jiuzhai/allorderList"
,
});
}
else
if
(
this
.
isLineOrder
==
1
)
{
uni
.
redirectTo
({
url
:
"/pages/jiuzhai/jz_MyOrder"
,
});
}
else
if
(
this
.
isLineOrder
==
2
)
{
//司导订单
uni
.
redirectTo
({
url
:
"/pages/guidecar/orderList"
,
});
}
},
goHome
()
{
uni
.
reLaunch
({
url
:
"/pages/index/index"
,
});
},
},
};
</
script
>
<
style
>
.paySuccess
{
min-height
:
100vh
;
padding-bottom
:
40
rpx
;
background
:
#f5f5f5
;
}
.paySuccess
{
min-height
:
100vh
;
padding-bottom
:
40
rpx
;
background
:
#f5f5f5
;
}
.paySuccess
.img-box
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.paySuccess
.img-box
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.paySuccess
.img-box
.img
{
width
:
256
rpx
;
height
:
256
rpx
;
padding
:
60
rpx
0
0
0
;
}
.paySuccess
.img-box
.img
{
width
:
256
rpx
;
height
:
256
rpx
;
padding
:
60
rpx
0
0
0
;
}
.paySuccess
.title
{
padding
:
40
rpx
0
20
rpx
0
;
font-size
:
32
rpx
;
color
:
#000
;
font-weight
:
600
;
text-align
:
center
;
}
.paySuccess
.title
{
padding
:
40
rpx
0
20
rpx
0
;
font-size
:
32
rpx
;
color
:
#000
;
font-weight
:
600
;
text-align
:
center
;
}
.paySuccess
.price
{
font-size
:
30
rpx
;
color
:
gray
;
padding-bottom
:
60
rpx
;
text-align
:
center
;
}
.paySuccess
.price
{
font-size
:
30
rpx
;
color
:
gray
;
padding-bottom
:
60
rpx
;
text-align
:
center
;
}
.paySuccess
.btn-box
{
padding-bottom
:
60
rpx
;
text-align
:
center
;
}
.paySuccess
.btn-box
{
padding-bottom
:
60
rpx
;
text-align
:
center
;
display
:
flex
;
justify-content
:
center
;
}
</
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