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
b49a0dae
Commit
b49a0dae
authored
Aug 02, 2024
by
彭佳妮(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
申请退款
parent
68515846
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
3 deletions
+40
-3
pages.json
src/pages.json
+7
-0
refund.vue
src/pages/order/refund.vue
+20
-0
index.vue
src/pages/ticket/components/TicketList/index.vue
+8
-1
detail.vue
src/pages/ticket/detail.vue
+5
-2
No files found.
src/pages.json
View file @
b49a0dae
...
@@ -85,6 +85,13 @@
...
@@ -85,6 +85,13 @@
"navigationBarTitleText"
:
"美食评论"
"navigationBarTitleText"
:
"美食评论"
}
}
}
}
,
{
"path"
:
"pages/order/refund"
,
"style"
:
{
"navigationBarTitleText"
:
"申请退款"
}
}
],
],
"globalStyle"
:
{
"globalStyle"
:
{
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
...
...
src/pages/order/refund.vue
0 → 100644
View file @
b49a0dae
<
template
>
<view
class=
"container"
>
<Header
title=
"申请退款"
></Header>
</view>
</
template
>
<
script
setup
>
import
Header
from
'@/pages/order/components/Header/index.vue'
;
</
script
>
<
style
lang=
"scss"
scoped
>
page
{
background
:
#f3f3f3
;
}
.container
{
width
:
375
*
2rpx
;
margin
:
0
auto
;
}
</
style
>
src/pages/ticket/components/TicketList/index.vue
View file @
b49a0dae
<
template
>
<
template
>
<!-- 优惠券列表 -->
<!-- 优惠券列表 -->
<view
class=
"ticket-list"
>
<view
class=
"ticket-list"
v-if=
"couponData.length"
>
<view
class=
"ticket-item"
>
<view
class=
"ticket-item"
>
<view
class=
"ticket-box"
>
<view
class=
"ticket-box"
>
<view
class=
"normal ticket-left"
>
<view
class=
"normal ticket-left"
>
...
@@ -95,9 +95,16 @@
...
@@ -95,9 +95,16 @@
</view>
</view>
</view>
</view>
</view>
</view>
<wd-status-tip
image=
"content"
tip=
"暂无优惠券"
v-else
/>
</
template
>
</
template
>
<
script
setup
>
<
script
setup
>
const
props
=
defineProps
({
couponData
:
{
type
:
Array
,
},
});
const
showDetail
=
ref
(
false
);
const
showDetail
=
ref
(
false
);
const
changeShowDetail
=
()
=>
{
const
changeShowDetail
=
()
=>
{
...
...
src/pages/ticket/detail.vue
View file @
b49a0dae
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</view>
</view>
<!-- 优惠券列表 -->
<!-- 优惠券列表 -->
<TicketList></TicketList>
<TicketList
:couponData=
"couponData"
></TicketList>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -72,9 +72,12 @@ onShow(() => {
...
@@ -72,9 +72,12 @@ onShow(() => {
onLoad
(()
=>
{});
onLoad
(()
=>
{});
const
shopId
=
ref
(
'1626126617850544129'
);
const
shopId
=
ref
(
'1626126617850544129'
);
const
couponData
=
ref
();
const
getList
=
async
()
=>
{
const
getList
=
async
()
=>
{
const
res
=
await
shopCouponList
(
shopId
.
value
);
const
res
=
await
shopCouponList
(
shopId
.
value
);
console
.
log
(
res
);
if
(
res
.
code
===
0
)
{
couponData
.
value
=
res
.
data
;
}
};
};
getList
();
getList
();
...
...
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