From 41f60633cbdaed2c633f90e43ca0c83fb3fdb975 Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Fri, 19 Apr 2024 04:30:14 +0800
Subject: [PATCH] first

---
 src/components/perpetual-open/index.vue |   51 +++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 39 insertions(+), 12 deletions(-)

diff --git a/src/components/perpetual-open/index.vue b/src/components/perpetual-open/index.vue
index 3b18666..9e127cd 100644
--- a/src/components/perpetual-open/index.vue
+++ b/src/components/perpetual-open/index.vue
@@ -2,20 +2,42 @@
   <!-- 永续合约开仓页 -->
   <div class="perpetual-open">
     <!-- 隐藏杠杠   全仓     k 线图入口 -->
-    <!-- <div class="flex header-open">
+    <div class="flex header-open">
       <div class="flex flex-1 pt-34">
-        <div class="w-180 h-60 lh-60 text-center rounded inputBackground textColor">
+        <div
+          class="w-180 h-60 lh-60 text-center rounded inputBackground textColor"
+        >
           {{ $t("全仓") }}
         </div>
-        <div class="w-140 h-60 lh-60 ml-29 rounded tabBackground textColor" v-if="selectIndex / 1 === 1">
-          <div @click="showOptions = !showOptions" style="height: 100%; box-sizing: border-box"
-            class="relative word-30 pl-28 pr-10 w-140 h-60 select-wrap flex justify-between items-center">
+        <div
+          class="w-140 h-60 lh-60 ml-29 rounded tabBackground textColor"
+          v-if="selectIndex / 1 === 1"
+        >
+          <div
+            @click="showOptions = !showOptions"
+            style="height: 100%; box-sizing: border-box"
+            class="relative word-30 pl-28 pr-10 w-140 h-60 select-wrap flex justify-between items-center"
+          >
             {{ form.lever_rate }}x
-            <img src="../../assets/image/public/grey-select.png" alt="select-icon" class="w-22 h-11" />
-            <div v-if="showOptions" class="options w-140 absolute top-97 left-0 z-10">
-              <div class="w-full" @click.stop="handleChoose(item)" :class="{
-                'option-active': form.lever_rate === item.lever_rate,
-              }" :value="item.lever_rate" v-for="item in initData.lever" :key="item.id">
+            <img
+              src="../../assets/image/public/grey-select.png"
+              alt="select-icon"
+              class="w-22 h-11"
+            />
+            <div
+              v-if="showOptions"
+              class="options w-140 absolute top-97 left-0 z-10"
+            >
+              <div
+                class="w-full"
+                @click.stop="handleChoose(item)"
+                :class="{
+                  'option-active': form.lever_rate === item.lever_rate,
+                }"
+                :value="item.lever_rate"
+                v-for="item in initData.lever"
+                :key="item.id"
+              >
                 {{ item.lever_rate }}x
               </div>
             </div>
@@ -23,9 +45,14 @@
         </div>
       </div>
       <div>
-        <img src="../../assets/image/public/k-line.png" alt="line-img" class="w-38 h-35" @click="jump" />
+        <img
+          src="../../assets/image/public/k-line.png"
+          alt="line-img"
+          class="w-38 h-35"
+          @click="jump"
+        />
       </div>
-    </div> -->
+    </div>
     <div class="pt-30 pb-20">
       <div class="flex">
         <div class="mr-30">

--
Gitblit v1.9.3