Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
yoho-miniapp-ufo
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
QC-L
6 years ago
Commit
f207f1143815ff7e28f90ee4fd9f2bd6f17205f4
1 parent
4fa5db6c
修改订单支付成功页面没有数据的问题 review by 黄敬囿
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
8 deletions
src/components/resource-category/index.scss
src/pages/order/orderSuccess/orderSuccess.js
src/pages/orderDetail/index.js
src/pages/orderDetail/index.json
src/router/index.js
src/components/resource-category/index.scss
View file @
f207f11
...
...
@@ -19,6 +19,7 @@
.more
{
font-family
:
SFProText-Medium
;
font-weight
:
500
;
font-size
:
28px
;
color
:
#000
;
display
:
flex
;
...
...
src/pages/order/orderSuccess/orderSuccess.js
View file @
f207f11
...
...
@@ -17,6 +17,7 @@ Page({
paySuccessText
:
'支付成功!'
,
compensale
:
''
,
_triggerObserer
:
true
,
orderCode
:
0
},
onLoad
:
function
(
option
)
{
...
...
@@ -29,6 +30,9 @@ Page({
if
(
orderCode
){
this
.
fetchComputeCompensate
(
orderCode
)
}
this
.
setData
({
orderCode
})
}
},
...
...
@@ -75,7 +79,8 @@ Page({
lookAround
:
function
()
{
wx
.
navigateBack
({
delta
:
getCurrentPages
().
length
-
1
})
});
router
.
go
(
'home'
,
null
,
'switchTab'
);
},
checkOrderClick
:
function
()
{
...
...
@@ -84,6 +89,4 @@ Page({
}
router
.
go
(
'orderDetail'
,
params
);
},
})
...
...
src/pages/orderDetail/index.js
View file @
f207f11
...
...
@@ -101,12 +101,14 @@ Page({
if
(
data
.
goodsInfo
&&
data
.
goodsInfo
.
goodImg
){
data
.
goodsInfo
.
goodImg
=
getImgUrl
(
data
.
goodsInfo
.
goodImg
,
90
,
90
);
}
let
buttons
=
data
.
buttons
;
let
lastIndex
=
buttons
.
length
-
1
;
let
lastIndex
=
0
;
if
(
data
&&
data
.
buttons
&&
data
.
buttons
.
length
>
0
)
{
lastIndex
=
data
.
buttons
.
length
-
1
;
}
that
.
setData
({
data
,
lastIndex
:
lastIndex
});
});
if
(
data
.
statusDetail
&&
data
.
statusDetail
.
leftTime
){
let
leftTime
=
data
.
statusDetail
.
leftTime
;
...
...
src/pages/orderDetail/index.json
View file @
f207f11
{
"navigationBarTitleText"
:
"订单详情"
,
"usingComponents"
:
{
"orderproductinfo"
:
"../../components/order/orderproductinfo"
,
"orderdetailaction"
:
"../../components/order/orderaction"
...
...
src/router/index.js
View file @
f207f11
...
...
@@ -22,7 +22,7 @@ export default {
go
(
name
,
query
,
jumpType
)
{
const
jump
=
jumpType
?
jumpType
:
'navigateTo'
;
const
rule
=
rules
[
name
];
console
.
log
(
name
);
if
(
!
rule
)
{
return
Promise
.
reject
(
`路由规则未匹配到
:
$
{
name
}
`
);
}
...
...
Please
register
or
login
to post a comment