补充个人中心页面api & 首页弹唱查看活动 & 联系客服

This commit is contained in:
Eamon
2026-09-08 16:19:40 +08:00
parent f59e929843
commit 7f03dbfb56
45 changed files with 2146 additions and 1359 deletions

View File

@@ -18,14 +18,14 @@ import { Label } from "@/components/ui/label"
export type EditInfoValues = {
qq: string
wechat: string
taobao: string
// taobao: string
email: string
}
const editInfoSchema = z.object({
qq: z.string(),
wechat: z.string(),
taobao: z.string(),
// taobao: z.string(),
email: z
.string()
.refine(
@@ -44,7 +44,7 @@ interface EditInfoDialogProps {
const DEFAULT_INITIAL_DATA: EditInfoValues = {
qq: "",
wechat: "",
taobao: "",
// taobao: "",
email: "",
}
@@ -72,7 +72,7 @@ export function EditInfoDialog({
const res = await updateUserInfo({
QQ: data.qq,
Wx: data.wechat,
TaoBao: data.taobao,
// TaoBao: data.taobao,
Email: data.email,
})
setSubmitting(false)
@@ -118,7 +118,7 @@ export function EditInfoDialog({
/>
</div>
<div className="space-y-1.5">
{/* <div className="space-y-1.5">
<Label className="text-sm text-gray-600">淘宝会员名</Label>
<Controller
name="taobao"
@@ -127,7 +127,7 @@ export function EditInfoDialog({
<Input {...field} className="h-11 bg-gray-50 border-gray-200" />
)}
/>
</div>
</div> */}
<div className="space-y-1.5">
<Label className="text-sm text-gray-600">邮箱</Label>