移除摸大红支付后建群逻辑,仅保留扫码与复制

支付成功只固化客服二维码与订单文案;同步清理迁移、配置与前后端相关字段。
This commit is contained in:
yml2213
2026-07-16 19:52:40 +08:00
parent 094a91c985
commit e07532a188
17 changed files with 16 additions and 192 deletions
@@ -14,7 +14,6 @@ const loading = ref(false)
const saving = ref(false)
const form = reactive<MohongConfig>({
default_qrcode_url: '',
group_welcome_text: '',
order_copy_template: '',
})
@@ -37,7 +36,6 @@ async function handleSave() {
try {
const config = await updateAdminMohongConfig({
default_qrcode_url: form.default_qrcode_url,
group_welcome_text: form.group_welcome_text,
order_copy_template: form.order_copy_template,
})
Object.assign(form, config)
@@ -66,7 +64,7 @@ async function uploadQrcode(file: File) {
<div class="page-head">
<div>
<h2>摸大红配置</h2>
<p>全局默认固定二维码群欢迎语订单复制模板商品可覆盖默认二维码</p>
<p>全局默认固定二维码订单复制模板商品可覆盖默认二维码支付后用户在订单详情扫码并复制信息联系客服</p>
</div>
<el-button type="primary" :loading="saving" @click="handleSave">保存配置</el-button>
</div>
@@ -88,9 +86,6 @@ async function uploadQrcode(file: File) {
</div>
</div>
</el-form-item>
<el-form-item label="群欢迎语">
<el-input v-model="form.group_welcome_text" type="textarea" :rows="3" />
</el-form-item>
<el-form-item label="复制文案模板">
<el-input v-model="form.order_copy_template" type="textarea" :rows="8" />
<div class="hint">
@@ -174,9 +174,6 @@ async function copyText(text: string) {
<el-descriptions-item label="买家">
{{ detail.buyer_nickname }} {{ detail.buyer_phone }}
</el-descriptions-item>
<el-descriptions-item label="会话ID">
{{ detail.conversation_id || '-' }}
</el-descriptions-item>
</el-descriptions>
<div v-if="detail.copy_text" class="copy-box">
<div class="copy-head">
@@ -50,7 +50,6 @@ export interface MohongOrder {
product_unit: string
qrcode_url_snapshot: string
copy_text: string
conversation_id?: number | null
buyer_nickname?: string
buyer_phone?: string
admin_remark?: string
@@ -64,7 +63,6 @@ export interface MohongOrder {
export interface MohongConfig {
default_qrcode_url: string
group_welcome_text: string
order_copy_template: string
}
@@ -102,13 +102,6 @@ async function copyText() {
}
}
function openChat() {
if (!order.value?.conversation_id) {
showToast({ message: '群聊尚未创建', icon: 'warning-o' })
return
}
router.push(`/chats/${order.value.conversation_id}`)
}
</script>
<template>
@@ -177,16 +170,6 @@ function openChat() {
>
取消订单
</van-button>
<van-button
v-if="order.conversation_id"
type="primary"
color="#ff6a00"
block
round
@click="openChat"
>
进入订单群
</van-button>
<van-button v-if="order.copy_text" plain block round @click="copyText">
复制订单信息
</van-button>
@@ -223,8 +223,8 @@ async function handleBuy() {
<p>购买须知</p>
<ul>
<li>下单需登录并完成实名认证</li>
<li>支付成功后自动创建订单群发送固定客服二维码</li>
<li>群内与订单详情一键复制订单信息发给客服</li>
<li>支付成功后可在订单详情扫码联系客服</li>
<li>订单详情支持一键复制订单信息发给客服</li>
</ul>
</div>
</div>
@@ -155,7 +155,7 @@ const activeCategoryName = () => {
<div class="title-block">
<h1>摸大红</h1>
<span class="count">{{ total }} </span>
<span class="tip">{{ activeCategoryName() }} · 支付后自动进群</span>
<span class="tip">{{ activeCategoryName() }} · 支付后扫码联系客服</span>
</div>
<div class="actions">
<div class="search-box">
@@ -123,13 +123,6 @@ async function copyText() {
}
}
function openChat() {
if (!order.value?.conversation_id) {
ElMessage.warning('群聊尚未创建')
return
}
router.push(`/messages/${order.value.conversation_id}`)
}
</script>
<template>
@@ -197,14 +190,6 @@ function openChat() {
>
取消订单
</button>
<button
v-if="order.conversation_id"
type="button"
class="btn outline"
@click="openChat"
>
进入订单群
</button>
<button v-if="order.copy_text" type="button" class="btn outline" @click="copyText">
复制订单信息
</button>