Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
groupPurchase-miniapp
Project
Project
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
彭佳妮(贵阳日报)
groupPurchase-miniapp
Commits
1dca7e6c
Commit
1dca7e6c
authored
Aug 19, 2024
by
张娇(东信)
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
93fc46f9
7fd5f24d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
429 additions
and
1 deletion
+429
-1
order.js
src/api/order.js
+18
-0
pages.json
src/pages.json
+6
-0
addressList.vue
src/pages/address/addressList.vue
+5
-1
afterSales.vue
src/pages/assistingAgriculture/order/afterSales.vue
+400
-0
No files found.
src/api/order.js
View file @
1dca7e6c
...
@@ -122,3 +122,21 @@ export function confirmReceipt(data) {
...
@@ -122,3 +122,21 @@ export function confirmReceipt(data) {
method
:
'POST'
,
method
:
'POST'
,
});
});
}
}
// 退换货填写物流单号
export
function
fillGoodsInfo
(
data
)
{
return
request
({
url
:
'/sgyrdd/sgyOrder/afterSales/goodsInfo'
,
method
:
'POST'
,
data
,
});
}
// 售后撤销申请
export
function
revokeApplication
(
data
)
{
return
request
({
url
:
'/sgyrdd/sgyOrder/afterSales/revoke'
,
method
:
'POST'
,
data
,
});
}
src/pages.json
View file @
1dca7e6c
...
@@ -269,6 +269,12 @@
...
@@ -269,6 +269,12 @@
"navigationBarTitleText"
:
"评论"
,
"navigationBarTitleText"
:
"评论"
,
"enablePullDownRefresh"
:
true
"enablePullDownRefresh"
:
true
}
}
},
{
"path"
:
"pages/assistingAgriculture/order/afterSales"
,
"style"
:
{
"navigationBarTitleText"
:
"售后详情"
}
}
}
],
],
"globalStyle"
:
{
"globalStyle"
:
{
...
...
src/pages/address/addressList.vue
View file @
1dca7e6c
...
@@ -57,7 +57,11 @@ const getAddressListData = async () => {
...
@@ -57,7 +57,11 @@ const getAddressListData = async () => {
}
}
};
};
onLoad
(()
=>
{});
onLoad
(()
=>
{});
getAddressListData
();
onShow
(()
=>
{
getAddressListData
();
});
const
addNewAddress
=
()
=>
{
const
addNewAddress
=
()
=>
{
xma
.
navigateTo
({
url
:
'/pages/address/addressEdit?new=true'
});
xma
.
navigateTo
({
url
:
'/pages/address/addressEdit?new=true'
});
};
};
...
...
src/pages/assistingAgriculture/order/afterSales.vue
0 → 100644
View file @
1dca7e6c
<
template
>
<Search
title=
"售后详情"
backgroundBox=
"white"
:showTitle=
"true"
></Search>
<view
class=
"container"
>
<view
class=
"content"
>
<view
class=
"headbox"
>
<view
class=
"h-between"
>
<text>
退款金额
</text>
<text>
¥198.00
</text>
</view>
<text
class=
"detail"
>
申请通过后退回原账户
</text>
</view>
<view
class=
"steps"
>
<wd-steps
vertical
>
<wd-step>
<template
#
icon
>
<view
class=
"dot-red"
>
<wd-icon
name=
"check"
size=
"22rpx"
color=
"#fff"
></wd-icon>
</view>
</
template
>
<
template
#
title
>
<view
class=
"titlebox"
>
<text
class=
"title"
>
申请售后
</text>
</view>
</
template
>
<
template
#
description
>
<view
class=
"descbox"
>
<text
class=
"desc"
>
售后申请已提交
</text>
<text
class=
"desc"
>
2024-08-14 14:47:30
</text>
</view>
</
template
>
</wd-step>
<wd-step>
<
template
#
icon
>
<view
class=
"dot-red"
>
<wd-icon
name=
"check"
size=
"22rpx"
color=
"#fff"
></wd-icon>
</view>
</
template
>
<
template
#
title
>
<view
class=
"titlebox"
>
<text
class=
"title t-red"
>
请等待商家处理
</text>
<view
class=
"timebox"
>
<text
class=
"time"
>
剩余:
</text>
<wd-count-down
:time=
"time"
/>
</view>
</view>
</
template
>
<
template
#
description
>
<view
class=
"descbox"
>
<text
class=
"desc"
>
您已成功发起售后申请,请耐心等待商家处理。
如果商家拒绝,您可以修改售后申请后再次发起,商家会 重新处理。
</text>
</view>
</
template
>
</wd-step>
<wd-step>
<
template
#
icon
>
<view
class=
"dot-red"
>
<wd-icon
name=
"check"
size=
"22rpx"
color=
"#fff"
></wd-icon>
</view>
</
template
>
<
template
#
title
>
<view
class=
"titlebox"
>
<text
class=
"title"
>
请输入退货商品运单编号
</text>
</view>
</
template
>
<
template
#
description
>
<view
class=
"inputbox"
>
<input
class=
"text"
type=
"text"
placeholder=
"请输入退货商品运单编号"
placeholder-style=
"font-size:24rpx;"
/>
<view
class=
"btn"
>
提交
</view>
</view>
</
template
>
</wd-step>
<wd-step>
<
template
#
icon
>
<view
class=
"dot-red"
>
<wd-icon
name=
"close"
size=
"22rpx"
color=
"#fff"
></wd-icon>
</view>
</
template
>
<
template
#
title
>
<view
class=
"titlebox"
>
<text
class=
"title"
>
已取消
</text>
</view>
</
template
>
<
template
#
description
>
<view
class=
"descbox"
>
<text
class=
"desc"
>
2024-08-14 14:47:30
</text>
</view>
</
template
>
</wd-step>
</wd-steps>
</view>
<view
class=
"info"
>
<text
class=
"title"
>
售后信息
</text>
<view
class=
"infobox"
>
<image
src=
"@/static/ticket/logo.png"
mode=
"aspectFill"
class=
"img"
></image>
<view
class=
"right"
>
<text>
商品名称商品名称商品名称商品名 商品名称商品名称商品名称商品名 商品名称商品名称
</text>
<text
class=
"num"
>
x1
</text>
</view>
</view>
<view
class=
"reasonbox"
>
<view
class=
"r-between"
>
<text
class=
"title"
>
申请时间:
</text>
<text
class=
"detail"
>
2024-08-14 14:50:35
</text>
</view>
<view
class=
"r-between"
>
<text
class=
"title"
>
售后原因:
</text>
<text
class=
"detail"
>
这是售后原因最多好像只有这么多字就得隐藏了
</text>
</view>
<view
class=
"r-between"
>
<text
class=
"title"
>
订单号:
</text>
<text
class=
"detail"
>
14171819161415723312454
</text>
</view>
</view>
</view>
<view
style=
"height: 160rpx"
></view>
</view>
<view
class=
"footer"
>
<view
class=
"btn"
>
撤销申请
</view>
<view
class=
"btn-warning"
>
修改申请
</view>
</view>
</view>
</template>
<
script
setup
>
import
{
afterSale
,
fillGoodsInfo
,
revokeApplication
}
from
'@/api/order'
;
const
time
=
ref
(
30
*
60
*
60
*
1000
);
</
script
>
<
style
lang=
"scss"
scoped
>
page
{
background
:
#f3f3f3
;
}
.container
{
width
:
375
*
2rpx
;
margin
:
0
auto
;
.content
{
display
:
flex
;
flex-direction
:
column
;
padding
:
10rpx
20rpx
;
gap
:
10rpx
;
.headbox
{
display
:
flex
;
flex-direction
:
column
;
background-color
:
#fff
;
border-radius
:
16rpx
;
padding
:
40rpx
40rpx
40rpx
28rpx
;
gap
:
10rpx
;
.h-between
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
text
{
font-family
:
Microsoft
YaHei
;
font-weight
:
700
;
font-size
:
32rpx
;
color
:
#3d3d3d
;
}
}
.detail
{
font-family
:
Microsoft
YaHei
;
font-weight
:
400
;
font-size
:
24rpx
;
color
:
#abaaaa
;
}
}
.steps
{
background-color
:
#fff
;
border-radius
:
16rpx
;
padding
:
40rpx
40rpx
0
;
:deep
(
.wd-step__line
)
{
background-color
:
#fa5151
;
left
:
32%
;
}
.dot-red
{
height
:
40rpx
;
width
:
40rpx
;
border-radius
:
50%
;
background-color
:
#fa5151
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.titlebox
{
display
:
flex
;
align-items
:
center
;
gap
:
20rpx
;
.title
{
font-family
:
Microsoft
YaHei
;
font-weight
:
400
;
font-size
:
28rpx
;
color
:
#3d3d3d
;
}
.t-red
{
font-family
:
Microsoft
YaHei
;
font-weight
:
700
;
font-size
:
30rpx
;
color
:
#fa5151
;
}
.timebox
{
display
:
flex
;
align-items
:
center
;
.wd-count-down
{
color
:
#ff0909
;
font-size
:
24rpx
;
}
.time
{
font-family
:
Microsoft
YaHei
;
font-weight
:
400
;
font-size
:
24rpx
;
color
:
#fa5151
;
}
}
}
.descbox
{
display
:
flex
;
flex-direction
:
column
;
gap
:
20rpx
;
.desc
{
font-family
:
Microsoft
YaHei
;
font-weight
:
400
;
font-size
:
22rpx
;
color
:
#abaaaa
;
line-height
:
30rpx
;
}
}
.inputbox
{
display
:
flex
;
align-items
:
center
;
position
:
relative
;
.text
{
margin-left
:
10rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
font-size
:
24rpx
;
background-color
:
#f3f3f3
;
padding
:
16rpx
20rpx
;
width
:
100%
;
color
:
#000
;
}
.btn
{
background-color
:
#fa5151
;
color
:
#fff
;
border-radius
:
6rpx
;
padding
:
14rpx
28rpx
;
text-align
:
center
;
font-family
:
Microsoft
YaHei
;
font-weight
:
700
;
font-size
:
24rpx
;
position
:
absolute
;
right
:
2rpx
;
}
}
}
.info
{
display
:
flex
;
flex-direction
:
column
;
background-color
:
#fff
;
border-radius
:
16rpx
;
padding
:
20rpx
;
gap
:
20rpx
;
.title
{
font-family
:
Microsoft
YaHei
;
font-weight
:
400
;
font-size
:
36rpx
;
color
:
#3d3d3d
;
}
.infobox
{
display
:
flex
;
gap
:
20rpx
;
.img
{
width
:
216rpx
;
height
:
216rpx
;
border-radius
:
10rpx
;
}
.right
{
display
:
flex
;
flex-direction
:
column
;
gap
:
20rpx
;
text
{
font-family
:
Microsoft
YaHei
;
font-weight
:
400
;
font-size
:
28rpx
;
color
:
#3d3d3d
;
line-height
:
36rpx
;
max-width
:
420rpx
;
}
.num
{
color
:
#abaaaa
;
line-height
:
28rpx
;
}
}
}
.reasonbox
{
display
:
flex
;
flex-direction
:
column
;
gap
:
20rpx
;
.r-between
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
.title
{
font-family
:
Microsoft
YaHei
;
font-weight
:
400
;
font-size
:
24rpx
;
color
:
#abaaaa
;
}
.detail
{
font-family
:
Microsoft
YaHei
;
font-weight
:
400
;
font-size
:
24rpx
;
color
:
#3d3d3d
;
max-width
:
474rpx
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
}
}
}
}
.footer
{
position
:
fixed
;
bottom
:
0
;
background-color
:
#fff
;
width
:
100%
;
z-index
:
10
;
display
:
flex
;
justify-content
:
flex-end
;
gap
:
20rpx
;
padding
:
20rpx
38rpx
60rpx
;
box-sizing
:
border-box
;
.btn
{
border-radius
:
40rpx
;
color
:
#908f8f
;
font-size
:
28rpx
;
text-align
:
center
;
padding
:
22rpx
72rpx
;
border
:
2rpx
solid
#908f8f
;
}
.btn-warning
{
background-color
:
#ff8f1f
;
border-radius
:
40rpx
;
color
:
#fff
;
font-size
:
28rpx
;
font-size
:
28rpx
;
text-align
:
center
;
padding
:
22rpx
72rpx
;
}
}
}
</
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