jhzh
2024-03-23 0d29d9a2bf0d893a67f1263bb9525131a50a2128
src/page/user/Warehouse.vue
@@ -1,7 +1,31 @@
<template>
  <div class="warehouse_page">
    <div class="content">
      <div class="top_title" :class="titleDialog ? 'active' : ''" ref="topTitle">
         <!-- <div class="search">
        <div class="search_content">
          <div class="left_search">
            <div class="search_img">
              <img src="../../assets/img/searchs.png" alt />
            </div>
            <div class="search_input">
              <input type="text" class="searchs" :placeholder="$t('hj37')" ref="search" id="sousuo" v-model="gpcode"
                @input="gpinput" />
            </div>
          </div>
        </div>
      </div> -->
         <div style="width: 100%;height: 10px;"></div>
         <div class="top_class">
            <div class="top_class_box">
               <div :class="typeindex==0?'top_class_box_left':'top_class_box_right'" @click="typeclick(0)">
                  {{$t('ydgs')}}
               </div>
               <div :class="typeindex==1?'top_class_box_left':'top_class_box_right'" @click="typeclick(1)">
                  {{$t('mggs')}}
               </div>
            </div>
         </div>
         <!-- <div class="top_title" :class="titleDialog ? 'active' : ''" ref="topTitle">
        <div class="titles">
          <div class="left_title" @click="handleOpenDialog()">
            <div class="title">
@@ -37,157 +61,280 @@
            <span>{{ '' }}</span>
          </div>
        </div>
      </div>
      </div> -->
      <div class="warehouse_card">
        <div class="top_card">
            <div class="top_card" v-if="typeindex == 0">
          <div class="card_content">
            <div class="t_title">
              <span>{{ $t('hj49') }}</span>
                     <span>{{ $t('ihj49') }}</span>
            </div>
            <div class="t_price">
              <!-- <span class="price">{{ '49,619.05' }}</span>
              <span class="profits">{{ '-370.00' }}</span> -->
              <p v-if="this.$store.state.settingForm.indexDisplay && !this.$store.state.settingForm.futuresDisplay"
                class="price">¥{{ $store.state.hide ? '****' : Number($store.state.userInfo.userAmt +
                    $store.state.userInfo.userIndexAmt).toFixed(2)
                }}</p>
              <p v-else-if="!this.$store.state.settingForm.indexDisplay && this.$store.state.settingForm.futuresDisplay"
                class="price">¥{{ $store.state.hide ? '****' : Number($store.state.userInfo.userAmt +
                    $store.state.userInfo.userFuturesAmt).toFixed(2)
                }}</p>
              <p v-else-if="!this.$store.state.settingForm.indexDisplay && !this.$store.state.settingForm.futuresDisplay"
                class="price">¥{{ $store.state.hide ? '****' : Number($store.state.userInfo.userAmt).toFixed(2) }}</p>
              <p v-else-if="this.$store.state.settingForm.indexDisplay && this.$store.state.settingForm.futuresDisplay"
                class="price">¥{{ $store.state.hide ? '****' : Number($store.state.userInfo.userAmt +
                    $store.state.userInfo.userIndexAmt + $store.state.userInfo.userFuturesAmt).toFixed(2)
                }}</p>
              <!-- <span class="profits" v-show="titleIndex == 1">{{ '¥ ' + $store.state.userInfo.userIndexAmt }}</span>
              <span class="profits" v-show="titleIndex == 0">{{ '¥ ' + $store.state.userInfo.userAmt }}</span>
              <span class="profits" v-show="titleIndex == 2">{{ '¥ ' + $store.state.userInfo.userFuturesAmt }}</span> -->
                     <p class="price">{{$store.state.userInfo.userAmt}}</p>
                     <img src="../../../static/img/ydgq.png"
                        style="width: 17px;height: 17px;border-radius: 25px;" />
            </div>
                  <div class="ydy_box">≈${{$store.state.userInfo.userAmtToUsdt}}</div>
            <div class="balance">
              <div class="left_titles">
                {{ $t('hj50') }}
                        {{ $t('disan') }}
              </div>
              <div class="right_titles">
                {{ $t('hj54') }}
                        {{ $t('disana') }}
              </div>
            </div>
            <div class="num">
              <div class="left_price">
                <span v-show="titleIndex == 1">{{ $store.state.hide ? '****' :
                    Number(($store.state.userInfo.enableIndexAmt +
                      $store.state.userInfo.allIndexFreezAmt) * indexSettingInfo.forceSellPercent).toFixed(2)
                }}</span>
                <span v-show="titleIndex == 0">{{ $store.state.hide ? '****' : Number(($store.state.userInfo.enableAmt
                    +
                    $store.state.userInfo.allFreezAmt) * settingInfo.forceStopPercent).toFixed(2)
                }} </span>
                <span v-show="titleIndex == 2">{{ $store.state.hide ? '****' :
                    Number(($store.state.userInfo.enableFuturesAmt +
                      $store.state.userInfo.allFuturesFreezAmt) * futuresSettingInfo.forceSellPercent).toFixed(2)
                }}</span>
                        <span>${{$store.state.userInfo.enableAmt}}</span>
              </div>
              <div class="right_margin">
                <span v-show="titleIndex == 1">{{ '¥ ' + $store.state.userInfo.enableIndexAmt }}</span>
                <span v-show="titleIndex == 0">{{ '¥ ' + $store.state.userInfo.enableAmt }}</span>
                        <span>${{$store.state.userInfo.allFreezAmt}}</span>
                     </div>
                  </div>
                  <div style="width: 100%;display: flex;">
                     <div class="ydy_box" style="width: 50%;">≈${{$store.state.userInfo.enableAmtToUsdt}}</div>
                     <div class="ydy_box" style="width: 50%;">≈${{$store.state.userInfo.allFreezAmtToUsdt}}</div>
                  </div>
                <span v-show="titleIndex == 2">{{ '¥ ' + $store.state.userInfo.enableFuturesAmt }}</span>
              </div>
            </div>
            <div class="margin">
              <div class="left_titles">
                {{ $t('hj55') }}
                        {{ $t('aym') }}
              </div>
              <div class="right_titles">
                {{ $t('hj56') }}
                        {{ $t('ysa') }}
              </div>
            </div>
            <div class="prices">
              <div class="left_titles">
                <span class="numDemo" v-show="titleIndex == 1">{{ '¥ ' + $store.state.userInfo.allIndexFreezAmt ?
                    $store.state.userInfo.allIndexFreezAmt : '0.00'
                }}</span>
                <span class="numDemo" v-show="titleIndex == 0">{{ '¥ ' +
                    $store.state.userInfo.allFreezAmt ? $store.state.userInfo.allFreezAmt : '0.00'
                }}</span>
                <span class="numDemo" v-show="titleIndex == 2">{{ '¥ ' +
                    $store.state.userInfo.djzj ? $store.state.userInfo.djzj : '0.00'
                }}</span>
                        <span class="numDemo">$0.00</span>
              </div>
              <div class="right_titles">
                <span class="numDemo"
                  :class="$store.state.userInfo.allIndexProfitAndLose > 0 ? ' red' : $store.state.userInfo.allIndexProfitAndLose < 0 ? ' green' : ''"
                  v-show="titleIndex == 1">{{ '¥ ' +
                      $store.state.userInfo.allIndexProfitAndLose ? $store.state.userInfo.allIndexProfitAndLose : '0.00'
                  }}</span>
                <span class="numDemo"
                  :class="$store.state.userInfo.allProfitAndLose > 0 ? ' red' : $store.state.userInfo.allProfitAndLose < 0 ? ' green' : ''"
                  v-show="titleIndex == 0">{{ '¥ ' +
                      $store.state.userInfo.allProfitAndLose ? $store.state.userInfo.allProfitAndLose : '0.00'
                  }}</span>
                <span class="numDemo"
                  :class="$store.state.userInfo.allFuturesProfitAndLose > 0 ? 'red' : $store.state.userInfo.allFuturesProfitAndLose < 0 ? ' green' : ''"
                  v-show="titleIndex == 2">{{
                      '¥' + $store.state.userInfo.allFuturesProfitAndLose ?
                        Number($store.state.userInfo.allFuturesProfitAndLose).toFixed(2) : '0.00'
                  }}</span>
                        <span>$0.00</span>
              </div>
            </div>
                  <div style="width: 100%;display: flex;">
                     <div class="ydy_box" style="width: 50%;">≈$0.00</div>
                     <div class="ydy_box" style="width: 50%;">≈$0.00</div>
                  </div>
               </div>
            </div>
            <div class="top_card" v-else>
               <div class="card_content">
                  <div class="t_title">
                     <span>{{ $t('uszzcaa') }}</span>
                  </div>
                  <div class="t_price">
                     <p class="price">{{$store.state.userInfo.userIndexAmt}}</p>
                     <img src="../../../static/img/usgq.png"
                        style="width: 17px;height: 17px;border-radius: 25px;" />
                  </div>
                  <div class="balance">
                     <div class="left_titles">
                        {{ $t('uszzc') }}
                     </div>
                     <div class="right_titles">
                        {{ $t('djzjmg') }}
                     </div>
                  </div>
                  <div class="num">
                     <div class="left_price">
                        <span>{{$store.state.userInfo.enableIndexAmt}}</span>
                     </div>
                     <div class="right_margin">
                        <span>{{ $store.state.userInfo.usAllFreezAmt }}</span>
                     </div>
                  </div>
                  <div class="margin">
                     <div class="left_titles">
                        {{ $t('accumbn') }}
                     </div>
                     <div class="right_titles">
                        {{ $t('tolaszasdf') }}
                     </div>
                  </div>
                  <div class="prices">
                     <div class="left_titles">
                        <span>{{$store.state.userInfo.usAllProfitAndLose}}</span>
                     </div>
                     <div class="right_titles">
                        <span class="numDemo">0.00</span>
                     </div>
                  </div>
               </div>
            </div>
            <div class="click_box">
               <div :class="zjtype==0?'click_box_left':'click_box_right'" @click="clickzj(0)">{{$t('nwetitle')}}
                  <div v-if="zjtype==0" class="click_box_g"></div>
               </div>
               <div :class="zjtype==1?'click_box_left':'click_box_right'" @click="clickzj(1)">{{$t('nwetitlea')}}
                  <div v-if="zjtype==1" class="click_box_g"></div>
          </div>
        </div>
        <div class="tabs_card">
          <div class="tabs_card_content">
            <div class="tabs_top_title">
              <div class="title_items" v-for="(item, index) in tabsArr" :key="index"
                @click="handleTabsClick(item, index)" :class="index == 0 ? 'kuan' : 'kuan'">
                <span :class="tabsCurrentIndex === index ? 'active' : ''">
                  {{ item }}{{ index == 0 ? '(' + total + ')' : index == 1 ? '(' + totalss + ')' : index == 2 ? '(' +
                      totals + ')' : '(' + xgTotal + ')'
                  }}</span>
              </div>
            </div>
            <!-- 持仓 currentIndex: 0 -->
            <div class="over">
              <van-list v-model="loading" :finished="finished" :finished-text="$t('hj43')"
                v-show="tabsCurrentIndex === 0 && total != 0" @load="onLoad" :immediate-check="immediate">
                <div class="tabs_o">
                  <div class="tabs_o_items" v-for="(item, index) in tabsPositionNumArr" :key="item.buyOrderId">
                     <van-list v-model="loading" :finished="finished" v-if="zjtype==0&&cclist.length"
                        :finished-text="$t('hj43')" @load="onLoad" >
                        <div v-if="cclist.length>0" class="tabs_o">
                           <div class="tabs_o_items"  v-for="(item) in cclist"
                              :key="item.buyOrderId">
                    <div class="tabs_o_title">
                      <span class="title">{{ item.stockName ? item.stockName : item.indexName }}</span>
                      <span class="buy_to_sell" :class="item.orderDirection == '买跌' ? 'maichu' : 'mairu'">
                        {{ item.orderDirection == "买跌" ? $t('hj84') : $t('hj85') }}</span>
                      <span class="multiple">{{ item.allProfitAndLose }}</span>
                      <span class="nums">{{ item.orderNum / 100 + $t('hj117') }}</span>
                                 <div style="width: calc(100% - 3.5rem);display: flex;">
                                    <div>
                                       <span
                                          class="title">{{ item.stockName ? item.stockName : item.indexName }}</span>
                    </div>
                    <div class="center_price">
                      <div class="profit">
                        <span>{{ item.profitAndLose }}</span>
                                    <div>
                                       <div class="buy_to_sell"
                                          :class="item.orderDirection == '买跌' ? 'maichu' : 'mairu'">
                                          {{ item.orderDirection == "买跌" ? $t('hj84') : $t('hj85') }}
                      </div>
                      <div class="start_price jiantou">
                        <span>{{ item.buyOrderPrice }}</span>
                      </div>
                      <div class="new_price">
                        <span>{{ item.now_price }}</span>
                                 </div>
                                 <div class="right_btn pingbtn" @click="getpingcang(item.positionSn)">
                                    <span style="margin-right: 0;width: 110px;">{{ $t('hj121') }}</span>
                      </div>
                    </div>
                    <div class="bottom_price_title">
                      <div class="profit_title">
                        <span>{{ $t('hj118') }}</span>
                      </div>
                      <div class="start_price">
                        <span>{{ $t('hj119') }}</span>
                                    <span>P/L(INR)</span>
                      </div>
                      <div class="new_price">
                        <span>{{ $t('hj120') }}</span>
                                    <span>{{ $t('shou') }}</span>
                      </div>
                    </div>
                    <div class="right_btn pingbtn" @click="getpingcang(item.positionSn)">
                      <span>{{ $t('hj121') }}</span>
                              <div class="center_price">
                                 <div class="start_price">
                                    <span
                                       :style="item.profitAndLose>0?'color: rgb(3, 173, 143);':'color:rgb(208, 75, 100);'">{{ item.profitAndLose }}</span>
                    </div>
                                 <div class="new_price">
                                    <span>{{ item.orderNum }}</span>
                                 </div>
                              </div>
                              <div class="bottom_price_title">
                                 <div class="new_price">
                                    <span>{{$t('ssdd')}}</span>
                                 </div>
                                 <div class="start_price" style="width: 123px;">
                                    <span style="color: #000;">{{ item.buyOrderPrice }}
                                       <span style="color: #bdbdbd;">/{{ item.now_price }}</span>
                                    </span>
                                 </div>
                              </div>
                              <div class="bottom_price_title">
                                 <div class="new_price">
                                    <span>{{$t('whpb')}}</span>
                                 </div>
                                 <div class="start_price">
                                    <span>{{ item.orderTotalPrice }}</span>
                                 </div>
                              </div>
                              <div class="bottom_price_title">
                                 <div class="new_price">
                                    <span>{{$t('gmsj')}}</span>
                                 </div>
                                 <div class="start_price">
                                    <span>{{ item.buyOrderTime | gettime }}</span>
                                 </div>
                              </div>
                           </div>
                        </div>
                     </van-list>
                     <van-list v-model="loading" v-if="zjtype==1" :finished="finished"
                        :finished-text="$t('hj43')" @load="onLoad" :immediate-check="immediate">
                        <div class="tabs_o">
                           <div class="tabs_o_items" v-if="cclist.length>0" v-for="(item) in cclist"
                              :key="item.buyOrderId">
                              <div class="tabs_o_title">
                                 <div style="width: calc(100% - 3.5rem);display: flex;">
                                    <div>
                                       <span
                                          class="title">{{ item.stockName ? item.stockName : item.indexName }}</span>
                                    </div>
                                    <div>
                                       <div class="buy_to_sell"
                                          :class="item.orderDirection == '买跌' ? 'maichu' : 'mairu'">
                                          {{ item.orderDirection == "买跌" ? $t('hj84') : $t('hj85') }}
                                       </div>
                                    </div>
                                 </div>
                                 <!-- <div class="right_btn pingbtn" @click="getpingcang(item.positionSn)">
                                    <span style="margin-right: 0;">{{ $t('hj121') }}</span>
                                 </div> -->
                              </div>
                              <div class="bottom_price_title">
                                 <div class="start_price">
                                    <span>P/L(INR)</span>
                                 </div>
                                 <div class="new_price">
                                    <span>{{ $t('shou') }}</span>
                                 </div>
                              </div>
                              <div class="center_price">
                                 <div class="start_price">
                                    <span
                                       :style="item.profitAndLose>0?'color: rgb(3, 173, 143);':'color:rgb(208, 75, 100);'">{{ item.profitAndLose }}</span>
                                 </div>
                                 <div class="new_price">
                                    <span>{{ item.orderNum }}</span>
                                 </div>
                              </div>
                              <div class="bottom_price_title">
                                 <div class="new_price">
                                    <span>{{$t('ssdd')}}</span>
                                 </div>
                                 <div class="start_price">
                                    <span style="color: #000;">{{ item.buyOrderPrice }}
                                    </span>
                                 </div>
                              </div>
                              <div class="bottom_price_title">
                                 <div class="new_price">
                                    <span>{{$t('whpb')}}</span>
                                 </div>
                                 <div class="start_price">
                                    <span>{{ item.orderTotalPrice }}</span>
                                 </div>
                              </div>
                              <div class="bottom_price_title">
                                 <div class="new_price">
                                    <span>{{$t('whpb')}}</span>
                                 </div>
                                 <div class="start_price">
                                    <span>{{ item.sellOrderPrice }}</span>
                                 </div>
                              </div>
                              <div class="bottom_price_title">
                                 <div class="new_price">
                                    <span>{{$t('gmsj')}}</span>
                                 </div>
                                 <div class="start_price">
                                    <span>{{ item.buyOrderTime | gettime }}</span>
                                 </div>
                              </div>
                              <div class="bottom_price_title">
                                 <div class="new_price">
                                    <span>{{$t('gbsj')}}</span>
                                 </div>
                                 <div class="start_price">
                                    <span>{{ item.sellOrderTime | gettime }}</span>
                                 </div>
                              </div>
                  </div>
                </div>
              </van-list>
@@ -203,8 +350,6 @@
                </div>
              </div>
              <!-- 挂单 -->
              <div class="waiting" v-if="totalss == 0 && tabsCurrentIndex === 1">
                <div class="waiting_box">
@@ -218,19 +363,31 @@
                </div>
              </div>
              <van-list v-model="loadingss" :finished="finishedss" :finished-text="$t('hj43')"
                v-show="tabsCurrentIndex === 1 && totalss != 0" @load="onLoad" :immediate-check="immediate">
                        v-if="tabsCurrentIndex === 1 && totalss != 0" :immediate-check="immediate">
                <div class="tabs_o">
                  <div class="tabs_o_items" v-for="(item, index) in tabsOrderList" :key="item.id">
                           <div class="tabs_o_items" v-if="tabsOrderList.length>0"
                              v-for="(item) in tabsOrderList" :key="item.id">
                    <div class="tabs_o_title">
                      <span class="title">{{ item.stockName ? item.stockName : item.indexName }}</span>
                      <span class="buy_to_sell" :class="item.buyType == 1 ? 'maichu' : 'mairu'">{{
                                 <div>
                                    <span
                                       class="title">{{ item.stockName ? item.stockName : item.indexName }}</span>
                                    <span class="buy_to_sell"
                                       :class="item.buyType == 1 ? 'maichu' : 'mairu'">{{
                          item.buyType == 1 ? $t('hj84') : $t('hj85')
                      }}</span>
                                    <span class="buy_to_sell"
                                       :class="item.status == 1 ? 'mairu' : 'maichu'">{{
                          item.status == 1 ? $t('hj254') : $t('hj255')
                        }}</span>
                      <span class="multiple">{{ item.lever }}X</span>
                      <span class="nums">{{ item.buyNum / 100 + $t('hj117') }}</span>
                                    <span class="nums">{{ item.buyNum + $t('hj117') }}</span>
                                 </div>
                                 <div class="right_btn pingbtn" @click="gdClose(item)">
                                    <span style="margin-right: 0;">{{ $t('hj126') }}</span>
                                 </div>
                    </div>
                    <div class="center_price">
                      <div class="start_price jiantou">
                        <span>{{ item.targetPrice }}</span>
                      </div>
@@ -239,7 +396,6 @@
                      </div>
                    </div>
                    <div class="bottom_price_title">
                      <div class="start_price">
                        <span>{{ $t('hj125') }}</span>
                      </div>
@@ -247,15 +403,9 @@
                        <span>{{ $t('hj120') }}</span>
                      </div>
                    </div>
                    <div class="right_btn" @click="gdClose(item)">
                      <span>{{ $t('hj126') }}</span>
                    </div>
                  </div>
                </div>
              </van-list>
              <!-- 平仓 -->
              <div class="waiting" v-if="totals == 0 && tabsCurrentIndex === 2">
@@ -270,28 +420,35 @@
                </div>
              </div>
              <van-list v-model="loadings" :finished="finisheds" :finished-text="$t('hj43')" @load="onLoads"
                :immediate-check="immediate" v-show="tabsCurrentIndex === 2 && totals != 0">
                     <van-list v-model="loadings" :finished="finisheds" :finished-text="$t('hj43')"
                        @load="onLoads" :immediate-check="immediate"
                        v-if="tabsCurrentIndex === 2 && totals != 0">
                <div class="tabs_o">
                  <div class="tabs_o_items oes" v-for="(item, index) in tabsPcArr" :key="index">
                           <div class="tabs_o_items oes" v-if="tabsPcArr.length>0"
                              v-for="(item, index) in tabsPcArr" :key="index">
                    <div class="tabs_o_title">
                      <span class="title">{{ item.stockName ? item.stockName : item.indexName }}</span>
                      <span class="buy_to_sell" :class="item.orderDirection == '买跌' ? 'maichu' : 'mairu'">{{
                                 <div>
                                    <span
                                       class="title">{{ item.stockName ? item.stockName : item.indexName }}</span>
                                    <span class="buy_to_sell"
                                       :class="item.orderDirection == '买跌' ? 'maichu' : 'mairu'">{{
                          item.orderDirection == "买跌" ?
                            $t('hj84') : $t('hj85')
                      }}</span>
                      <span class="multiple">{{ item.allProfitAndLose }}</span>
                      <span class="nums">{{ item.orderNum / 100 + $t('hj117') }}</span>
                                    <span class="nums">{{ item.orderNum + $t('hj117') }}</span>
                                 </div>
                                 <div class="right_count"
                                    :class="item.profitAndLose > 0 ? 'red' : item.profitAndLose == 0 ? '' : 'green'">
                                    <span style="margin-right: 0;">{{ item.profitAndLose }}</span>
                                 </div>
                    </div>
                    <div class="bottom_price_title">
                      <div class="profit_res">
                        <span>{{ $t('hj128') }}: {{ item.buyOrderTime | gettime }}</span>
                      </div>
                    </div>
                    <div class="right_count"
                      :class="item.profitAndLose > 0 ? 'red' : item.profitAndLose == 0 ? '' : 'green'">
                      <span>{{ item.profitAndLose }}</span>
                    </div>
                  </div>
                </div>
              </van-list>
@@ -301,16 +458,18 @@
                  <div class="img_cont">
                    <img src="../../assets/img/zhaobudao.png" alt />
                    <span class="gd">{{ $t('hj129') }}</span>
                    <div class="trading" @click="$router.push({ path: '/trading-list', query: { listid: 3 } })">
                              <div class="trading"
                                 @click="$router.push({ path: '/trading-list', query: { listid: 5 } })">
                      <span>{{ $t('hj123') }}</span>
                    </div>
                  </div>
                </div>
              </div>
              <van-list v-model="loadingXg" :finished="finishedXg" :finished-text="$t('hj43')"
                v-show="tabsCurrentIndex === 3 && xgTotal != 0" @load="onLoadXg" :immediate-check="immediate">
                        v-show="tabsCurrentIndex === 3 && xgTotal != 0" @load="onLoadXg"
                        :immediate-check="immediate">
                <div class="tabs_o">
                  <div class="tabs_o_items" v-for="(item, index) in tabsXgArr" :key="item.id">
                           <div class="tabs_o_items" v-for="(item) in tabsXgArr" :key="item.id">
                    <div class="tabs_o_title">
                      <span class="title">{{ item.newName }}</span>
                      <span class="buy_to_sell" :class="item.type == 1 ? 'mairu' : 'maichu'">{{
@@ -319,13 +478,17 @@
                      <!-- <span class="multiple">{{ item.lever  }}X</span>
                      <span class="nums">{{ item.buyNum / 100 + '手' }}</span> -->
                    </div>
                              <div style="display: flex;align-items: center;justify-content: space-between;">
                                 <div style="width: 100%;">
                    <div class="center_price">
                      <div class="start_price jiantou">
                        <span>{{ item.buyPrice }}</span>
                      </div>
                      <div class="new_price">
                                       <div class="new_price" v-if="item.status != 3">
                        <span>{{ item.applyNums }}</span>
                                       </div>
                                       <div class="new_price" v-else>
                                          <span>{{ item.applyNumber }}</span>
                      </div>
                    </div>
                    <div class="bottom_price_title">
@@ -333,23 +496,36 @@
                      <div class="start_price">
                        <span>{{ $t('hj130') }}</span>
                      </div>
                      <div class="new_price">
                                       <div class="new_price" v-if="item.status != 3">
                        <span>{{ $t('hj57') }}</span>
                      </div>
                                       <div class="new_price" v-else>
                                          <span>{{ $t('hj253') }}</span>
                    </div>
                    <div class="right_btn" @click="zcsg(item)" :class="item.status == 1 ? 'pink' : item.status == 2 ? 'red'
                    : item.status == 3 ? 'greeen' : item.status == 4 ? 'blue' : item.status == 5 ? 'purple' : ''">
                                    </div>
                                 </div>
                                 <div class="right_btn" style="padding: 0 0.2rem;" @click="zcsg(item)"
                                    :class="item.status == 1 ? 'pink' : item.status == 2 ? 'red'
                          : (item.status == 3 && item.type != 1) ? 'green' : item.status == 4 ? 'blue' : item.status == 5 ? 'purple' : ''"
                                    v-if="!(item.type == 1 && item.status == 3)">
                      <span>{{ item.status == 1 ?
                          $t('hj131') : item.status == 2 ? $t('hj132')
                            : item.status == 3 ? $t('hj133') : item.status == 4 ? $t('hj134') : item.status == 5 ?
                            : (item.status == 3 && item.type != 1) ? $t('hj133') : item.status == 4 ? $t('hj134') :
                              item.status == 5 ?
                              $t('hj135')
                              : ''
                      }}</span>
                    </div>
                                 <div v-if="item.type == 1 && item.status == 3" class="right_btn pingbtn"
                                    style="width: 2rem !important;" @click="getrenjiao(item.id)">
                                    {{ $t('hj250') }}
                                 </div>
                              </div>
                  </div>
                </div>
              </van-list>
            </div>
@@ -362,12 +538,17 @@
</template>
<script>
import { Toast } from 'vant';
import { MessageBox } from 'mint-ui'
import * as api from "@/axios/api";
   import {
      Toast
   } from 'vant'
   import {
      MessageBox
   } from 'mint-ui'
   import * as api from '@/axios/api'
export default {
  data() {
    return {
            zjtype: 0,
      tabsArr: [this.$t('hj2'), this.$t('hj109'), this.$t('hj136'), this.$t('hj3')],
      tabsCurrentIndex: 0,
      titleName: this.$t('hj114'),
@@ -377,6 +558,7 @@
      titleIndex: 0,
      settingInfo: {},
      tabsPcArr: [],
            typeindex: 0,
      titleDialog: false,
      total: 0,
      totals: 0,
@@ -388,44 +570,83 @@
      page: 1,
      pages: 1,
      pagess: 1,
            state: 0,
            pageSize: 15,
            pageNum: 1,
      immediate: false,
      loadings: false,
      loadingss: false,
      tabsOrderList: [],
      xgTotal: 0,
      tabsXgArr: [],
            cclist: [],
      loadingXg: false,
      finishedXg: false,
    };
            finishedXg: false
         }
  },
  mounted() {
    this.getListDetail();
    this.getUserInfo();
    this.getIndexSettingInfo();
    this.getSettingInfo();
    this.getFuturesSetting();
    this.getListDetails();
    this.getorderList();
    this.getNewXg();
         this.getListDetail()
         this.getUserInfo()
         this.getIndexSettingInfo()
         this.getSettingInfo()
         this.getFuturesSetting()
         this.getListDetails()
         this.getorderList()
         this.getNewXg()
         this.newchicang()
  },
  created() {
    if (this.$route.query.index) {
      this.tabsCurrentIndex = Number(this.$route.query.index)
    }
  },
  methods: {
         async newchicang() {
            let opt = {
               state: this.zjtype == 0 ? '0' : '1',
               stockType: this.typeindex == 0 ? 'IN' : 'US',
               pageNum: this.pageNum,
               pageSize: this.pageSize
            }
            let data = await api.getchicang(opt)
            if (data.status === 0) {
               this.cclist = data.data.list
            } else {
               Toast(data.msg)
            }
         },
         getrenjiao(val) {
            MessageBox.confirm(this.$t('hj251') + '?', this.$t('hj165'), {
               confirmButtonText: this.$t('hj161'),
               cancelButtonText: this.$t('hj106')
            }).then(async () => {
               let opt = {
                  id: val
               }
               let data = await api.submitSubscribe(opt)
               if (data.status === 0) {
                  Toast(data.msg)
                  this.finishedXg = false
                  this.getNewXg()
                  this.getUserInfo()
               } else {
                  Toast(data.msg)
               }
            }).catch(() => {
            })
         },
    getpingcang(val) {
      if (!this.$store.state.userInfo.idCard) {
        Toast(this.$t('hj138'))
        this.$router.push('/authentication')
        return
      }
      if (this.titleIndex == 0) {
            if (this.titleIndex === 0) {
               // 沪深京
        MessageBox.confirm(this.$t('hj139') + '?', this.$t('hj165'), {
          confirmButtonText: this.$t('hj161'),
          cancelButtonText: this.$t('hj106'),
                  cancelButtonText: this.$t('hj106')
        }).then(async () => {
          let opt = {
            positionSn: val
@@ -433,9 +654,15 @@
          let data = await api.sell(opt)
          if (data.status === 0) {
            Toast(data.msg)
            this.getzhishuListDetail();
            this.getzhishuListDetails();
            this.getorderList();
                     // 沪深京持仓
                     this.finished = false
                     this.getListDetail()
                     this.tabsPositionNumArr = []
                     // 沪深京平仓
                     this.finisheds = false
                     this.tabsPcArr = []
                     this.getListDetails()
          } else if (data.msg.indexOf('不在交易时段内') > -1) {
            Toast(this.$t('hj140'))
          } else {
@@ -443,11 +670,12 @@
          }
        }).catch(() => {
        });
               })
      } else {
               // 指数
        MessageBox.confirm(this.$t('hj139') + '?', this.$t('hj165'), {
          confirmButtonText: this.$t('hj161'),
          cancelButtonText: this.$t('hj106'),
                  cancelButtonText: this.$t('hj106')
        }).then(async () => {
          let opt = {
            positionSn: val
@@ -455,9 +683,14 @@
          let data = await api.sellIndex(opt)
          if (data.status === 0) {
            Toast(data.msg)
            this.getzhishuListDetail();
            this.getzhishuListDetails();
            this.getorderList();
                     // 指数持仓
                     this.finished = false
                     this.getzhishuListDetail()
                     this.tabsPositionNumArr = []
                     // 指数平仓
                     this.finisheds = false
                     this.tabsPcArr = []
                     this.getzhishuListDetails()
          } else if (data.msg.indexOf('不在交易时段内') > -1) {
            Toast(this.$t('hj140'))
          } else {
@@ -465,157 +698,189 @@
          }
        }).catch(() => {
        });
               })
      }
    },
    onLoad() {
      this.page++;
            // 持仓
            this.page++
      switch (this.titleIndex) {
        case 0:
          this.getListDetail();
          break;
                  // 沪深京持仓
                  this.getListDetail()
                  break
               case 1:
                  // 指数持仓
                  this.getzhishuListDetail()
                  break
        default:
          break;
                  break
      }
    },
    onLoads() {
      this.pages++;
            // 平仓
            this.pages++
      switch (this.titleIndex) {
        case 2:
          this.getListDetails();
          break;
               case 0:
                  // 沪深京平仓
                  this.getListDetails()
                  break
               case 1:
                  // 指数平仓
                  this.getzhishuListDetails()
                  break
        default:
          break;
                  break
      }
    },
    onLoadss() {
      this.pagess++;
            this.pagess++
      switch (this.titleIndex) {
        case 1:
          this.getorderList();
          break;
                  this.getorderList()
                  break
        default:
          break;
                  break
      }
    },
    onLoadXg() {
      this.getNewXg();
            // this.getNewXg();
    },
    async gdClose(item) {
      let opts = {
        id: item.id
      }
      let data = await api.delGuaDan(opts)
      if (data.status == 1) {
            if (data.status === 1) {
        Toast(this.$t('hj137'))
        this.page = 1;
        this.pages = 1;
        this.finished = false;
        this.finisheds = false;
        this.tabsPositionNumArr = [];
        this.tabsPcArr = [];
               this.page = 1
               this.pages = 1
               this.finished = false
               this.finisheds = false
               this.finishedss = false
               this.tabsPositionNumArr = []
               this.tabsPcArr = []
               this.tabsOrderList = []
        switch (this.titleIndex) {
          case 0:
            this.titleName = this.$t('hj114');
            this.getListDetail();
            this.getListDetails();
            this.getorderList();
            break;
                     this.titleName = this.$t('hj114')
                     this.getListDetail()
                     this.getListDetails()
                     this.getorderList()
                     break
          case 1:
            this.titleName = this.$t('hj115');
            this.getzhishuListDetail();
            this.getzhishuListDetails();
            this.getorderList();
            break;
                     this.titleName = this.$t('hj115')
                     this.getzhishuListDetail()
                     this.getzhishuListDetails()
                     this.getorderList()
                     break
          case 2:
            this.titleName = this.$t('hj116');
            this.getQhListDetail();
            this.getQhListDetails();
            this.getorderList();
            break;
                     this.titleName = this.$t('hj116')
                     // this.getQhListDetail();
                     // this.getQhListDetails();
                     this.getorderList()
                     break
          default:
            break;
                     break
        }
      } else {
        Toast(data.msg)
      }
    },
         clickzj(e) {
            console.log(e);
            this.zjtype = e
            this.newchicang()
         },
    zcsg(item) {
      this.$router.push({ path: '/trading-list', query: { listid: 3 } })
            this.$router.push({
               path: '/trading-list',
               query: {
                  listid: 5
               }
            })
    },
    SetTitleIndex(index) {
      //账户选项卡
      this.titleIndex = index;
      this.page = 1;
      this.pages = 1;
      this.finished = false;
      this.finisheds = false;
      this.tabsPositionNumArr = [];
      this.tabsPcArr = [];
            this.titleIndex = index
            this.page = 1
            this.pages = 1
            this.finished = false
            this.finisheds = false
            this.finishedss = false
            this.tabsPositionNumArr = []
            this.tabsPcArr = []
            this.tabsOrderList = []
      switch (index) {
        case 0:
          this.titleName = this.$t('hj114');
          this.getListDetail();
          this.getListDetails();
          this.getorderList();
                  this.titleName = this.$t('hj114')
                  this.getListDetail()
                  this.getListDetails()
                  this.getorderList()
          this.handleTabsClick('', 0)
          break;
                  break
        case 1:
          this.titleName = this.$t('hj115');
          this.getzhishuListDetail();
          this.getzhishuListDetails();
          this.getorderList();
                  this.titleName = this.$t('hj115')
                  this.getzhishuListDetail()
                  this.getzhishuListDetails()
                  this.getorderList()
          this.handleTabsClick('', 0)
          break;
                  break
        case 2:
          this.totalss = 0;
          this.totals = 0;
          this.total = 0;
          this.titleName = this.$t('hj116');
                  this.totalss = 0
                  this.totals = 0
                  this.total = 0
                  this.titleName = this.$t('hj116')
          this.handleTabsClick('', 3)
          // this.getQhListDetail();
          // this.getQhListDetails();
          // this.getorderList();
          break;
                  break
        default:
          break;
                  break
      }
      this.titleDialog = false;
            this.titleDialog = false
      if (navigator.vibrate) {
        // 支持
        navigator.vibrate([55]);
               navigator.vibrate([55])
      }
    },
    handleTabsClick(item, index) {
      //持仓已平仓选项卡
      this.tabsCurrentIndex = index;
      if (index == 3) {
        this.getNewXg();
            this.tabsCurrentIndex = index
            if (index === 3) {
               this.finishedXg = false
               this.getNewXg()
      }
      if (navigator.vibrate) {
        // 支持
        navigator.vibrate([55]);
               navigator.vibrate([55])
      }
    },
    handleOpenDialog() {
      this.titleDialog = !this.titleDialog;
            this.titleDialog = !this.titleDialog
    },
    //挂单
    async getorderList() {
      let opts = {}
      let data = await api.getorderList(opts);
      this.loadingss = false;
            let data = await api.getorderList(opts)
            this.loadingss = false
      if (data.status === 0) {
        if (data.data.length < 15) {
          this.finishedss = true;
        }
        data.data.forEach(element => {
          this.tabsOrderList.push(element)
        })
        this.totalss = data.data.length
               this.finishedss = true // 只有一页,所以锁住翻页。有需要刷新数据的时候在调用方法前重新解锁
      } else {
        Toast(data.msg)
      }
         },
         typeclick(e) {
            console.log(e);
            this.typeindex = e
            this.newchicang()
    },
    async getIndexSettingInfo() {
      // 网站设置信息 指数
@@ -660,19 +925,19 @@
    },
    async getListDetail() {
      //获取沪深我的持仓列表
      this.loading = true;
            this.loading = true
      let opt = {
        state: 0,
        stockCode: '', // 代码
        stockSpell: '', // 简拼
        pageNum: this.page,
        pageSize: 15,
               pageSize: 15
      }
      let data = await api.getOrderList(opt)
      this.loading = false;
            this.loading = false
      if (data.status === 0) {
        if (data.data.list.length < 15) {
          this.finished = true;
                  this.finished = true
        }
        data.data.list.forEach(element => {
          this.tabsPositionNumArr.push(element)
@@ -684,7 +949,7 @@
    },
    async getzhishuListDetail() {
      //获取指数持仓
      this.loading = true;
            this.loading = true
      let opt = {
        state: 0,
        stockCode: '', // 代码
@@ -693,10 +958,10 @@
        pageSize: this.pageSize
      }
      let data = await api.getIndexOrderList(opt)
      this.loading = false;
            this.loading = false
      if (data.status === 0) {
        if (data.data.list.length < 15) {
          this.finished = true;
                  this.finished = true
        }
        data.data.list.forEach(element => {
          this.tabsPositionNumArr.push(element)
@@ -708,7 +973,7 @@
    },
    async getQhListDetail() {
      //获取期货持仓
      this.loading = true;
            this.loading = true
      let opt = {
        state: 0,
        fnCode: '', // 代码
@@ -717,10 +982,10 @@
        pageSize: this.pageSize
      }
      let data = await api.getFuturesOrderList(opt)
      this.loading = false;
            this.loading = false
      if (data.status === 0) {
        if (data.data.list.length < 15) {
          this.finished = true;
                  this.finished = true
        }
        data.data.list.forEach(element => {
          this.tabsPositionNumArr.push(element)
@@ -732,7 +997,7 @@
    },
    async getListDetails() {
      //获取沪深我的平仓列表
      this.loadings = true;
            this.loadings = true
      let opt = {
        state: 1,
        stockCode: '', // 代码
@@ -741,10 +1006,10 @@
        pageSize: 15
      }
      let data = await api.getOrderList(opt)
      this.loadings = false;
            this.loadings = false
      if (data.status === 0) {
        if (data.data.list.length < 15) {
          this.finisheds = true;
                  this.finisheds = true
        }
        data.data.list.forEach(element => {
          this.tabsPcArr.push(element)
@@ -756,7 +1021,7 @@
    },
    async getzhishuListDetails() {
      //获取指数平仓
      this.loadings = true;
            this.loadings = true
      let opt = {
        state: 1,
        stockCode: '', // 代码
@@ -765,9 +1030,9 @@
        pageSize: 15
      }
      let data = await api.getIndexOrderList(opt)
      this.loadings = false;
            this.loadings = false
      if (data.data.list.length < 15) {
        this.finisheds = true;
               this.finisheds = true
      }
      if (data.status === 0) {
        data.data.list.forEach(element => {
@@ -780,7 +1045,7 @@
    },
    async getQhListDetails() {
      //获取期货平仓
      this.loadings = true;
            this.loadings = true
      let opt = {
        state: 1,
        fnCode: '', // 代码
@@ -789,10 +1054,10 @@
        pageSize: this.pageSize
      }
      let data = await api.getFuturesOrderList(opt)
      this.loadings = false;
            this.loadings = false
      if (data.status === 0) {
        if (data.data.list.length < 15) {
          this.finisheds = true;
                  this.finisheds = true
        }
        data.data.list.forEach(element => {
          this.tabsPcArr.push(element)
@@ -804,57 +1069,55 @@
    },
    async getNewXg() {
      //获取新股
      this.loadingXg = true;
      let opt = {
      }
            this.loadingXg = true
            let opt = {}
      let data = await api.getUserNewGuList(opt)
      this.loadingXg = false;
      if (data.data.length < 15) {
        this.finishedXg = true;
      }
            this.loadingXg = false
      if (data.status === 0) {
        this.tabsXgArr = data.data
        // data.data.list.forEach(element => {
        //   this.tabsXgArr.push(element)
        // })
        this.xgTotal = data.data.length
               this.finishedXg = true // 只有一页,所以锁住翻页。有需要刷新数据的时候在调用方法前重新解锁
      } else {
        Toast(data.msg)
      }
    },
         }
  },
  filters: {
    gettime(time) {
      if (!time) {
        return "";
               return ''
      }
      var nd = new Date(time);
      var y = nd.getFullYear();
      var mm = nd.getMonth() + 1;
      var d = nd.getDate();
      var h = nd.getHours();
      var m = nd.getMinutes();
      var c = nd.getSeconds();
            var nd = new Date(time)
            var y = nd.getFullYear()
            var mm = nd.getMonth() + 1
            var d = nd.getDate()
            var h = nd.getHours()
            var m = nd.getMinutes()
            var c = nd.getSeconds()
      if (mm < 10) {
        mm = "0" + mm;
               mm = '0' + mm
      }
      if (d < 10) {
        d = "0" + d;
               d = '0' + d
      }
      if (h < 10) {
        h = "0" + h;
               h = '0' + h
      }
      if (m < 10) {
        m = "0" + m;
               m = '0' + m
      }
      if (c < 10) {
        c = "0" + c;
               c = '0' + c
      }
      //17:35:2922-06-2022
      return y + '/' + mm + '/' + d + ' ' + h + ":" + m + ":" + c;
            // return y + '/' + mm + '/' + d + ' ' + h + ':' + m + ':' + c
            return mm + '/' + d + '/' + y + ' ' + h + ':' + m + ':' + c
    }
  },
};
      }
   }
</script>
<style scoped lang="less">
@@ -913,6 +1176,7 @@
.warehouse_page {
  width: 100%;
  height: calc(100% - 1.2974rem);
      background: linear-gradient(to bottom, #3160FD, #ffffff);
}
.content {
@@ -939,11 +1203,12 @@
    width: 100%;
    height: 0.9231rem;
    display: flex;
         padding: 0 0.1rem;
  }
  .left_title,
  .right_box {
    width: 50%;
         // width: 50%;
    height: 100%;
    display: flex;
  }
@@ -962,7 +1227,7 @@
  }
  .img {
    width: 40%;
         // width: 40%;
    height: 100%;
    display: flex;
    align-items: center;
@@ -974,18 +1239,100 @@
  }
}
   .top_class_box_right {
      font-size: 0.4rem;
   }
   .click_box_rightclick {
      margin-right: 10px;
      // font-size: 10px;
      font-size: 0.4rem;
      color: #409eff;
      padding: 8px 12px;
      border-radius: 12px;
      border: 0.5px solid #409eff;
   }
   .search {
      width: 100%;
      height: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 0.3rem;
      position: relative;
      top: 10px;
      background-color: #fff;
      z-index: 3000;
      .search_content {
         width: 100%;
         height: 90%;
         display: flex;
         align-items: center;
      }
      .left_search {
         width: 100%;
         height: 100%;
         background: #f6f6f6;
         border-radius: 100px;
         display: flex;
         .search_img {
            width: 1rem;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            img {
               width: 0.5rem;
               height: 0.5rem;
            }
         }
         .search_input {
            width: 100%;
            overflow: hidden;
            height: 100%;
            display: flex;
         }
      }
      .right_search_class {
         width: 13%;
         height: 100%;
         display: flex;
         justify-content: flex-end;
         align-items: center;
         img {
            width: 0.6rem;
            height: 0.6rem;
         }
      }
   }
   .ydy_box {
      margin-top: 5px;
      font-size: 0.4rem;
      color: #9ea3ae;
   }
.warehouse_card {
  width: 100%;
  height: calc(100% - 1rem);
  position: absolute;
  top: 1.5231rem;
  z-index: 0;
      top: 60px;
      // top: 1.5231rem;
      z-index: 100;
  padding: 0 0.3333rem;
  background: rgb(242, 243, 247);
      // background: rgb(242, 243, 247);
  .top_card {
    width: 100%;
    height: 4.2308rem;
         // height: 4.2308rem;
    border-radius: 0.15rem;
    margin-top: 0.3rem;
    background: #fff;
@@ -1000,9 +1347,10 @@
        height: 0.5128rem;
        display: flex;
        align-items: center;
               font-size: 0.4rem;
        span {
          font-size: 0.3046rem;
                  font-size: 0.4rem;
          font-weight: bold;
        }
      }
@@ -1012,6 +1360,7 @@
        height: 0.5128rem;
        display: flex;
        align-items: center;
               justify-content: space-between;
        .price {
          font-weight: 600;
@@ -1021,7 +1370,7 @@
        .profits {
          font-weight: 800;
          font-size: 0.2846rem;
                  font-size: 0.4rem;
          color: #dd2c34;
          margin-top: 0.2rem;
          margin-left: 0.2rem;
@@ -1033,14 +1382,17 @@
        height: 0.3846rem;
        margin-top: 0.428rem;
        display: flex;
               font-size: 0.4rem;
        >div {
          width: 50%;
          height: 100%;
          color: @topCardColor;
                  font-size: 0.4rem;
          span {
            font-weight: 600;
                     font-size: 0.4rem;
          }
        }
      }
@@ -1061,7 +1413,6 @@
        }
        .right_margin {
          color: rgb(81, 164, 99);
          span {
            font-weight: normal !important;
@@ -1072,7 +1423,7 @@
      .margin {
        width: 100%;
        height: 0.3846rem;
        margin-top: 0.2rem;
               margin-top: 0.428rem;
        display: flex;
        >div {
@@ -1114,7 +1465,7 @@
.tabs_card {
  width: 100%;
  height: calc(100% - 4.24rem - 0.5rem - 0.6rem);
      height: calc(100% - 4.24rem - 4rem - 0.6rem);
  margin-top: 0.3rem;
  background: #fff;
  border-radius: 0.2rem;
@@ -1123,6 +1474,42 @@
.over::-webkit-scrollbar {
  display: none;
   }
   .click_box {
      margin-top: 10px;
      width: 100%;
      border-radius: 0.15rem;
      height: 60px;
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: #fff;
      font-size: 0.4rem;
   }
   .click_box_left {
      width: 50%;
      text-align: center;
      color: rgb(64, 158, 255);
      position: relative;
      font-size: 0.4rem;
   }
   .click_box_g {
      position: absolute;
      width: 20px;
      height: 4px;
      left: 2.07037rem;
      bottom: -10px;
      background-color: #3460F6;
   }
   .click_box_right {
      font-size: 0.4rem;
      position: relative;
      text-align: center;
      width: 50%;
}
.tabs_card_content {
@@ -1138,19 +1525,27 @@
    font-size: 0.4103rem;
    padding: 0.2rem 0.3rem 0;
    justify-content: space-between;
         overflow-x: scroll;
         background-color: #F2F3F7;
         &::-webkit-scrollbar {
            display: none;
         }
    >div {
      width: 20%;
            // width: 20%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
            white-space: nowrap;
            padding: 0 0.3rem;
      span {
        display: inline-block;
        height: 100%;
        font-weight: 550;
        line-height: 0.7179rem;
               // line-height: 0.7179rem;
        text-align: center;
      }
@@ -1169,6 +1564,7 @@
        height: 0.001rem;
        display: block;
        margin: 0 auto;
               margin-top: 0.3rem;
        border-bottom: 0.06rem solid rgb(62, 121, 226);
      }
@@ -1181,16 +1577,18 @@
    >.tabs_o_items {
      width: 100%;
      height: 2.2rem;
            // height: 2.2rem;
      position: relative;
      border-bottom: 0.01rem solid #ececec;
      margin-bottom: 0.1rem;
            // margin-bottom: 0.1rem;
            padding: 0.3rem 0;
      .tabs_o_title {
        width: 100%;
        height: 0.7179rem;
               // height: 0.7179rem;
        display: flex;
        align-items: center;
               justify-content: space-between;
        span {
          display: inline-block;
@@ -1204,6 +1602,8 @@
        .buy_to_sell {
                  width: 80px;
                  text-align: center;
          padding: 0.08rem 0.1rem;
          font-weight: 600;
@@ -1223,13 +1623,14 @@
      .center_price {
        width: 100%;
        height: 0.3846rem;
               // height: 0.3846rem;
               justify-content: space-between;
        display: flex;
        align-items: center;
        margin-top: 0.3rem;
        >div {
          width: 28%;
                  // width: 28%;
          height: 100%;
          span {
@@ -1237,20 +1638,25 @@
          }
        }
        .profit {
          color: rgb(209, 79, 91);
               .profit .lv {
                  color: #27ab63;
               }
               .profit .red {
                  color: #ff0000;
        }
      }
      .bottom_price_title {
        width: 100%;
        height: 0.4rem;
        margin-top: 0.1rem;
               // height: 0.4rem;
               margin-top: 0.2rem;
        display: flex;
        align-items: center;
               justify-content: space-between;
               font-size: 0.4rem;
        >div {
          width: 28%;
          height: 100%;
          color: @topCardColor;
@@ -1318,8 +1724,9 @@
.right_btn {
  width: 1.9949rem;
  height: 0.7667rem;
  position: absolute;
      height: 0.6667rem;
      // line-height: 0.6667rem;
      // position: absolute;
  right: 1%;
  top: 27%;
  // background: #f7f7f7;
@@ -1327,11 +1734,11 @@
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.3rem;
      border-radius: 0.15rem;
  span {
    font-weight: 600;
    font-size: 0.3846rem;
         font-size: 0.4rem;
  }
}
@@ -1349,7 +1756,7 @@
  span {
    font-weight: 600;
    font-size: 0.3846rem;
         font-size: 0.4rem;
  }
}
@@ -1359,7 +1766,7 @@
}
.oes {
  height: 1.5rem !important;
      // height: 1.5rem !important;
}
.dialog {
@@ -1391,11 +1798,10 @@
  .left_titles {
    color: rgb(129, 131, 133);
    font-size: .3815rem;
         font-size: 0.4rem;
    span {
      font-weight: normal !important;
    }
  }
@@ -1403,6 +1809,18 @@
  .right_price {
    color: rgb(128, 135, 145);
  }
   }
   .top_class_box_left {
      color: #fff;
      border-radius: 50px;
      background: #409eff;
      font-size: 0.4rem;
      padding: 4px 12px;
      height: 40px;
      display: flex;
      justify-content: center;
      align-items: center;
}
.kuan {
@@ -1419,9 +1837,10 @@
.left_price {
  font-weight: normal;
      font-size: 0.4rem;
  span {
    font-size: 0.3rem;
         font-size: 0.4rem;
    color: #000;
    font-weight: 500 !important;
    ;
@@ -1430,9 +1849,10 @@
.left_price {
  font-weight: normal;
      font-size: 0.4rem;
  span {
    font-size: 0.3rem;
         font-size: 0.4rem;
    color: #000;
    font-weight: 500 !important;
    ;
@@ -1457,7 +1877,27 @@
}
.jiantou {
  position: relative;
      // position: relative;
   }
   .top_class_box {
      padding: 0 0.3333rem;
      background: #fff;
      width: 100%;
      height: 50px;
      border-radius: 8px;
      display: flex;
      justify-content: space-around;
      align-items: center;
      padding: 4px 0;
      box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .2);
   }
   .top_class {
      display: flex;
      justify-content: center;
      padding: 0 0.3333rem;
      align-items: center;
}
.jiantou::before {