diff --git a/src/api/index.js b/src/api/index.js index 6bce0cd..a2bbcab 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -107,6 +107,10 @@ export const unsubscribeReportReminder = (unsubscribeToken) => export const getReportLeads = (storeId, status = 'pending') => get('/report/leads', { storeId, status }) +// 报告页:宠主寄语(生成海报前提交,供口碑墙) +export const submitReportTestimonial = (token, content, isPublic = true) => + post(`/report/${encodeURIComponent(token)}/testimonial`, { content, isPublic }) + // 服务类型列表(不传 storeId 时仅返回系统默认,供未写入门店会话的 C 端展示) export const getServiceTypeList = (storeId) => { const params = {} diff --git a/src/components/report/TestimonialModal.vue b/src/components/report/TestimonialModal.vue new file mode 100644 index 0000000..13f1d64 --- /dev/null +++ b/src/components/report/TestimonialModal.vue @@ -0,0 +1,150 @@ +