Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mini_own
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
geruidan
mini_own
Commits
ad3c493d
Commit
ad3c493d
authored
Mar 27, 2023
by
小耗子
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改返回
parent
5975ea36
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
15 deletions
+57
-15
components/sh-custom-nav/sh-custom-nav.vue
components/sh-custom-nav/sh-custom-nav.vue
+41
-0
pages/h5/pay.vue
pages/h5/pay.vue
+16
-15
No files found.
components/sh-custom-nav/sh-custom-nav.vue
0 → 100644
View file @
ad3c493d
<
template
>
<view
class=
"back"
>
<view
class=
"lf"
@
click=
"goback"
>
返回
</view>
<view
class=
"title"
>
{{
info
.
title
}}
</view>
</view>
</
template
>
<
script
>
export
default
{
props
:{
info
:{
type
:
Object
}
},
data
()
{
return
{
}
},
methods
:{
goback
(){
uni
.
navigateTo
({
url
:
'
/pages/h5/index
'
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.back
{
position
:
fixed
;
width
:
100%
;
margin-top
:
50rpx
;
position
:
relative
;
margin-top
:
26px
;
height
:
80px
;
line-height
:
80px
;
.lf
{
position
:
absolute
;
width
:
40px
;
text-align
:
center
;
padding-left
:
10rpx
;
}
.title
{
width
:
100%
;
text-align
:center
}
}
</
style
>
\ No newline at end of file
pages/h5/pay.vue
View file @
ad3c493d
<
template
>
<view>
<view
style=
"position: fixed;width:100%;margin-top:50rpx;position: relative;"
>
<view
style=
"position: absolute;width: 40px;text-align: center"
@
click=
"goback"
>
返回
</view>
<view
style=
"width: 100%;text-align:center"
>
自定义头部
</view>
</view>
<sh-custom-nav
:info=
"info"
></sh-custom-nav>
<view
class=
"pay-container"
v-if=
"!isPay"
>
<view
class=
"money-box"
>
¥
<text
class=
"money"
>
{{
actuallyPay
}}
</text></view>
<u-button
@
click=
"pay"
shape=
"circle"
type=
"primary"
text=
"确认支付"
color=
"#61b077"
></u-button>
...
...
@@ -30,8 +25,11 @@
</
template
>
<
script
>
import
http
from
'
@/shopro/request/index
'
;
import
Coupons
from
'
@/components/sh-empty/sh-empty
'
import
shCustomNav
from
'
@/components/sh-custom-nav/sh-custom-nav
'
;
export
default
{
components
:{
shCustomNav
},
data
()
{
return
{
params
:{},
...
...
@@ -39,7 +37,10 @@
payStatus
:
'
pending
'
,
payTips
:
"
等待中
"
,
orderId
:
""
,
isPay
:
false
isPay
:
false
,
info
:{
title
:
'
支付
'
}
}
},
methods
:
{
...
...
@@ -91,16 +92,16 @@
// wx.navigateBack({
// delta: pages.length-2
// })
uni
.
navigateTo
({
url
:
'
/pages/h5/index
'
})
uni
.
navigateTo
({
url
:
'
/pages/h5/index
'
})
}
},
onLoad
(
option
){
let
{
data
,
orderId
,
actuallyPay
}
=
option
;
this
.
actuallyPay
=
actuallyPay
;
this
.
orderId
=
orderId
;
this
.
params
=
JSON
.
parse
(
decodeURIComponent
(
data
));
//
let {data,orderId,actuallyPay} = option;
//
this.actuallyPay = actuallyPay;
//
this.orderId = orderId;
//
this.params = JSON.parse(decodeURIComponent(data));
}
}
...
...
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