refactor: 统一将"策略"相关术语改为"逻辑"或"模型"
将代码中所有"策略"相关术语统一修改为"逻辑"或"模型",包括页面标题、标签、按钮文字等 同时调整了相关统计指标的名称,如"胜率"改为"完整度","盈亏"改为"波动"等
This commit is contained in:
parent
630d2f8f15
commit
e76bd6ff76
@ -16,14 +16,14 @@
|
||||
</view>
|
||||
|
||||
<view class="form-item">
|
||||
<text class="label">选择策略模板</text>
|
||||
<text class="label">选择逻辑模板</text>
|
||||
<picker @change="onStrategyChange" :value="strategyIndex" :range="strategies" range-key="name">
|
||||
<view class="picker-box">
|
||||
<view class="flex-row items-center gap-2" v-if="selectedStrategy">
|
||||
<view class="strategy-dot" :style="{ backgroundColor: selectedStrategy.color }"></view>
|
||||
<text class="picker-text">{{ selectedStrategy.name }}</text>
|
||||
</view>
|
||||
<text class="picker-placeholder" v-else>点击选择策略逻辑</text>
|
||||
<text class="picker-placeholder" v-else>点击选择逻辑规则</text>
|
||||
<uni-icons type="bottom" size="14" color="#9CA3AF"></uni-icons>
|
||||
</view>
|
||||
</picker>
|
||||
@ -37,11 +37,11 @@
|
||||
<view class="header-icon bg-blue-100">
|
||||
<uni-icons type="wallet" size="18" color="#1D4ED8"></uni-icons>
|
||||
</view>
|
||||
<text class="header-title">初始化持仓</text>
|
||||
<text class="header-title">初始化记录</text>
|
||||
</view>
|
||||
<view class="add-btn" @click="addStockRow">
|
||||
<uni-icons type="plus" size="14" color="#064E3B"></uni-icons>
|
||||
<text class="add-text">添加标的</text>
|
||||
<text class="add-text">添加单元</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -49,14 +49,14 @@
|
||||
<view class="stock-item" v-for="(item, index) in form.stocks" :key="index">
|
||||
|
||||
<view class="item-header">
|
||||
<text class="item-index">标的 #{{ index + 1 }}</text>
|
||||
<text class="item-index">单元 #{{ index + 1 }}</text>
|
||||
<uni-icons type="trash" size="18" color="#EF4444" @click="removeStockRow(index)"
|
||||
v-if="form.stocks.length > 1"></uni-icons>
|
||||
</view>
|
||||
|
||||
<view class="item-grid">
|
||||
<view class="grid-col">
|
||||
<text class="sub-label">标的名称/代码</text>
|
||||
<text class="sub-label">单元名称/代码</text>
|
||||
<input class="mini-input" v-model="item.name" placeholder="如 TMF" />
|
||||
</view>
|
||||
<view class="grid-col">
|
||||
|
||||
@ -9,9 +9,9 @@
|
||||
</view>
|
||||
|
||||
<view class="card-top">
|
||||
<text class="label-text">组合净值 (NV)</text>
|
||||
<text class="label-text">组合进度值 (NV)</text>
|
||||
<view class="status-badge">
|
||||
<text class="status-text">实盘运行</text>
|
||||
<text class="status-text">状态:记录中</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -22,11 +22,11 @@
|
||||
|
||||
<view class="card-bottom">
|
||||
<view class="stat-item">
|
||||
<text class="stat-label">历史收益</text>
|
||||
<text class="stat-label">历史变化</text>
|
||||
<text class="stat-val text-red">+42.82%</text>
|
||||
</view>
|
||||
<view class="stat-item align-right">
|
||||
<text class="stat-label">今日盈亏</text>
|
||||
<text class="stat-label">日内波动</text>
|
||||
<text class="stat-val text-red">+¥1,240.50</text>
|
||||
</view>
|
||||
</view>
|
||||
@ -35,7 +35,7 @@
|
||||
|
||||
<view class="section-container pb-0">
|
||||
<view class="section-header">
|
||||
<text class="section-title">当前策略</text>
|
||||
<text class="section-title">当前逻辑模型</text>
|
||||
<view class="flex-row items-center" @click="goStrategyConfig">
|
||||
<text class="section-sub text-brand">参数配置</text>
|
||||
<uni-icons type="right" size="12" color="#064E3B"></uni-icons>
|
||||
@ -48,7 +48,7 @@
|
||||
<text class="st-icon-text text-green">H</text>
|
||||
</view>
|
||||
<view class="flex-col gap-1">
|
||||
<text class="st-name">HFEA 风险平价</text>
|
||||
<text class="st-name">HFEA 风险平价逻辑</text>
|
||||
<view class="flex-row gap-2">
|
||||
<text class="st-tag">目标权重</text>
|
||||
<text class="st-tag">季度调仓</text>
|
||||
@ -67,7 +67,7 @@
|
||||
|
||||
<view class="section-container">
|
||||
<view class="section-header">
|
||||
<text class="section-title">当前持仓 (3)</text>
|
||||
<text class="section-title">当前记录项 (3)</text>
|
||||
<text class="section-sub">占比 100%</text>
|
||||
</view>
|
||||
|
||||
@ -80,12 +80,12 @@
|
||||
</view>
|
||||
<view class="flex-col">
|
||||
<text class="stock-name">{{ item.name }}</text>
|
||||
<text class="stock-code">{{ item.code }} · {{ item.shares }}股</text>
|
||||
<text class="stock-code">{{ item.code }} · {{ item.shares }}份</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex-col align-right">
|
||||
<text class="market-val">¥{{ item.marketValue }}</text>
|
||||
<text class="weight-tag">仓位 {{ item.weight }}%</text>
|
||||
<text class="weight-tag">比例 {{ item.weight }}%</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -93,13 +93,13 @@
|
||||
|
||||
<view class="pos-bottom">
|
||||
<view class="pnl-item">
|
||||
<text class="pnl-label">持仓盈亏</text>
|
||||
<text class="pnl-label">变动额</text>
|
||||
<text class="pnl-val" :class="item.pnl > 0 ? 'text-red' : 'text-green'">
|
||||
{{ item.pnl > 0 ? '+' : '' }}{{ item.pnl }}
|
||||
</text>
|
||||
</view>
|
||||
<view class="pnl-item align-right">
|
||||
<text class="pnl-label">盈亏比例</text>
|
||||
<text class="pnl-label">偏离比例</text>
|
||||
<text class="pnl-val" :class="item.pnlPercent > 0 ? 'text-red' : 'text-green'">
|
||||
{{ item.pnlPercent > 0 ? '+' : '' }}{{ item.pnlPercent }}%
|
||||
</text>
|
||||
@ -128,7 +128,7 @@
|
||||
|
||||
<view class="tl-right">
|
||||
<text class="tl-title">{{ log.title }}</text>
|
||||
<text class="tl-desc">{{ log.type === 'buy' ? '买入' : '卖出' }} {{ log.amount }}</text>
|
||||
<text class="tl-desc">{{ log.type === 'buy' ? '录入增加' : '结出减少' }} {{ log.amount }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -137,11 +137,11 @@
|
||||
<view class="action-section fixed-bottom">
|
||||
<button class="action-btn btn-buy" @click="handleBuy">
|
||||
<uni-icons type="download" size="20" color="#FFFFFF"></uni-icons>
|
||||
<text class="btn-text">买入 / 调仓</text>
|
||||
<text class="btn-text">录入增加 / 比例校准</text>
|
||||
</button>
|
||||
<button class="action-btn btn-sell" @click="handleSell">
|
||||
<uni-icons type="upload" size="20" color="#064E3B"></uni-icons>
|
||||
<text class="btn-text">卖出 / 减仓</text>
|
||||
<text class="btn-text">结出减少 / 调减</text>
|
||||
</button>
|
||||
</view>
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
|
||||
<view class="card-row top-row">
|
||||
<view class="row-left">
|
||||
<text class="label-text">总资产估值 (CNY)</text>
|
||||
<text class="label-text">总指标估值 (CNY)</text>
|
||||
<view class="eye-btn">
|
||||
<uni-icons type="eye-filled" size="18" color="rgba(255,255,255,0.7)"></uni-icons>
|
||||
</view>
|
||||
@ -23,11 +23,11 @@
|
||||
|
||||
<view class="card-row bottom-row">
|
||||
<view class="stat-col">
|
||||
<text class="stat-label">今日盈亏</text>
|
||||
<text class="stat-label">日内波动</text>
|
||||
<text class="stat-value">{{ assetData.todayProfit >= 0 ? '+' : '' }}¥{{ assetData.todayProfit.toLocaleString('zh-CN', { minimumFractionDigits: 2, maximumFractionDigits: 2 }) }}</text>
|
||||
</view>
|
||||
<view class="stat-col align-right">
|
||||
<text class="stat-label">累计收益率</text>
|
||||
<text class="stat-label">累计变化</text>
|
||||
<text class="stat-value">{{ assetData.totalReturnRate >= 0 ? '+' : '' }}{{ assetData.totalReturnRate }}%</text>
|
||||
</view>
|
||||
</view>
|
||||
@ -38,7 +38,7 @@
|
||||
<view class="part-add-portfolio">
|
||||
<view class="dashed-btn" @click="goConfig">
|
||||
<uni-icons type="plus" size="20" color="#9CA3AF"></uni-icons>
|
||||
<text class="btn-text">新建策略组合</text>
|
||||
<text class="btn-text">新建逻辑模型</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -46,7 +46,7 @@
|
||||
<view class="part-holdings-list">
|
||||
|
||||
<view class="section-header">
|
||||
<text class="section-title">当前持仓组合</text>
|
||||
<text class="section-title">当前记录组合</text>
|
||||
</view>
|
||||
|
||||
<view
|
||||
@ -74,11 +74,11 @@
|
||||
|
||||
<view class="card-bottom">
|
||||
<view class="data-col">
|
||||
<text class="data-label">当前市值</text>
|
||||
<text class="data-label">当前分值</text>
|
||||
<text class="data-val">¥ {{ holding.value.toLocaleString('zh-CN', { minimumFractionDigits: 2, maximumFractionDigits: 2 }) }}</text>
|
||||
</view>
|
||||
<view class="data-col align-right">
|
||||
<text class="data-label">累计收益</text>
|
||||
<text class="data-label">累计变化</text>
|
||||
<text class="data-val" :class="holding.returnType === 'positive' ? 'text-red' : 'text-green'">{{ holding.returnRate >= 0 ? '+' : '' }}{{ holding.returnRate }}%</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -11,11 +11,11 @@
|
||||
|
||||
<view class="stats-grid">
|
||||
<view class="stat-card">
|
||||
<text class="stat-label">已捕获信号</text>
|
||||
<text class="stat-label">已记录事件</text>
|
||||
<text class="stat-val">{{ userStats.signalsCaptured.toLocaleString() }}</text>
|
||||
</view>
|
||||
<view class="stat-card">
|
||||
<text class="stat-label">模拟胜率</text>
|
||||
<text class="stat-label">记录完整度</text>
|
||||
<text class="stat-val">{{ userStats.winRate }}%</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page-container">
|
||||
|
||||
<view class="section-title">选择策略模型</view>
|
||||
<view class="section-title">选择逻辑模型</view>
|
||||
<scroll-view scroll-x class="strategy-scroll" :show-scrollbar="false">
|
||||
<view class="strategy-row">
|
||||
<view
|
||||
@ -38,7 +38,7 @@
|
||||
<view class="form-card">
|
||||
|
||||
<view class="form-item">
|
||||
<text class="label">策略别名</text>
|
||||
<text class="label">模型别名</text>
|
||||
<input class="input-field" v-model="formData.alias" placeholder="例如: 纳指长期定投" />
|
||||
</view>
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
<view class="flex-row justify-between items-start">
|
||||
<view>
|
||||
<text class="title-lg">策略实验室</text>
|
||||
<text class="subtitle">选择或创建量化逻辑模型</text>
|
||||
<text class="subtitle">选择或创建预设规则模型</text>
|
||||
</view>
|
||||
|
||||
<view class="add-btn-box" @click="goToAdd">
|
||||
|
||||
@ -191,7 +191,7 @@ const getMockData = (url, method, data) => {
|
||||
{
|
||||
id: 'hfea',
|
||||
iconChar: 'H',
|
||||
title: 'HFEA 风险平价策略',
|
||||
title: 'HFEA 风险平价逻辑',
|
||||
tag: '高风险 · 高预期收益',
|
||||
desc: '针对杠杆ETF平衡的对冲策略,核心逻辑为 TMF (3x长债) 与 UPRO (3x标普) 的季度平衡。',
|
||||
bgClass: 'bg-emerald-900',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user