qrs20261691
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "qrs20261691" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-390bf27a35888eef355b1d2d4a4216a6d99715c100cc603bc1951f753a4f7d5b. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/qrs20261691 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Implements left-right swipe browsing and quick actions for follow-up lead cards using Swiper. Use when you need to swipe lead cards, paginate with Swiper, or swipe left/right in the follow-up list.
Introduction source: third_party · user_f1b049da · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: qrs20261691
slug: qrs20261691
displayName: 线索卡片滑动
version: 1.0.0
summary: 用 Swiper 左右滑浏览待跟进线索卡片,适合移动端快速过库。
license: MIT
description: 用 Swiper 做待跟进线索卡片左右滑动浏览与快捷操作。当用户要线索卡片滑动、Swiper 过库、待跟进左右滑时使用。线索卡片滑动(Swiper)
灵感:能力工具箱 swipe-leads(pkg: swiper)。
小四原创:一屏一张线索卡,左右滑切换;底部可挂「稍后 / 已联」轻动作,不做成复杂看板。
何时使用
- 手机/窄屏快速浏览待跟进线索
- 「像刷卡片一样过库」
- 与列表页互补的轻量过库模式
硬约束
- 使用
swiper(推荐swiper/vue或原生模块 + CSS)。 - 一页一张卡(
slidesPerView: 1),支持触控与键盘左右键。 - 卡片字段最少:客户名、联系人/电话、最近跟进摘要;缺省显示「—」。
- 滑动本身不自动改业务状态;状态变更必须点明确按钮并二次确认(可选)。
- 尊重
prefers-reduced-motion:可关过渡动画,仍保留切换。 - 实现要点注释标 小四原创。
推荐实现
import Swiper from 'swiper'
import { Navigation, Keyboard } from 'swiper/modules'
import 'swiper/css'
import 'swiper/css/navigation'
export type LeadCard = {
id: string
name: string
contact?: string
phone?: string
lastNote?: string
}
// 小四原创:挂载线索滑动
export function mountLeadSwipe(el: HTMLElement, leads: LeadCard[]) {
el.innerHTML = `
<div class="swiper lead-swipe">
<div class="swiper-wrapper">
${leads.map((l) => `
<div class="swiper-slide" data-id="${l.id}">
<h3>${escapeHtml(l.name)}</h3>
<p>${escapeHtml(l.contact || '—')} · ${escapeHtml(l.phone || '—')}</p>
<p class="note">${escapeHtml(l.lastNote || '暂无跟进')}</p>
</div>`).join('')}
</div>
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
</div>`
const reduce = window.matchMedia('(prefers-reduced-motion: reduce)').matches
return new Swiper(el.querySelector('.swiper') as HTMLElement, {
modules: [Navigation, Keyboard],
slidesPerView: 1,
spaceBetween: 12,
speed: reduce ? 0 : 280,
keyboard: { enabled: true },
navigation: {
nextEl: el.querySelector('.swiper-button-next') as HTMLElement,
prevEl: el.querySelector('.swiper-button-prev') as HTMLElement,
},
})
}
function escapeHtml(s: string) {
return String(s).replace(/[&<>"']/g, (c) =>
({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]!))
}
Agent 步骤
- 接入
swiper+ 样式;传入线索数组。 - 空列表显示「暂无待跟进」。
- 可选:当前卡「稍后提醒」「标记已联」回调,不在滑动时静默改库。
- 自测:触控/按钮均可切换,中文不乱码。
不要做
- 把整站 CRM 重做成 Tinder 式匹配产品。
- 滑动即删除客户(高风险)。
附加
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决移动端线索快速浏览的实际业务痛点
- 提供轻量过库模式,与列表页形成互补
Highlights
- 触发词精准覆盖线索卡片滑动、Swiper 过库等核心场景
- 边界清晰,不易与其他 Skill 重叠
Highlights
- 文档结构完整,包含使用场景、约束、实现、步骤等关键章节
- 提供可落地的 TypeScript 实现示例
Highlights
- 工具来源明确(swiper),参数配置合理
- 覆盖 prefers-reduced-motion 异常,滑动操作有确认机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.