|
|
@@ -2,7 +2,9 @@
|
|
|
<div class="market">
|
|
|
<div class="market-nav">
|
|
|
<div class="nav-left">
|
|
|
- <div class="pf600 fs18 fc121212" @click="messageChange('selfSelected')">合约</div>
|
|
|
+ <div class="pf600 fs18 fc121212" @click="messageChange('selfSelected')">合约
|
|
|
+ <div class="active-line"></div>
|
|
|
+ </div>
|
|
|
<div class="sys-notifi pf600 fs14 fcA8A8A8" @click="messageChange('contract')">秒合约</div>
|
|
|
<div
|
|
|
class="sys-notifi pf600 fs14 fcA8A8A8"
|
|
|
@@ -39,11 +41,11 @@
|
|
|
</div>
|
|
|
<div class="menu-content" >
|
|
|
<!-- //左边-->
|
|
|
- <div class="menu-content-l">
|
|
|
+ <div class="menu-content-l">
|
|
|
<div class="menu-content-lb pf400 fs14 fc666666">
|
|
|
<span>价格</span><span>数量(USDT)</span>
|
|
|
</div>
|
|
|
- <div class="menu-content-lb1">
|
|
|
+ <div class="menu-content-lb1">
|
|
|
<div class="menu-content-lb1l pf400 fs14 fcFF7171">
|
|
|
<span class="">40,166.82</span>
|
|
|
<span>40,166.82</span>
|
|
|
@@ -73,7 +75,7 @@
|
|
|
<p class="pf600 fs16 fcDF384C">5,678.00</p>
|
|
|
<p class="fs12 fcA8A8A8 pf400">1,678.00</p>
|
|
|
</div>
|
|
|
- <div class="menu-content-lb1">
|
|
|
+ <div class="menu-content-lb1">
|
|
|
<div class="menu-content-lb1l pf400 fs14 fcFF7171">
|
|
|
<span class="">40,166.82</span>
|
|
|
<span>40,166.82</span>
|
|
|
@@ -100,18 +102,20 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="menu-content-lb1">
|
|
|
- <div class="menu-content-lb1l pf400 fs12 fc333333">
|
|
|
- <span class="fs12">深度1</span>
|
|
|
+ <div class="menu-content-lb1l pf400 fs12 fc333333" @click="isPickerVisible = true">
|
|
|
+ <span class="fs12">{{displayLabel}}</span>
|
|
|
<img src="../../assets/icon/bitcoin/shendul.svg" alt="">
|
|
|
|
|
|
</div>
|
|
|
<div class="menu-content-lb1r pf400 fs14 fc444444">
|
|
|
<img src="../../assets/icon/bitcoin/shendur.svg" alt="">
|
|
|
-
|
|
|
+ <img v-if="isassetlessState" src="../../assets/icon/bitcoin/wuzichan.svg" alt="">
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
+ <assetlessStateData v-if="isassetlessState"></assetlessStateData>
|
|
|
+ <SellTradingStatusData v-if="isassetlessState"></SellTradingStatusData>
|
|
|
<!-- //右边-->
|
|
|
<div class="menu-content-r">
|
|
|
<div class="menu-content-rb pf400 fs14">
|
|
|
@@ -178,29 +182,24 @@
|
|
|
<!-- <input type="checkbox" checked="checked">-->
|
|
|
<!-- <span class="checkmark"></span>-->
|
|
|
<!-- </label>-->
|
|
|
- <input class="fs16" type="checkbox" id="bike" value="Bike">
|
|
|
+ <van-checkbox
|
|
|
+ v-model="isEnabled"
|
|
|
+ shape="square"
|
|
|
+ checked-color="#DC4653"
|
|
|
+ icon-size="16px"
|
|
|
+ >
|
|
|
+ </van-checkbox>
|
|
|
+<!-- <input class="fs16" type="checkbox" id="bike" value="Bike">-->
|
|
|
<span class="menu-content-rb1s fc333333">只减仓</span>
|
|
|
</div>
|
|
|
<div class="menu-content-rb1">
|
|
|
<span></span>
|
|
|
-
|
|
|
<span>GTC</span>
|
|
|
- <img class="fs16" src="../../assets/icon/bitcoin/qianbao1.svg" alt="">
|
|
|
- </div>
|
|
|
-
|
|
|
- </div>
|
|
|
- <div class="menu-content-rb pf400 fs14">
|
|
|
- <div class="menu-content-rb1 fs14 fc333333">
|
|
|
-<!-- <label class="custom-checkbox-container">-->
|
|
|
-<!-- <input type="checkbox" checked="checked">-->
|
|
|
-<!-- <span class="checkmark"></span>-->
|
|
|
-<!-- </label>-->
|
|
|
- <input class="fs16" type="checkbox" id="bike" value="Bike">
|
|
|
- <span class="menu-content-rb1s fc333333">只减仓</span>
|
|
|
- <img src="../../assets/icon/bitcoin/quancang.svg" alt="">
|
|
|
+ <img class="fs16" src="../../assets/icon/bitcoin/quangcang1.svg" alt="">
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
+ <TakeProfitstopLoss v-show="!isEnabled"></TakeProfitstopLoss>
|
|
|
|
|
|
<div class="menu-content-rb pf400 fs14">
|
|
|
<div class="menu-content-rb1 fs14 fc333333">
|
|
|
@@ -258,580 +257,55 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-<!-- m买入-->
|
|
|
- <div class="transaction-cards">
|
|
|
- <div class="container">
|
|
|
-
|
|
|
- <div class="top-nav">
|
|
|
- <div class="tabs">
|
|
|
- <div class="tab-item active">
|
|
|
- 持有仓位(2)
|
|
|
- <div class="active-line"></div>
|
|
|
- </div>
|
|
|
- <div class="tab-item">当前委托(0)</div>
|
|
|
- </div>
|
|
|
- <div class="filter-all">
|
|
|
- <van-icon name="clock-o" style="margin-right: 4px;" /> 全部
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="position-card">
|
|
|
-
|
|
|
- <div class="card-header">
|
|
|
- <div class="coin-info">
|
|
|
- <div class="btc-icon">₿</div>
|
|
|
- <div class="title-group">
|
|
|
- <div class="coin-name">BTC/USDT 永续</div>
|
|
|
- <div class="tags">
|
|
|
- <span class="tag-buy">买入</span>
|
|
|
- <span class="tag-lever">逐仓 20X</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="order-time">
|
|
|
- <div>2025-11-04, 16:30</div>
|
|
|
- <div style="text-align: right; margin-top: 2px;">下单时间</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="divider"></div>
|
|
|
-
|
|
|
- <div class="pnl-row">
|
|
|
- <span class="label">未实现盈亏(USDT)</span>
|
|
|
- <span class="value green-text">+0.2015 USDT</span>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="data-grid">
|
|
|
- <div class="grid-item align-left">
|
|
|
- <div class="label">持仓数量</div>
|
|
|
- <div class="value">0.215 USDT</div>
|
|
|
- </div>
|
|
|
- <div class="grid-item align-center">
|
|
|
- <div class="label">开仓价格</div>
|
|
|
- <div class="value">0.215 USDT</div>
|
|
|
- </div>
|
|
|
- <div class="grid-item align-right">
|
|
|
- <div class="label">标记价格</div>
|
|
|
- <div class="value">0.215 USDT</div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="grid-item align-left mt-10">
|
|
|
- <div class="label">保证金</div>
|
|
|
- <div class="value">0.215 USDT</div>
|
|
|
- </div>
|
|
|
- <div class="grid-item align-center mt-10">
|
|
|
- <div class="label">强平价格</div>
|
|
|
- <div class="value">0.215 USDT</div>
|
|
|
- </div>
|
|
|
- <div class="grid-item align-right mt-10">
|
|
|
- <div class="label">收益率</div>
|
|
|
- <div class="value green-text">+0.21%</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="action-bar">
|
|
|
- <div class="tp-sl-btn">止盈止损</div>
|
|
|
- <div class="expand-btn">
|
|
|
- 展开 <van-icon name="arrow-down" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="footer-btn">
|
|
|
- <van-button block round color="#e6424a" class="close-btn">
|
|
|
- 平仓
|
|
|
- </van-button>
|
|
|
- </div>
|
|
|
-
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-<!-- 卖出-->
|
|
|
- <div class="transaction-cards1">
|
|
|
- <div class="mobile-viewport">
|
|
|
-
|
|
|
- <div class="position-card">
|
|
|
-
|
|
|
- <div class="card-header">
|
|
|
- <div class="coin-info">
|
|
|
- <div class="btc-icon">₿</div>
|
|
|
- <div class="title-group">
|
|
|
- <div class="coin-name">BTC/USDT 永续</div>
|
|
|
- <div class="tags">
|
|
|
- <span class="tag-sell">卖出</span>
|
|
|
- <span class="tag-lever">全仓 20X</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="order-time">
|
|
|
- <div class="time-val">2025-11-04, 16:30</div>
|
|
|
- <div class="time-lbl">下单时间</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="divider"></div>
|
|
|
-
|
|
|
- <div class="pnl-row">
|
|
|
- <span class="label">未实现盈亏(USDT)</span>
|
|
|
- <span class="value red-text">-0.2015 USDT</span>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="data-grid">
|
|
|
- <div class="grid-item align-left">
|
|
|
- <div class="label">持仓数量</div>
|
|
|
- <div class="value">0.215 USDT</div>
|
|
|
- </div>
|
|
|
- <div class="grid-item align-center">
|
|
|
- <div class="label">开仓价格</div>
|
|
|
- <div class="value">0.215 USDT</div>
|
|
|
- </div>
|
|
|
- <div class="grid-item align-right">
|
|
|
- <div class="label">标记价格</div>
|
|
|
- <div class="value">0.215 USDT</div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="grid-item align-left mt-12">
|
|
|
- <div class="label">保证金</div>
|
|
|
- <div class="value">0.215 USDT</div>
|
|
|
- </div>
|
|
|
- <div class="grid-item align-center mt-12">
|
|
|
- <div class="label">强平价格</div>
|
|
|
- <div class="value">0.215 USDT</div>
|
|
|
- </div>
|
|
|
- <div class="grid-item align-right mt-12">
|
|
|
- <div class="label">收益率</div>
|
|
|
- <div class="value red-text">+0.21%</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="action-bar">
|
|
|
- <div class="tp-sl-text">止盈止损</div>
|
|
|
- <div class="expand-btn active">
|
|
|
- 收起 <van-icon name="arrow-up" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="detail-panel">
|
|
|
- <div class="detail-row">
|
|
|
- <div class="d-left">
|
|
|
- <span class="d-tag">止盈</span>
|
|
|
- <span class="d-val gray">标记价格≥2080.80</span>
|
|
|
- </div>
|
|
|
- <div class="d-right">
|
|
|
- <span class="d-label">盈亏</span>
|
|
|
- <span class="d-val green-text">+0.2015 USDT</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="detail-row">
|
|
|
- <div class="d-left">
|
|
|
- <span class="d-tag">止损</span>
|
|
|
- <span class="d-val gray">最新价格≤9878.8</span>
|
|
|
- </div>
|
|
|
- <div class="d-right">
|
|
|
- <span class="d-label">盈亏</span>
|
|
|
- <span class="d-val red-text">-0.2015 USDT</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="detail-row">
|
|
|
- <div class="d-left">
|
|
|
- <span class="d-tag">数量</span>
|
|
|
- <span class="d-val gray">0.215 USDT</span>
|
|
|
- </div>
|
|
|
- <div class="d-right">
|
|
|
- <span class="d-label">委托价</span>
|
|
|
- <span class="d-val gray">市价</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="footer-btn">
|
|
|
- <van-button block round color="#e6424a" class="close-btn">
|
|
|
- 平仓
|
|
|
- </van-button>
|
|
|
- </div>
|
|
|
+ <sellOrder></sellOrder>
|
|
|
|
|
|
+ <div v-if="isassetlessState">
|
|
|
+ <assetlessState></assetlessState>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ <div>
|
|
|
+ <ChooseThisDepth
|
|
|
+ v-model:show="isPickerVisible"
|
|
|
+ v-model="currentDepth"
|
|
|
+ ></ChooseThisDepth>
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup>
|
|
|
- import { ref } from 'vue';
|
|
|
- const show = ref(false);
|
|
|
- const showPopup = () => {
|
|
|
- show.value = true;
|
|
|
+ import { Checkbox as VanCheckbox } from 'vant';
|
|
|
+ // import { Icon as VanIcon, } from 'vant';
|
|
|
+ import { defineAsyncComponent } from 'vue';
|
|
|
+ import { ref ,computed} from 'vue';
|
|
|
+ // 懒加载多个组件
|
|
|
+ const assetlessState = defineAsyncComponent(() => import("./components/assetlessState.vue"));
|
|
|
+ const assetlessStateData = defineAsyncComponent(() => import("./components/assetlessStateData.vue"));
|
|
|
+ const sellOrder = defineAsyncComponent(() => import('./components/sellOrder.vue'));
|
|
|
+ const SellTradingStatusData = defineAsyncComponent(() => import('./components/SellTradingStatusData.vue'));
|
|
|
+ const TakeProfitstopLoss = defineAsyncComponent(() => import('./components/TakeProfitstopLoss.vue'));
|
|
|
+ const ChooseThisDepth = defineAsyncComponent(() => import('./components/ChooseThisDepth.vue'));
|
|
|
+
|
|
|
+ // --- 父组件状态 ---
|
|
|
+ const isPickerVisible = ref(false); // 控制弹窗开关
|
|
|
+ const currentDepth = ref('depth1'); // 当前选中的深度
|
|
|
+
|
|
|
+
|
|
|
+ const depthMap = {
|
|
|
+ 'depth1': '深度1',
|
|
|
+ 'depth2': '深度2',
|
|
|
+ 'depth3': '深度3',
|
|
|
};
|
|
|
- import { Icon as VanIcon, Button as VanButton } from 'vant';
|
|
|
+ const displayLabel = computed(() => depthMap[currentDepth.value] || '请选择');
|
|
|
+
|
|
|
+ const isEnabled = ref(false);
|
|
|
+
|
|
|
+
|
|
|
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|
|
|
-/* 模拟手机视口 375px */
|
|
|
-.mobile-viewport {
|
|
|
- width: 100%;
|
|
|
- max-width: 375px;
|
|
|
- margin: 0 auto;
|
|
|
- background-color: #ffffff; /* 外部背景色 */
|
|
|
- padding: 0 15px;
|
|
|
- box-sizing: border-box;
|
|
|
- font-family: -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
|
|
|
-}
|
|
|
-
|
|
|
-/* 卡片主体 */
|
|
|
-.position-card {
|
|
|
- background: #ffffff;
|
|
|
- border-radius: 8px;
|
|
|
- padding: 15px;
|
|
|
- border: 1px solid #ebedf0;
|
|
|
- position: relative;
|
|
|
-}
|
|
|
-
|
|
|
-/* --- Header --- */
|
|
|
-.card-header {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- align-items: flex-start;
|
|
|
- margin-bottom: 12px;
|
|
|
-}
|
|
|
-.coin-info { display: flex; align-items: center; }
|
|
|
-.btc-icon {
|
|
|
- width: 32px;
|
|
|
- height: 32px;
|
|
|
- background: #f7931a;
|
|
|
- border-radius: 50%;
|
|
|
- color: white;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- font-weight: bold;
|
|
|
- font-size: 18px;
|
|
|
- margin-right: 8px;
|
|
|
-}
|
|
|
-.title-group { display: flex; flex-direction: column; justify-content: center; }
|
|
|
-.coin-name {
|
|
|
- font-size: 16px;
|
|
|
- font-weight: 600;
|
|
|
- color: #333;
|
|
|
- line-height: 1.2;
|
|
|
- margin-bottom: 4px;
|
|
|
-}
|
|
|
-.tags { display: flex; align-items: center; }
|
|
|
-
|
|
|
-/* 标签样式 */
|
|
|
-.tag-sell {
|
|
|
- background-color: #e6424a; /* 卖出红 */
|
|
|
- color: white;
|
|
|
- font-size: 11px;
|
|
|
- padding: 1px 4px;
|
|
|
- border-radius: 3px;
|
|
|
- margin-right: 4px;
|
|
|
- line-height: 1.4;
|
|
|
-}
|
|
|
-.tag-lever {
|
|
|
- background-color: #9aa0a5; /* 灰色背景 */
|
|
|
- color: #fff;
|
|
|
- font-size: 11px;
|
|
|
- padding: 1px 4px;
|
|
|
- border-radius: 3px;
|
|
|
- line-height: 1.4;
|
|
|
-}
|
|
|
-
|
|
|
-/* 时间 */
|
|
|
-.order-time { text-align: right; }
|
|
|
-.time-val { font-size: 12px; color: #666; }
|
|
|
-.time-lbl { font-size: 11px; color: #999; margin-top: 2px; }
|
|
|
-
|
|
|
-/* 分割线 */
|
|
|
-.divider { height: 1px; background-color: #f0f0f0; margin: 10px 0; }
|
|
|
-
|
|
|
-/* 盈亏行 */
|
|
|
-.pnl-row {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- margin-bottom: 12px;
|
|
|
- font-size: 13px;
|
|
|
- align-items: center;
|
|
|
-}
|
|
|
-.pnl-row .label { color: #999; }
|
|
|
-.pnl-row .value { font-size: 15px; font-weight: 500; }
|
|
|
-
|
|
|
-/* 通用颜色 */
|
|
|
-.green-text { color: #00b45a; }
|
|
|
-.red-text { color: #e6424a; }
|
|
|
-.gray { color: #888; }
|
|
|
-
|
|
|
-/* 数据网格 */
|
|
|
-.data-grid { display: flex; flex-wrap: wrap; }
|
|
|
-.grid-item { width: 33.33%; }
|
|
|
-.align-left { text-align: left; }
|
|
|
-.align-center { text-align: center; }
|
|
|
-.align-right { text-align: right; }
|
|
|
-.mt-12 { margin-top: 12px; }
|
|
|
-
|
|
|
-.grid-item .label { font-size: 11px; color: #999; margin-bottom: 4px; }
|
|
|
-.grid-item .value { font-size: 13px; color: #333; font-weight: 500; }
|
|
|
-
|
|
|
-/* 操作栏 */
|
|
|
-.action-bar {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- margin-top: 15px;
|
|
|
- font-size: 12px;
|
|
|
- color: #999;
|
|
|
- align-items: center;
|
|
|
-}
|
|
|
-.tp-sl-text {
|
|
|
- //text-decoration: underline;
|
|
|
- text-decoration-color: #ccc;
|
|
|
-}
|
|
|
-.expand-btn { display: flex; align-items: center; cursor: pointer; }
|
|
|
-
|
|
|
-/* --- 详情面板 (关键还原部分) --- */
|
|
|
-.detail-panel {
|
|
|
- margin-top: 8px;
|
|
|
- padding-top: 4px;
|
|
|
-}
|
|
|
-.detail-row {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- font-size: 12px;
|
|
|
- margin-bottom: 6px;
|
|
|
- line-height: 1.5;
|
|
|
-}
|
|
|
-.d-left { display: flex; align-items: center; }
|
|
|
-.d-right { display: flex; align-items: center; }
|
|
|
-
|
|
|
-/* 详情里的文字对齐 */
|
|
|
-.d-tag {
|
|
|
- color: #999;
|
|
|
- margin-right: 12px; /* 标签(止盈)和数值之间的间距 */
|
|
|
- min-width: 24px; /* 保证标签对齐 */
|
|
|
-}
|
|
|
-.d-label {
|
|
|
- color: #999;
|
|
|
- margin-right: 8px;
|
|
|
-}
|
|
|
-.d-val {
|
|
|
- font-family: Arial, sans-serif;
|
|
|
-}
|
|
|
-
|
|
|
-/* 底部按钮 */
|
|
|
-.footer-btn { margin-top: 15px; }
|
|
|
-.close-btn { font-size: 15px; letter-spacing: 1px; border: none; }
|
|
|
-
|
|
|
-.container {
|
|
|
- background-color: #fff;
|
|
|
- //min-height: 100vh;
|
|
|
- padding: 16px;
|
|
|
- font-family: sans-serif;
|
|
|
-}
|
|
|
-
|
|
|
-.top-nav {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- align-items: center;
|
|
|
- margin-bottom: 12px;
|
|
|
-}
|
|
|
-.tabs { display: flex; align-items: center; gap: 20px; }
|
|
|
-.tab-item {
|
|
|
- font-size: 16px;
|
|
|
- color: #969799;
|
|
|
- position: relative;
|
|
|
- padding-bottom: 6px;
|
|
|
- font-weight: 600;
|
|
|
-}
|
|
|
-.tab-item.active {
|
|
|
- color: #323233;
|
|
|
- font-weight: 600;
|
|
|
- font-size: 17px;
|
|
|
-}
|
|
|
-.active-line {
|
|
|
- position: absolute;
|
|
|
- bottom: 0;
|
|
|
- left: 50%;
|
|
|
- transform: translateX(-50%);
|
|
|
- width: 20px;
|
|
|
- height: 3px;
|
|
|
- background-color: #323233;
|
|
|
- border-radius: 2px;
|
|
|
-}
|
|
|
-.filter-all {
|
|
|
- font-size: 16px;
|
|
|
- color: #969799;
|
|
|
- display: flex;
|
|
|
- font-weight: 600;
|
|
|
- align-items: center;
|
|
|
-}
|
|
|
-
|
|
|
-.position-card {
|
|
|
- background: #ffffff;
|
|
|
- border-radius: 12px;
|
|
|
- padding: 16px;
|
|
|
- /* 去掉投影,增加描边 */
|
|
|
- box-shadow: none;
|
|
|
- border: 1px solid #ebedf0;
|
|
|
-}
|
|
|
-
|
|
|
-.card-header {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- align-items: flex-start;
|
|
|
- margin-bottom: 12px;
|
|
|
-}
|
|
|
-.coin-info { display: flex; align-items: center; }
|
|
|
-.btc-icon {
|
|
|
- width: 36px;
|
|
|
- height: 36px;
|
|
|
- background: #f7931a;
|
|
|
- border-radius: 50%;
|
|
|
- color: white;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- font-weight: bold;
|
|
|
- font-size: 20px;
|
|
|
- margin-right: 10px;
|
|
|
-}
|
|
|
-.coin-name {
|
|
|
- font-size: 16px;
|
|
|
- font-weight: bold;
|
|
|
- color: #323233;
|
|
|
- line-height: 1.2;
|
|
|
- margin-bottom: 4px;
|
|
|
-}
|
|
|
-.tags { display: flex; align-items: center; }
|
|
|
-.tag-buy {
|
|
|
- background-color: #00b45a;
|
|
|
- color: white;
|
|
|
- font-size: 11px;
|
|
|
- padding: 1px 4px;
|
|
|
- border-radius: 3px;
|
|
|
- margin-right: 4px;
|
|
|
-}
|
|
|
-.tag-lever {
|
|
|
- background-color: #f0f0f0;
|
|
|
- color: #969799;
|
|
|
- font-size: 11px;
|
|
|
- padding: 1px 4px;
|
|
|
- border-radius: 3px;
|
|
|
-}
|
|
|
-.order-time {
|
|
|
- text-align: right;
|
|
|
- font-size: 12px;
|
|
|
- color: #969799;
|
|
|
- line-height: 1.4;
|
|
|
-}
|
|
|
-.divider {
|
|
|
- height: 1px;
|
|
|
- background-color: #f5f6f7;
|
|
|
- margin: 12px 0;
|
|
|
-}
|
|
|
-.pnl-row {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- margin-bottom: 12px;
|
|
|
- font-size: 13px;
|
|
|
-}
|
|
|
-.pnl-row .label { color: #969799; }
|
|
|
-.green-text { color: #00b45a; font-weight: 500; }
|
|
|
-
|
|
|
-.data-grid { display: flex; flex-wrap: wrap; }
|
|
|
-.grid-item { width: 33.33%; margin-bottom: 4px; }
|
|
|
-.mt-10 { margin-top: 12px; }
|
|
|
-.align-left { text-align: left; }
|
|
|
-.align-center { text-align: center; }
|
|
|
-.align-right { text-align: right; }
|
|
|
-.grid-item .label {
|
|
|
- font-size: 12px;
|
|
|
- color: #969799;
|
|
|
- margin-bottom: 4px;
|
|
|
-}
|
|
|
-.grid-item .value {
|
|
|
- font-size: 14px;
|
|
|
- color: #323233;
|
|
|
- font-weight: 500;
|
|
|
-}
|
|
|
-
|
|
|
-.action-bar {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- margin-top: 16px;
|
|
|
- font-size: 13px;
|
|
|
- color: #969799;
|
|
|
-}
|
|
|
-.footer-btn { margin-top: 16px; }
|
|
|
-.close-btn { font-size: 16px; font-weight: 500; letter-spacing: 1px; }
|
|
|
-
|
|
|
-///* 容器(即 <label>)的样式 */
|
|
|
-//.custom-checkbox-container {
|
|
|
-// display: block; /* 确保它占满一行 */
|
|
|
-// position: relative; /* 方便定位子元素 */
|
|
|
-// padding-left: 30px; /* 为自定义方框留出空间 */
|
|
|
-// margin-bottom: 12px;
|
|
|
-// cursor: pointer; /* 鼠标悬停时显示手型 */
|
|
|
-// font-size: 16px;
|
|
|
-// user-select: none; /* 防止文本被选中 */
|
|
|
-//}
|
|
|
-//
|
|
|
-///* 隐藏浏览器默认的复选框 */
|
|
|
-//.custom-checkbox-container input {
|
|
|
-// position: absolute;
|
|
|
-// opacity: 0; /* 彻底隐藏 */
|
|
|
-// cursor: pointer;
|
|
|
-// height: 0;
|
|
|
-// width: 0;
|
|
|
-//}
|
|
|
-//
|
|
|
-///* 自定义复选框的样式(即 <span>.checkmark) */
|
|
|
-//.checkmark {
|
|
|
-// position: absolute;
|
|
|
-// top: 0;
|
|
|
-// left: 0;
|
|
|
-// height: 20px;
|
|
|
-// width: 20px;
|
|
|
-// background-color: #eee; /* 未选中时的背景色 */
|
|
|
-// border-radius: 4px; /* 略微圆角 */
|
|
|
-// border: 1px solid #ccc;
|
|
|
-//}
|
|
|
-//
|
|
|
-///* 鼠标悬停时(未选中状态),改变背景色 */
|
|
|
-//.custom-checkbox-container:hover input ~ .checkmark {
|
|
|
-// background-color: #ccc;
|
|
|
-//}
|
|
|
-//
|
|
|
-///* 选中状态:当 input 被选中时,改变 .checkmark 的背景色 */
|
|
|
-//.custom-checkbox-container input:checked ~ .checkmark {
|
|
|
-// background-color: #2196F3; /* 选中时的背景色(蓝色) */
|
|
|
-// border: 1px solid #2196F3;
|
|
|
-//}
|
|
|
-//
|
|
|
-///* 创建自定义勾(在 .checkmark 内部使用 :after 伪元素) */
|
|
|
-//.checkmark:after {
|
|
|
-// content: "";
|
|
|
-// position: absolute;
|
|
|
-// display: none; /* 默认隐藏 */
|
|
|
-//}
|
|
|
-//
|
|
|
-///* 选中状态:当 input 被选中时,显示自定义勾 */
|
|
|
-//.custom-checkbox-container input:checked ~ .checkmark:after {
|
|
|
-// display: block;
|
|
|
-//}
|
|
|
-//
|
|
|
-///* 样式化自定义勾(让它看起来像个勾) */
|
|
|
-//.custom-checkbox-container .checkmark:after {
|
|
|
-// /* 调整位置 */
|
|
|
-// left: 6px;
|
|
|
-// top: 2px;
|
|
|
-// /* 调整大小和形状,利用 border 模拟对勾 */
|
|
|
-// width: 5px;
|
|
|
-// height: 10px;
|
|
|
-// border: solid white; /* 勾的颜色 */
|
|
|
-// border-width: 0 3px 3px 0; /* 只有右边和底部有边框 */
|
|
|
-// /* 旋转 - 45 度使其成为对勾形状 */
|
|
|
-// transform: rotate(45deg);
|
|
|
-//}
|
|
|
|
|
|
+/* 容器基础样式,基于 375px 设计稿 */
|
|
|
+:deep(.van-checkbox__icon--square .van-icon) {
|
|
|
+ /* 这里的 4px 是圆角大小,数值越大越圆 */
|
|
|
+ border-radius: 2px !important;}
|
|
|
.market {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
@@ -856,6 +330,19 @@
|
|
|
align-items: flex-end;
|
|
|
width: 349px;
|
|
|
height: 24px;
|
|
|
+ div:nth-child(1){
|
|
|
+ position: relative;
|
|
|
+ .active-line{
|
|
|
+ position: absolute;
|
|
|
+ bottom: -6px;
|
|
|
+ left: 50%;
|
|
|
+ transform: translateX(-50%);
|
|
|
+ width: 20px;
|
|
|
+ height: 3px;
|
|
|
+ background-color: #323233;
|
|
|
+ border-radius: 2px;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
.sys-notifi {
|
|
|
margin-left: 35px;
|
|
|
@@ -980,6 +467,7 @@
|
|
|
.menu-content-r{
|
|
|
flex: 1;
|
|
|
flex-basis: 63.5px;
|
|
|
+ max-width: 204.25px;
|
|
|
.menu-content-rb:nth-of-type(4){
|
|
|
background-color: transparent;
|
|
|
height:20px;
|
|
|
@@ -1082,6 +570,9 @@
|
|
|
span:nth-child(2){
|
|
|
margin:0 9px 0 9px;
|
|
|
}
|
|
|
+ }
|
|
|
+ .menu-content-rb1s{
|
|
|
+ margin-left: 6px;
|
|
|
}
|
|
|
span{
|
|
|
padding-right: 0;
|