接入微信订阅消息并完善预约通知
自动发布开发环境 Nacos 配置 / publish (push) Successful in 20s

This commit is contained in:
2026-11-02 12:11:23 +08:00
parent 3e439543bc
commit 19ca9e2965
29 changed files with 721 additions and 18 deletions
@@ -1,8 +1,8 @@
<script setup lang="ts">
import { computed, onMounted, ref } from 'vue'
import { computed, h, onMounted, ref } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { LeftOutlined } from '@ant-design/icons-vue'
import { message, Modal } from 'ant-design-vue'
import { Input, message, Modal } from 'ant-design-vue'
import { afterSaleApi, orderApi } from '../api/order'
import type { AfterSaleVO, OrderArtistChangeRequestVO, OrderArtistReviewVO } from '../api/order'
import { userApi, type ContactInfoVO } from '@/api/user'
@@ -196,11 +196,21 @@ const confirmQuote = () => {
const cancelOrder = () => {
if (!order.value?.id) return
const cancelReason = ref('')
Modal.confirm({
title: '取消订单',
content: '确认取消这笔订单吗?',
content: h('div', [
h('p', { style: 'margin-bottom: 12px' }, '确认取消这笔订单吗?'),
h(Input.TextArea, {
rows: 3,
maxlength: 255,
showCount: true,
placeholder: '可填写取消原因',
'onUpdate:value': (value: string) => { cancelReason.value = value }
})
]),
onOk: async () => {
await runWithGlobalLoading(() => orderApi.cancelOrder(order.value.id as IdType))
await runWithGlobalLoading(() => orderApi.cancelOrder(order.value.id as IdType, cancelReason.value.trim()))
message.success('订单已取消')
await loadOrder()
}