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
f02640ee
Commit
f02640ee
authored
Mar 27, 2023
by
小耗子
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商城支付
parent
3b7064b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
8 deletions
+64
-8
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
+23
-8
No files found.
components/sh-custom-nav/sh-custom-nav.vue
0 → 100644
View file @
f02640ee
<
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
>
pages/h5/pay.vue
View file @
f02640ee
<
template
>
<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>
...
...
@@ -16,7 +17,7 @@
<u-button
type=
"primary"
color=
"#61b077"
text=
"查看订单"
@
click=
"goPath('shopMallList')"
></u-button>
</view>
<view
class=
"rt"
>
<u-button
type=
"primary"
color=
"#61b077"
:plain=
"true"
text=
"
继续购买
"
@
click=
"goPath('')"
></u-button>
<u-button
type=
"primary"
color=
"#61b077"
:plain=
"true"
text=
"
回到商城
"
@
click=
"goPath('')"
></u-button>
</view>
</view>
</view>
...
...
@@ -24,7 +25,11 @@
</
template
>
<
script
>
import
http
from
'
@/shopro/request/index
'
;
import
shCustomNav
from
'
@/components/sh-custom-nav/sh-custom-nav
'
;
export
default
{
components
:{
shCustomNav
},
data
()
{
return
{
params
:{},
...
...
@@ -32,7 +37,10 @@
payStatus
:
'
pending
'
,
payTips
:
"
等待中
"
,
orderId
:
""
,
isPay
:
false
isPay
:
false
,
info
:{
title
:
'
支付
'
}
}
},
methods
:
{
...
...
@@ -77,16 +85,23 @@
}
})
}
},
goback
:
function
()
{
// var pages = getCurrentPages();
// console.log(666,pages);
// wx.navigateBack({
// delta: pages.length-2
// })
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
));
},
onLaunch
(){
console
.
log
(
"
关闭
"
)
}
}
...
...
@@ -94,12 +109,12 @@
<
style
lang=
"scss"
scoped
>
.pay-container
{
.money-box
{
font-size
:
28
rpx
;
font-size
:
34
rpx
;
font-weight
:
bold
;
margin
:
100rpx
0
;
text-align
:
center
;
.money
{
font-size
:
48
rpx
;
font-size
:
60
rpx
;
}
}
::v-deep
.u-button
{
...
...
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