style(templates): 去掉模板页未使用的 v-for index

这 5 处 vue/no-unused-vars 是 `pnpm lint` 仅有的 5 个 error(357 条 warning 不阻塞)。
清掉之后 lint 才能进 git 钩子当护栏——此前这个 eslint 配置写了却从没在自动化里跑过。
This commit is contained in:
2026-09-29 16:15:06 +08:00
parent 7216b0ea8c
commit 3b703c70e8
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -67,7 +67,7 @@
<p class="text-gray-500 max-w-2xl mx-auto">从技术到服务,全链路保障客户的数字化投资回报</p> <p class="text-gray-500 max-w-2xl mx-auto">从技术到服务,全链路保障客户的数字化投资回报</p>
</div> </div>
<div class="grid sm:grid-cols-2 lg:grid-cols-4 gap-6"> <div class="grid sm:grid-cols-2 lg:grid-cols-4 gap-6">
<div v-for="(item, index) in advantages" :key="item.title" <div v-for="item in advantages" :key="item.title"
class="bg-white rounded-2xl p-7 shadow-sm hover:shadow-md transition-shadow border border-gray-100 group"> class="bg-white rounded-2xl p-7 shadow-sm hover:shadow-md transition-shadow border border-gray-100 group">
<div class="w-14 h-14 rounded-xl flex items-center justify-center mb-5 bg-blue-50"> <div class="w-14 h-14 rounded-xl flex items-center justify-center mb-5 bg-blue-50">
<svg class="w-7 h-7 text-blue-600" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" :d="item.icon" /></svg> <svg class="w-7 h-7 text-blue-600" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" :d="item.icon" /></svg>
@@ -89,7 +89,7 @@
<span class="inline-block px-3 py-1 rounded-full bg-blue-50 text-blue-600 text-sm font-semibold mb-4">发展历程</span> <span class="inline-block px-3 py-1 rounded-full bg-blue-50 text-blue-600 text-sm font-semibold mb-4">发展历程</span>
<h2 class="text-2xl sm:text-3xl font-bold text-gray-900 mb-8">一路同行,步履不停</h2> <h2 class="text-2xl sm:text-3xl font-bold text-gray-900 mb-8">一路同行,步履不停</h2>
<div class="relative border-l-2 border-blue-100 pl-8 space-y-8"> <div class="relative border-l-2 border-blue-100 pl-8 space-y-8">
<div v-for="(m, index) in milestones" :key="m.year" class="relative"> <div v-for="m in milestones" :key="m.year" class="relative">
<span class="absolute -left-[41px] top-1 w-5 h-5 rounded-full bg-blue-600 border-4 border-white shadow"></span> <span class="absolute -left-[41px] top-1 w-5 h-5 rounded-full bg-blue-600 border-4 border-white shadow"></span>
<div class="text-blue-600 font-bold text-lg">{{ m.year }}</div> <div class="text-blue-600 font-bold text-lg">{{ m.year }}</div>
<div class="text-gray-900 font-semibold mt-1">{{ m.title }}</div> <div class="text-gray-900 font-semibold mt-1">{{ m.title }}</div>
@@ -120,7 +120,7 @@
<p class="text-gray-500 max-w-2xl mx-auto">沉淀多年的交付能力与行业口碑,是我们最扎实的底气</p> <p class="text-gray-500 max-w-2xl mx-auto">沉淀多年的交付能力与行业口碑,是我们最扎实的底气</p>
</div> </div>
<div class="grid grid-cols-2 lg:grid-cols-4 gap-6"> <div class="grid grid-cols-2 lg:grid-cols-4 gap-6">
<div v-for="(s, index) in stats" :key="s.label" <div v-for="s in stats" :key="s.label"
class="bg-white rounded-2xl p-8 text-center shadow-sm border border-gray-100"> class="bg-white rounded-2xl p-8 text-center shadow-sm border border-gray-100">
<div class="text-gray-900 font-bold text-3xl sm:text-4xl"> <div class="text-gray-900 font-bold text-3xl sm:text-4xl">
{{ s.value }}<span class="text-blue-600">{{ s.suffix }}</span> {{ s.value }}<span class="text-blue-600">{{ s.suffix }}</span>
+2 -2
View File
@@ -67,7 +67,7 @@
<p class="text-gray-500 max-w-2xl mx-auto">从技术到服务,全链路保障客户的数字化投资回报</p> <p class="text-gray-500 max-w-2xl mx-auto">从技术到服务,全链路保障客户的数字化投资回报</p>
</div> </div>
<div class="grid sm:grid-cols-2 lg:grid-cols-4 gap-6"> <div class="grid sm:grid-cols-2 lg:grid-cols-4 gap-6">
<div v-for="(item, index) in advantages" :key="item.title" <div v-for="item in advantages" :key="item.title"
class="bg-white rounded-2xl p-7 shadow-sm hover:shadow-md transition-shadow border border-gray-100 group"> class="bg-white rounded-2xl p-7 shadow-sm hover:shadow-md transition-shadow border border-gray-100 group">
<div class="w-14 h-14 rounded-xl flex items-center justify-center mb-5 bg-blue-50"> <div class="w-14 h-14 rounded-xl flex items-center justify-center mb-5 bg-blue-50">
<svg class="w-7 h-7 text-blue-600" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" :d="item.icon" /></svg> <svg class="w-7 h-7 text-blue-600" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" :d="item.icon" /></svg>
@@ -113,7 +113,7 @@
<p class="text-gray-500 max-w-2xl mx-auto">沉淀多年的交付能力与行业口碑,是我们最扎实的底气</p> <p class="text-gray-500 max-w-2xl mx-auto">沉淀多年的交付能力与行业口碑,是我们最扎实的底气</p>
</div> </div>
<div class="grid grid-cols-2 lg:grid-cols-4 gap-6"> <div class="grid grid-cols-2 lg:grid-cols-4 gap-6">
<div v-for="(s, index) in stats" :key="s.label" <div v-for="s in stats" :key="s.label"
class="bg-white rounded-2xl p-8 text-center shadow-sm border border-gray-100"> class="bg-white rounded-2xl p-8 text-center shadow-sm border border-gray-100">
<div class="text-gray-900 font-bold text-3xl sm:text-4xl"> <div class="text-gray-900 font-bold text-3xl sm:text-4xl">
{{ s.value }}<span class="text-blue-600">{{ s.suffix }}</span> {{ s.value }}<span class="text-blue-600">{{ s.suffix }}</span>