feat: 本次提交更新内容如下

场景获客列表搞定
This commit is contained in:
2025-07-07 17:08:27 +08:00
parent 6543da9167
commit 5ff15472f5
352 changed files with 24040 additions and 18575 deletions

View File

@@ -10,12 +10,9 @@ interface BasicSettingsProps {
taskName: string
likeInterval: number
maxLikesPerDay: number
friendMaxLikes: number
timeRange: { start: string; end: string }
contentTypes: string[]
enabled: boolean
enableFriendTags: boolean
friendTags: string
}
onChange: (data: Partial<BasicSettingsProps["formData"]>) => void
onNext: () => void
@@ -40,19 +37,11 @@ export function BasicSettings({ formData, onChange, onNext }: BasicSettingsProps
}
const incrementMaxLikes = () => {
onChange({ maxLikesPerDay: Math.min(formData.maxLikesPerDay + 100, 10000) })
onChange({ maxLikesPerDay: Math.min(formData.maxLikesPerDay + 10, 500) })
}
const decrementMaxLikes = () => {
onChange({ maxLikesPerDay: Math.max(formData.maxLikesPerDay - 100, 10) })
}
const incrementFriendMaxLikes = () => {
onChange({ friendMaxLikes: Math.min(formData.friendMaxLikes + 1, 20) })
}
const decrementFriendMaxLikes = () => {
onChange({ friendMaxLikes: Math.max(formData.friendMaxLikes - 1, 1) })
onChange({ maxLikesPerDay: Math.max(formData.maxLikesPerDay - 10, 10) })
}
return (
@@ -124,7 +113,7 @@ export function BasicSettings({ formData, onChange, onNext }: BasicSettingsProps
id="max-likes"
type="number"
min={10}
max={10000}
max={500}
value={formData.maxLikesPerDay}
onChange={(e) => onChange({ maxLikesPerDay: Number.parseInt(e.target.value) || 10 })}
className="h-12 rounded-none border-x-0 border-gray-200 text-center"
@@ -143,46 +132,7 @@ export function BasicSettings({ formData, onChange, onNext }: BasicSettingsProps
<Plus className="h-5 w-5" />
</Button>
</div>
<p className="text-xs text-gray-500">(10000)</p>
</div>
<div className="space-y-2">
<Label htmlFor="friend-max-likes"></Label>
<div className="flex items-center">
<Button
type="button"
variant="outline"
size="icon"
className="h-12 w-12 rounded-l-xl border-gray-200 bg-white hover:bg-gray-50"
onClick={decrementFriendMaxLikes}
>
<Minus className="h-5 w-5" />
</Button>
<div className="relative flex-1">
<Input
id="friend-max-likes"
type="number"
min={1}
max={20}
value={formData.friendMaxLikes}
onChange={(e) => onChange({ friendMaxLikes: Number.parseInt(e.target.value) || 1 })}
className="h-12 rounded-none border-x-0 border-gray-200 text-center"
/>
<div className="absolute inset-y-0 right-0 flex items-center pr-4 pointer-events-none text-gray-500">
/
</div>
</div>
<Button
type="button"
variant="outline"
size="icon"
className="h-12 w-12 rounded-r-xl border-gray-200 bg-white hover:bg-gray-50"
onClick={incrementFriendMaxLikes}
>
<Plus className="h-5 w-5" />
</Button>
</div>
<p className="text-xs text-gray-500"></p>
<p className="text-xs text-gray-500"></p>
</div>
<div className="space-y-2">
@@ -232,33 +182,6 @@ export function BasicSettings({ formData, onChange, onNext }: BasicSettingsProps
<p className="text-xs text-gray-500"></p>
</div>
<div className="space-y-4 py-2 border-t border-gray-100">
<div className="flex items-center justify-between">
<Label htmlFor="enable-friend-tags" className="cursor-pointer">
</Label>
<Switch
id="enable-friend-tags"
checked={formData.enableFriendTags}
onCheckedChange={(checked) => onChange({ enableFriendTags: checked })}
/>
</div>
{formData.enableFriendTags && (
<div className="space-y-2">
<Label htmlFor="friend-tags"></Label>
<Input
id="friend-tags"
placeholder="请输入标签"
value={formData.friendTags}
onChange={(e) => onChange({ friendTags: e.target.value })}
className="h-12 rounded-xl border-gray-200"
/>
<p className="text-xs text-gray-500"></p>
</div>
)}
</div>
<div className="flex items-center justify-between py-2">
<Label htmlFor="auto-enabled" className="cursor-pointer">