Files
opc/frontend/src/views/ProductsView.vue
T
小K a5692bfd7d feat: OPC 平台初版(Go+PG backend / Vue frontend)+ 尚数网融合方案 + db/0824 数据库备份
- backend: 25 张表 schema/seed,config 指向 127.0.0.1:15432 opc 库
- docs: 尚数网七维融合方案、行业老炮切入方案、竞品分析等
- db/0824/opc_0824.sql(.gz): pg_dump 全量备份(25 表,含数据)
2026-08-24 13:44:40 +08:00

40 lines
1.8 KiB
Vue

<template>
<div>
<div class="hero-banner" style="background: linear-gradient(135deg, #be185d 0%, #6d28d9 100%);">
<div class="hero-text">
<h1>孵化产品库</h1>
<p>从原型打磨到合规认证、市场推广、资产化辅导</p>
</div>
<div class="hero-actions">
<span class="top-tag" style="background: rgba(255,255,255,0.2); color: #fff;">{{ products.length }} 个产品</span>
</div>
</div>
<div class="row-3">
<div v-for="p in products" :key="p.id" class="resource-card">
<div style="display: flex; justify-content: space-between;">
<span class="tag tag-blue">{{ p.category }}</span>
<span class="tag" :class="p.status === 'certified' ? 'tag-green' : p.status === 'listed' ? 'tag-cyan' : p.status === 'assetized' ? 'tag-purple' : 'tag-gray'">{{ statusLabel(p.status) }}</span>
</div>
<h4 style="margin-top: 8px;">{{ p.name }}</h4>
<div class="desc">{{ p.tagline }}</div>
<div style="margin-top: 10px; display: flex; gap: 8px;">
<span class="tag" :class="p.compliance === 'passed' ? 'tag-green' : 'tag-orange'">{{ p.compliance === 'passed' ? '✓ 合规' : '审查中' }}</span>
</div>
<div v-if="p.demo_url" style="margin-top: 8px; font-size: 12px;">
<a :href="p.demo_url" target="_blank" style="color: var(--primary-light)">查看 Demo →</a>
</div>
</div>
</div>
</div>
</template>
<script setup>
import { ref, onMounted } from 'vue'
import api from '../api'
const products = ref([])
function statusLabel(s) { return { prototyping: '原型', listed: '已上架', certified: '已认证', assetized: '已资产化' }[s] || s }
onMounted(async () => { products.value = await api.listProducts() })
</script>