申请退款

parent 68515846
...@@ -85,6 +85,13 @@ ...@@ -85,6 +85,13 @@
"navigationBarTitleText": "美食评论" "navigationBarTitleText": "美食评论"
} }
} }
,
{
"path": "pages/order/refund",
"style": {
"navigationBarTitleText": "申请退款"
}
}
], ],
"globalStyle": { "globalStyle": {
"navigationStyle": "custom" "navigationStyle": "custom"
......
<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>
<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 = () => {
......
...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment