Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
user
Overview
Overview
Details
Activity
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
hooloo
mp
user
Commits
664a6ff7
Commit
664a6ff7
authored
Jul 21, 2022
by
songbingqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成退款流程页面开发
parent
f5556cca
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
268 additions
and
4 deletions
+268
-4
orderSubPackage/pages/refundInfo/index.vue
+224
-0
pages.json
+7
-0
pages/order/order.vue
+37
-4
No files found.
orderSubPackage/pages/refundInfo/index.vue
0 → 100644
View file @
664a6ff7
<
template
>
<view
class=
"big"
>
<view
class=
"refundStep"
>
<view
class=
"refund_title"
>
退款进程
</view>
<view
class=
"refund_list"
>
<view
:class=
"item.status===1?'refund_item_action':'refund_item'"
v-for=
"(item,index) in newList"
:key=
"index"
>
<view
class=
"item"
>
<view
:class=
"item.status===1?'refund_info_action':'refund_info'"
>
<view
:class=
"item.status===1?'info_ciycle_action':'info_ciycle'"
></view>
<view
class=
"info_text"
>
<view
:class=
"item.status===1?'info_title_action':'info_title'"
>
{{
item
.
title
}}
</view>
<view
:class=
"item.status===1?'info_time_action':'info_time'"
>
2022年6月2日09:35:27
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"morInfo"
v-if=
"list.length>4"
@
click=
"watchMore"
>
更多退款信息
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
flag
:
false
,
list
:[
{
title
:
'退款成功'
,
time
:
'2022年6月2日09:35:27'
,
status
:
0
},
{
title
:
'退款中'
,
time
:
'2022年6月2日09:35:27'
,
status
:
1
},
{
title
:
'审核中'
,
time
:
'2022年6月2日09:35:27'
,
status
:
0
},
{
title
:
'退款申请已提交'
,
time
:
'2022年6月2日09:35:27'
,
status
:
0
},
{
title
:
'退款申请已提交'
,
time
:
'2022年6月2日09:35:27'
,
status
:
0
},
],
oldList
:[],
newList
:[]
};
},
mounted
()
{
if
(
this
.
list
.
length
>
4
){
this
.
newList
=
[...
this
.
list
].
splice
(
0
,
4
)
this
.
flag
=
false
}
else
{
this
.
newList
=
this
.
list
}
},
methods
:{
watchMore
(){
if
(
this
.
flag
){
this
.
newList
=
[...
this
.
list
].
splice
(
0
,
4
)
}
else
{
this
.
newList
=
this
.
list
}
this
.
flag
=
!
this
.
flag
}
}
};
</
script
>
<
style
scoped
lang=
"scss"
>
.big
{
background
:
#F8F8F8
;
padding-top
:
32
rpx
;
height
:
100vh
;
}
.refundStep
{
background
:
white
;
margin
:
0
rpx
32
rpx
32
rpx
32
rpx
;
padding-bottom
:
32
rpx
;
overflow
:
hidden
;
.refund_title
{
margin
:
38
rpx
30
rpx
;
height
:
44
rpx
;
margin-bottom
:
42
rpx
;
font-size
:
32
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#333333
;
line-height
:
44
rpx
;
}
.refund_list
{
margin
:
0
rpx
32
rpx
0
rpx
35
rpx
;
.refund_item
{
height
:
100
rpx
;
border-left
:
2
rpx
solid
#ECECEC
;
.item
{
position
:
relative
;
.refund_info
{
width
:
622
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
position
:
absolute
;
top
:
-12
rpx
;
left
:
-8
rpx
;
.info_ciycle
{
width
:
18
rpx
;
height
:
16
rpx
;
border
:
2
rpx
solid
#ECECEC
;
background-color
:
white
;
border-radius
:
50%
;
box-sizing
:
border-box
;
}
.info_text
{
width
:
100%
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
margin-left
:
40
rpx
;
.info_title
{
font-size
:
24
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#999999
;
}
.info_time
{
font-size
:
20
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#999999
;
}
}
}
}
}
.refund_item_action
{
height
:
100
rpx
;
border-left
:
2
rpx
solid
#ECECEC
;
.item
{
position
:
relative
;
.refund_info_action
{
width
:
622
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
position
:
absolute
;
top
:
-12
rpx
;
left
:
-10
rpx
;
.info_ciycle_action
{
width
:
22
rpx
;
height
:
20
rpx
;
background
:
#0050f6
;
//
border
:
1
rpx
solid
red
;
border-radius
:
50%
;
box-sizing
:
border-box
;
}
.info_text
{
width
:
100%
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
margin-left
:
40
rpx
;
.info_title_action
{
font-size
:
24
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#333333
;
}
.info_time_action
{
font-size
:
20
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#333333
;
}
}
}
}
}
.refund_item
:last-child
{
height
:
25
rpx
;
border
:
1px
solid
rgba
(
255
,
255
,
255
,
0
);
}
.refund_item_action
:last-child
{
height
:
25
rpx
;
border
:
1px
solid
rgba
(
255
,
255
,
255
,
0
);
}
}
.morInfo
{
margin-top
:
40
rpx
;
margin-right
:
32
rpx
;
text-align
:
right
;
font-size
:
24
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#0050F6
;
line-height
:
34
rpx
;
}
}
</
style
>
\ No newline at end of file
pages.json
View file @
664a6ff7
...
...
@@ -72,6 +72,13 @@
"navigationBarTitleText"
:
"我的HOOLOO券"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/refundInfo/index"
,
"style"
:
{
"navigationBarTitleText"
:
"退款详情"
,
"enablePullDownRefresh"
:
false
}
}
]
},
...
...
pages/order/order.vue
View file @
664a6ff7
...
...
@@ -42,8 +42,9 @@
<span
v-if=
"index!=jsonParse(good.specRuleDetail).length-1"
>
/
</span>
</span>
</view>
<view>
<view
class=
"numbox"
>
×
{{
good
.
num
}}
<a
class=
"btntk"
v-if=
"checkStatus(item.state,[12,13,14,15])&&(index+1)===item.orderDetails.length"
@
click
.
stop=
"refundInfo(item)"
type=
"primary"
>
退款详情
</a>
</view>
</view>
</view>
...
...
@@ -54,7 +55,7 @@
</view>
</view>
</div>
<view
class=
"order_footer"
>
<view
class=
"order_footer"
:style=
"
{'margin-top':checkStatus(item.state,[12,13,14,15])?'16rpx':'39rpx'}"
>
<view
class=
"total"
>
共
{{
orderDetailsSize
(
item
.
orderDetails
)
}}
件商品 实付
<text
class=
"price"
>
¥
{{
Utils
.
isInteger
(
item
.
amount
)
}}
</text>
</view>
...
...
@@ -106,6 +107,19 @@ export default {
}
},
methods
:
{
refundInfo
(
item
)
{
const
{
id
}
=
item
uni
.
setStorageSync
(
'orderId'
,
id
);
let
url
=
'/orderSubPackage/pages/refundInfo/index'
uni
.
navigateTo
({
url
})
},
checkStatus
(
status
,
list
){
if
(
list
.
includes
(
Number
(
status
))){
return
true
}
else
{
return
false
}
},
getStateText
(
state
)
{
state
=
''
+
state
;
switch
(
state
)
{
...
...
@@ -421,7 +435,7 @@ export default {
}
.goods_spce
{
margin-top
:
2
rpx
;
margin-top
:
2
.62
rpx
;
font-size
:
24
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
...
...
@@ -429,7 +443,26 @@ export default {
color
:
#999999
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
flex-start
;
.numbox{
display
:
flex
;
.btntk
{
box-sizing
:
border-box
;
width
:
167
rpx
;
height
:
64
rpx
;
line-height
:
64
rpx
;
border-radius
:
2
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
border
:
2
rpx
solid
#0050F6
;
font-size
:
24
rpx
;
margin
:
0
;
margin-left
:
17
rpx
;
color
:
#0050F6
;
font-weight
:
400
;
text-align
:
center
;
}
}
}
}
}
...
...
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