zzzz
2024-03-26 c790779e2c578d892e184932c660023eb4d466aa
src/page/user/Warehouse copy.vue
@@ -14,14 +14,24 @@
          </div>
        </div>
      </div> -->
         <div style="width: 100%;height: 10px;"></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
            :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
            :class="
              typeindex == 1 ? 'top_class_box_left' : 'top_class_box_right'
            "
            @click="typeclick(1)"
          >
            {{ $t("mggs") }}
               </div>
            </div>
         </div>
@@ -66,20 +76,24 @@
            <div class="top_card" v-if="typeindex == 0">
               <div class="card_content">
                  <div class="t_title">
                     <span>{{ $t('ihj49') }}</span>
              <span>{{ $t("ihj49") }}</span>
                  </div>
                  <div class="t_price">
                     <p class="price">{{$store.state.userInfo.userAmt}}</p>
                     <img src="../../../static/img/ydgq.png"
                        style="width: 17px;height: 17px;border-radius: 25px;" />
              <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="ydy_box">
              ≈${{ $store.state.userInfo.userAmtToUsdt }}
            </div>
                  <div class="balance">
                     <div class="left_titles">
                        {{ $t('disan') }}
                {{ $t("disan") }}
                     </div>
                     <div class="right_titles">
                        {{ $t('disana') }}
                {{ $t("disana") }}
                     </div>
                  </div>
                  <div class="num">
@@ -90,17 +104,21 @@
                        <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 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>
                  <div class="margin">
                     <div class="left_titles">
                        {{ $t('aym') }}
                {{ $t("aym") }}
                     </div>
                     <div class="right_titles">
                        {{ $t('ysa') }}
                {{ $t("ysa") }}
                     </div>
                  </div>
                  <div class="prices">
@@ -111,28 +129,30 @@
                        <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 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>
              <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;" />
              <img
                src="../../../static/img/usgq.png"
                style="width: 17px; height: 17px; border-radius: 25px"
              />
                  </div>
                  <div class="balance">
                     <div class="left_titles">
                        {{ $t('uszzc') }}
                {{ $t("uszzc") }}
                     </div>
                     <div class="right_titles">
                        {{ $t('djzjmg') }}
                {{ $t("djzjmg") }}
                     </div>
                  </div>
                  <div class="num">
@@ -144,13 +164,12 @@
                     </div>
                  </div>
                  <div class="margin">
                     <div class="left_titles">
                        {{ $t('accumbn') }}
                {{ $t("accumbn") }}
                     </div>
                     <div class="right_titles">
                        {{ $t('tolaszasdf') }}
                {{ $t("tolaszasdf") }}
                     </div>
                  </div>
                  <div class="prices">
@@ -164,10 +183,18 @@
               </div>
            </div>
            <div class="click_box">
               <div :class="zjtype==0?'click_box_left':'click_box_right'" @click="clickzj(0)">{{$t('nwetitle')}}
          <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
            :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>
@@ -175,29 +202,50 @@
               <div class="tabs_card_content">
                  <!-- 持仓 currentIndex: 0 -->
                  <div class="over">
                     <van-list v-model="loading" :finished="finished" v-if="zjtype==0&&cclist.length"
                        :finished-text="$t('hj43')" @load="onLoad" >
              <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_items"
                    v-for="item in cclist"
                    :key="item.buyOrderId"
                  >
                              <div class="tabs_o_title">
                                 <div style="width: calc(100% - 3.5rem);display: flex;">
                      <div style="width: calc(100% - 3.5rem); display: flex">
                                    <div>
                                       <span
                                          class="title">{{ item.stockName ? item.stockName : item.indexName }}</span>
                          <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
                            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;width: 110px;">{{ $t('hj121') }}</span>
                      <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">
@@ -205,13 +253,19 @@
                                    <span>P/L(INR)</span>
                                 </div>
                                 <div class="new_price">
                                    <span>{{ $t('shou') }}</span>
                        <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>
                          :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>
@@ -220,17 +274,20 @@
                              <div class="bottom_price_title">
                                 <div class="new_price">
                                    <span>{{$t('ssdd')}}</span>
                        <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>
                      <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>
                        <span>{{ $t("whpb") }}</span>
                                 </div>
                                 <div class="start_price">
                                    <span>{{ item.orderTotalPrice }}</span>
@@ -238,34 +295,51 @@
                              </div>
                              <div class="bottom_price_title">
                                 <div class="new_price">
                                    <span>{{$t('gmsj')}}</span>
                        <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">
              <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_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 style="width: calc(100% - 3.5rem); display: flex">
                                    <div>
                                       <span
                                          class="title">{{ item.stockName ? item.stockName : item.indexName }}</span>
                          <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
                            class="buy_to_sell"
                            :class="
                              item.orderDirection == '买跌' ? 'maichu' : 'mairu'
                            "
                          >
                            {{
                              item.orderDirection == "买跌"
                                ? $t("hj84")
                                : $t("hj85")
                            }}
                                       </div>
                                    </div>
                                 </div>
@@ -279,13 +353,19 @@
                                    <span>P/L(INR)</span>
                                 </div>
                                 <div class="new_price">
                                    <span>{{ $t('shou') }}</span>
                        <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>
                          :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>
@@ -294,16 +374,17 @@
                              <div class="bottom_price_title">
                                 <div class="new_price">
                                    <span>{{$t('ssdd')}}</span>
                        <span>{{ $t("ssdd") }}</span>
                                 </div>
                                 <div class="start_price">
                                    <span style="color: #000;">{{ item.buyOrderPrice }}
                        <span style="color: #000"
                          >{{ item.buyOrderPrice }}
                                    </span>
                                 </div>
                              </div>
                              <div class="bottom_price_title">
                                 <div class="new_price">
                                    <span>{{$t('whpb')}}</span>
                        <span>{{ $t("whpb") }}</span>
                                 </div>
                                 <div class="start_price">
                                    <span>{{ item.orderTotalPrice }}</span>
@@ -311,7 +392,7 @@
                              </div>
                              <div class="bottom_price_title">
                                 <div class="new_price">
                                    <span>{{$t('whpb')}}</span>
                        <span>{{ $t("whpb") }}</span>
                                 </div>
                                 <div class="start_price">
                                    <span>{{ item.sellOrderPrice }}</span>
@@ -319,7 +400,7 @@
                              </div>
                              <div class="bottom_price_title">
                                 <div class="new_price">
                                    <span>{{$t('gmsj')}}</span>
                        <span>{{ $t("gmsj") }}</span>
                                 </div>
                                 <div class="start_price">
                                    <span>{{ item.buyOrderTime | gettime }}</span>
@@ -328,13 +409,12 @@
                              <div class="bottom_price_title">
                                 <div class="new_price">
                                    <span>{{$t('gbsj')}}</span>
                        <span>{{ $t("gbsj") }}</span>
                                 </div>
                                 <div class="start_price">
                                    <span>{{ item.sellOrderTime | gettime }}</span>
                                 </div>
                              </div>
                           </div>
                        </div>
                     </van-list>
@@ -342,49 +422,70 @@
                        <div class="waiting_box">
                           <div class="img_cont">
                              <img src="../../assets/img/zhaobudao.png" alt />
                              <span class="gd">{{ $t('hj122') }}</span>
                    <span class="gd">{{ $t("hj122") }}</span>
                              <div class="trading" @click="$router.push('/trading-list')">
                                 <span>{{ $t('hj123') }}</span>
                      <span>{{ $t("hj123") }}</span>
                              </div>
                           </div>
                        </div>
                     </div>
                     <!-- 挂单 -->
                     <div class="waiting" v-if="totalss == 0 && tabsCurrentIndex === 1">
              <div
                class="waiting"
                v-if="totalss == 0 && tabsCurrentIndex === 1"
              >
                        <div class="waiting_box">
                           <div class="img_cont">
                              <img src="../../assets/img/zhaobudao.png" alt />
                              <span class="gd">{{ $t('hj124') }}</span>
                    <span class="gd">{{ $t("hj124") }}</span>
                              <div class="trading" @click="$router.push('/trading-list')">
                                 <span>{{ $t('hj123') }}</span>
                      <span>{{ $t("hj123") }}</span>
                              </div>
                           </div>
                        </div>
                     </div>
                     <van-list v-model="loadingss" :finished="finishedss" :finished-text="$t('hj43')"
                        v-if="tabsCurrentIndex === 1 && totalss != 0" :immediate-check="immediate">
              <van-list
                v-model="loadingss"
                :finished="finishedss"
                :finished-text="$t('hj43')"
                v-if="tabsCurrentIndex === 1 && totalss != 0"
                :immediate-check="immediate"
              >
                        <div class="tabs_o">
                           <div class="tabs_o_items" v-if="tabsOrderList.length>0"
                              v-for="(item) 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">
                                 <div>
                        <span class="title">{{
                          item.stockName ? item.stockName : item.indexName
                        }}</span>
                                    <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>
                          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 + $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>
                        <span style="margin-right: 0">{{ $t("hj126") }}</span>
                                 </div>
                              </div>
                              <div class="center_price">
@@ -397,10 +498,10 @@
                              </div>
                              <div class="bottom_price_title">
                                 <div class="start_price">
                                    <span>{{ $t('hj125') }}</span>
                        <span>{{ $t("hj125") }}</span>
                                 </div>
                                 <div class="new_price">
                                    <span>{{ $t('hj120') }}</span>
                        <span>{{ $t("hj120") }}</span>
                                 </div>
                              </div>
                           </div>
@@ -412,74 +513,133 @@
                        <div class="waiting_box">
                           <div class="img_cont">
                              <img src="../../assets/img/zhaobudao.png" alt />
                              <span class="gd">{{ $t('hj127') }}</span>
                    <span class="gd">{{ $t("hj127") }}</span>
                              <div class="trading" @click="$router.push('/trading-list')">
                                 <span>{{ $t('hj123') }}</span>
                      <span>{{ $t("hj123") }}</span>
                              </div>
                           </div>
                        </div>
                     </div>
                     <van-list v-model="loadings" :finished="finisheds" :finished-text="$t('hj43')"
                        @load="onLoads" :immediate-check="immediate"
                        v-if="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-if="tabsPcArr.length>0"
                              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">
                                 <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 class="title">{{
                          item.stockName ? item.stockName : item.indexName
                        }}</span>
                                    <span class="multiple">{{ item.allProfitAndLose }}</span>
                                    <span class="nums">{{ item.orderNum + $t('hj117') }}</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 + $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
                        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>
                        <span
                          >{{ $t("hj128") }}:
                          {{ item.buyOrderTime | gettime }}</span
                        >
                                 </div>
                              </div>
                           </div>
                        </div>
                     </van-list>
                     <!-- 新股 -->
                     <div class="waiting" v-if="xgTotal == 0 && tabsCurrentIndex === 3">
              <div
                class="waiting"
                v-if="xgTotal == 0 && tabsCurrentIndex === 3"
              >
                        <div class="waiting_box">
                           <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: 5 } })">
                                 <span>{{ $t('hj123') }}</span>
                    <span class="gd">{{ $t("hj129") }}</span>
                    <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">
              <van-list
                v-model="loadingXg"
                :finished="finishedXg"
                :finished-text="$t('hj43')"
                v-show="tabsCurrentIndex === 3 && xgTotal != 0"
                @load="onLoadXg"
                :immediate-check="immediate"
              >
                        <div class="tabs_o">
                           <div class="tabs_o_items" v-for="(item) 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'">{{
                        item.type == 1 ? $t('hj45') : $t('hj46')
                      }}</span>
                      <span
                        class="buy_to_sell"
                        :class="item.type == 1 ? 'mairu' : 'maichu'"
                        >{{ item.type == 1 ? $t("hj45") : $t("hj46") }}</span
                      >
                                 <!-- <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
                      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>
@@ -492,43 +652,64 @@
                                       </div>
                                    </div>
                                    <div class="bottom_price_title">
                                       <div class="start_price">
                                          <span>{{ $t('hj130') }}</span>
                            <span>{{ $t("hj130") }}</span>
                                       </div>
                                       <div class="new_price" v-if="item.status != 3">
                                          <span>{{ $t('hj57') }}</span>
                            <span>{{ $t("hj57") }}</span>
                                       </div>
                                       <div class="new_price" v-else>
                                          <span>{{ $t('hj253') }}</span>
                            <span>{{ $t("hj253") }}</span>
                                       </div>
                                    </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 && item.type != 1) ? $t('hj133') : item.status == 4 ? $t('hj134') :
                              item.status == 5 ?
                                $t('hj135')
                      <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 && 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
                        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>
               </div>
            </div>
         </div>
@@ -538,20 +719,21 @@
</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')],
      tabsArr: [
        this.$t("hj2"),
        this.$t("hj109"),
        this.$t("hj136"),
        this.$t("hj3"),
      ],
            tabsCurrentIndex: 0,
            titleName: this.$t('hj114'),
      titleName: this.$t("hj114"),
            indexSettingInfo: {},
            futuresSettingInfo: {},
            tabsPositionNumArr: [],
@@ -581,167 +763,167 @@
            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.newchicang()
    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)
      this.tabsCurrentIndex = Number(this.$route.query.index);
         }
      },
      methods: {
         async newchicang() {
            let opt = {
               state: this.zjtype == 0 ? '0' : '1',
               stockType: this.typeindex == 0 ? 'IN' : 'US',
        state: this.zjtype == 0 ? "0" : "1",
        stockType: this.typeindex == 0 ? "IN" : "US",
               pageNum: this.pageNum,
               pageSize: this.pageSize
            }
            let data = await api.getchicang(opt)
        pageSize: this.pageSize,
      };
      let data = await api.getchicang(opt);
            if (data.status === 0) {
               this.cclist = data.data.list
        this.cclist = data.data.list;
            } else {
               Toast(data.msg)
        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(() => {
      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
        Toast(this.$t("hj138"));
        this.$router.push("/authentication");
        return;
            }
            if (this.titleIndex === 0) {
               // 沪深京
               MessageBox.confirm(this.$t('hj139') + '?', this.$t('hj165'), {
                  confirmButtonText: this.$t('hj161'),
                  cancelButtonText: this.$t('hj106')
               }).then(async () => {
        MessageBox.confirm(this.$t("hj139") + "?", this.$t("hj165"), {
          confirmButtonText: this.$t("hj161"),
          cancelButtonText: this.$t("hj106"),
        })
          .then(async () => {
                  let opt = {
                     positionSn: val
                  }
                  let data = await api.sell(opt)
              positionSn: val,
            };
            let data = await api.sell(opt);
                  if (data.status === 0) {
                     Toast(data.msg)
              Toast(data.msg);
                     // 沪深京持仓
                     this.finished = false
                     this.getListDetail()
                     this.tabsPositionNumArr = []
              this.finished = false;
              this.getListDetail();
              this.tabsPositionNumArr = [];
                     // 沪深京平仓
                     this.finisheds = false
                     this.tabsPcArr = []
                     this.getListDetails()
                  } else if (data.msg.indexOf('不在交易时段内') > -1) {
                     Toast(this.$t('hj140'))
              this.finisheds = false;
              this.tabsPcArr = [];
              this.getListDetails();
            } else if (data.msg.indexOf("不在交易时段内") > -1) {
              Toast(this.$t("hj140"));
                  } else {
                     Toast(data.msg)
              Toast(data.msg);
                  }
               }).catch(() => {
               })
          .catch(() => {});
            } else {
               // 指数
               MessageBox.confirm(this.$t('hj139') + '?', this.$t('hj165'), {
                  confirmButtonText: this.$t('hj161'),
                  cancelButtonText: this.$t('hj106')
               }).then(async () => {
                  let opt = {
                     positionSn: val
                  }
                  let data = await api.sellIndex(opt)
                  if (data.status === 0) {
                     Toast(data.msg)
                     // 指数持仓
                     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 {
                     Toast(data.msg)
                  }
               }).catch(() => {
        MessageBox.confirm(this.$t("hj139") + "?", this.$t("hj165"), {
          confirmButtonText: this.$t("hj161"),
          cancelButtonText: this.$t("hj106"),
               })
          .then(async () => {
            let opt = {
              positionSn: val,
            };
            let data = await api.sellIndex(opt);
            if (data.status === 0) {
              Toast(data.msg);
              // 指数持仓
              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 {
              Toast(data.msg);
            }
          })
          .catch(() => {});
            }
         },
         onLoad() {
            // 持仓
            this.page++
      this.page++;
            switch (this.titleIndex) {
               case 0:
                  // 沪深京持仓
                  this.getListDetail()
                  break
          this.getListDetail();
          break;
               case 1:
                  // 指数持仓
                  this.getzhishuListDetail()
                  break
          this.getzhishuListDetail();
          break;
               default:
                  break
          break;
            }
         },
         onLoads() {
            // 平仓
            this.pages++
      this.pages++;
            switch (this.titleIndex) {
               case 0:
                  // 沪深京平仓
                  this.getListDetails()
                  break
          this.getListDetails();
          break;
               case 1:
                  // 指数平仓
                  this.getzhishuListDetails()
                  break
          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() {
@@ -749,375 +931,375 @@
         },
         async gdClose(item) {
            let opts = {
               id: item.id
            }
            let data = await api.delGuaDan(opts)
        id: item.id,
      };
      let data = await api.delGuaDan(opts);
            if (data.status === 1) {
               Toast(this.$t('hj137'))
               this.page = 1
               this.pages = 1
               this.finished = false
               this.finisheds = false
               this.finishedss = false
               this.tabsPositionNumArr = []
               this.tabsPcArr = []
               this.tabsOrderList = []
        Toast(this.$t("hj137"));
        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.titleName = this.$t("hj116");
                     // this.getQhListDetail();
                     // this.getQhListDetails();
                     this.getorderList()
                     break
            this.getorderList();
            break;
                  default:
                     break
            break;
               }
            } else {
               Toast(data.msg)
        Toast(data.msg);
            }
         },
         clickzj(e) {
            console.log(e);
            this.zjtype = e
            this.newchicang()
      this.zjtype = e;
      this.newchicang();
         },
         zcsg(item) {
            this.$router.push({
               path: '/trading-list',
        path: "/trading-list",
               query: {
                  listid: 5
               }
            })
          listid: 5,
        },
      });
         },
         SetTitleIndex(index) {
            // 账户选项卡
            this.titleIndex = index
            this.page = 1
            this.pages = 1
            this.finished = false
            this.finisheds = false
            this.finishedss = false
            this.tabsPositionNumArr = []
            this.tabsPcArr = []
            this.tabsOrderList = []
      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.handleTabsClick('', 0)
                  break
          this.titleName = this.$t("hj114");
          this.getListDetail();
          this.getListDetails();
          this.getorderList();
          this.handleTabsClick("", 0);
          break;
               case 1:
                  this.titleName = this.$t('hj115')
                  this.getzhishuListDetail()
                  this.getzhishuListDetails()
                  this.getorderList()
                  this.handleTabsClick('', 0)
                  break
          this.titleName = this.$t("hj115");
          this.getzhishuListDetail();
          this.getzhishuListDetails();
          this.getorderList();
          this.handleTabsClick("", 0);
          break;
               case 2:
                  this.totalss = 0
                  this.totals = 0
                  this.total = 0
                  this.titleName = this.$t('hj116')
                  this.handleTabsClick('', 3)
          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
      this.tabsCurrentIndex = index;
            if (index === 3) {
               this.finishedXg = false
               this.getNewXg()
        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 opts = {};
      let data = await api.getorderList(opts);
      this.loadingss = false;
            if (data.status === 0) {
               data.data.forEach(element => {
                  this.tabsOrderList.push(element)
               })
               this.totalss = data.data.length
               this.finishedss = true // 只有一页,所以锁住翻页。有需要刷新数据的时候在调用方法前重新解锁
        data.data.forEach((element) => {
          this.tabsOrderList.push(element);
        });
        this.totalss = data.data.length;
        this.finishedss = true; // 只有一页,所以锁住翻页。有需要刷新数据的时候在调用方法前重新解锁
            } else {
               Toast(data.msg)
        Toast(data.msg);
            }
         },
         typeclick(e) {
            console.log(e);
            this.typeindex = e
            this.newchicang()
      this.typeindex = e;
      this.newchicang();
         },
         async getIndexSettingInfo() {
            // 网站设置信息 指数
            let data = await api.getIndexSetting()
      let data = await api.getIndexSetting();
            if (data.status === 0) {
               // 成功
               this.indexSettingInfo = data.data
        this.indexSettingInfo = data.data;
            } else {
               Toast(data.msg)
        Toast(data.msg);
            }
         },
         async getFuturesSetting() {
            // 网站设置信息 期货
            let data = await api.getFuturesSetting()
      let data = await api.getFuturesSetting();
            if (data.status === 0) {
               // 成功
               this.futuresSettingInfo = data.data
        this.futuresSettingInfo = data.data;
            } else {
               Toast(data.msg)
        Toast(data.msg);
            }
         },
         async getSettingInfo() {
            let data = await api.getSetting()
      let data = await api.getSetting();
            if (data.status === 0) {
               // 成功
               this.settingInfo = data.data
        this.settingInfo = data.data;
            } else {
               Toast(data.msg)
        Toast(data.msg);
            }
         },
         async getUserInfo() {
            // 获取用户信息
            //   let showcookie = this.getCookie('USER_TOKEN');
            let data = await api.getUserInfo()
      let data = await api.getUserInfo();
            if (data.status === 0) {
               // this.getProductSetting()
               this.$store.state.userInfo = data.data
        this.$store.state.userInfo = data.data;
            } else {
               Toast(data.msg)
        Toast(data.msg);
            }
            this.$store.state.user = this.user
      this.$store.state.user = this.user;
         },
         async getListDetail() {
            // 获取沪深我的持仓列表
            this.loading = true
      this.loading = true;
            let opt = {
               state: 0,
               stockCode: '', // 代码
               stockSpell: '', // 简拼
        stockCode: "", // 代码
        stockSpell: "", // 简拼
               pageNum: this.page,
               pageSize: 15
            }
            let data = await api.getOrderList(opt)
            this.loading = false
        pageSize: 15,
      };
      let data = await api.getOrderList(opt);
      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)
               })
               this.total = data.data.total
        data.data.list.forEach((element) => {
          this.tabsPositionNumArr.push(element);
        });
        this.total = data.data.total;
            } else {
               Toast(data.msg)
        Toast(data.msg);
            }
         },
         async getzhishuListDetail() {
            // 获取指数持仓
            this.loading = true
      this.loading = true;
            let opt = {
               state: 0,
               stockCode: '', // 代码
               stockSpell: '', // 简拼
        stockCode: "", // 代码
        stockSpell: "", // 简拼
               pageNum: this.pageNum,
               pageSize: this.pageSize
            }
            let data = await api.getIndexOrderList(opt)
            this.loading = false
        pageSize: this.pageSize,
      };
      let data = await api.getIndexOrderList(opt);
      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)
               })
               this.total = data.data.total
        data.data.list.forEach((element) => {
          this.tabsPositionNumArr.push(element);
        });
        this.total = data.data.total;
            } else {
               Toast(data.msg)
        Toast(data.msg);
            }
         },
         async getQhListDetail() {
            // 获取期货持仓
            this.loading = true
      this.loading = true;
            let opt = {
               state: 0,
               fnCode: '', // 代码
               fnName: '', // 简拼
        fnCode: "", // 代码
        fnName: "", // 简拼
               pageNum: this.pageNum,
               pageSize: this.pageSize
            }
            let data = await api.getFuturesOrderList(opt)
            this.loading = false
        pageSize: this.pageSize,
      };
      let data = await api.getFuturesOrderList(opt);
      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)
               })
               this.total = data.data.total
        data.data.list.forEach((element) => {
          this.tabsPositionNumArr.push(element);
        });
        this.total = data.data.total;
            } else {
               Toast(data.msg)
        Toast(data.msg);
            }
         },
         async getListDetails() {
            // 获取沪深我的平仓列表
            this.loadings = true
      this.loadings = true;
            let opt = {
               state: 1,
               stockCode: '', // 代码
               stockSpell: '', // 简拼
        stockCode: "", // 代码
        stockSpell: "", // 简拼
               pageNum: this.pages,
               pageSize: 15
            }
            let data = await api.getOrderList(opt)
            this.loadings = false
        pageSize: 15,
      };
      let data = await api.getOrderList(opt);
      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)
               })
               this.totals = data.data.total
        data.data.list.forEach((element) => {
          this.tabsPcArr.push(element);
        });
        this.totals = data.data.total;
            } else {
               Toast(data.msg)
        Toast(data.msg);
            }
         },
         async getzhishuListDetails() {
            // 获取指数平仓
            this.loadings = true
      this.loadings = true;
            let opt = {
               state: 1,
               stockCode: '', // 代码
               stockSpell: '', // 简拼
        stockCode: "", // 代码
        stockSpell: "", // 简拼
               pageNum: this.pageNum,
               pageSize: 15
            }
            let data = await api.getIndexOrderList(opt)
            this.loadings = false
        pageSize: 15,
      };
      let data = await api.getIndexOrderList(opt);
      this.loadings = false;
            if (data.data.list.length < 15) {
               this.finisheds = true
        this.finisheds = true;
            }
            if (data.status === 0) {
               data.data.list.forEach(element => {
                  this.tabsPcArr.push(element)
               })
               this.totals = data.data.total
        data.data.list.forEach((element) => {
          this.tabsPcArr.push(element);
        });
        this.totals = data.data.total;
            } else {
               Toast(data.msg)
        Toast(data.msg);
            }
         },
         async getQhListDetails() {
            // 获取期货平仓
            this.loadings = true
      this.loadings = true;
            let opt = {
               state: 1,
               fnCode: '', // 代码
               fnName: '', // 简拼
        fnCode: "", // 代码
        fnName: "", // 简拼
               pageNum: this.pageNum,
               pageSize: this.pageSize
            }
            let data = await api.getFuturesOrderList(opt)
            this.loadings = false
        pageSize: this.pageSize,
      };
      let data = await api.getFuturesOrderList(opt);
      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)
               })
               this.totals = data.data.total
        data.data.list.forEach((element) => {
          this.tabsPcArr.push(element);
        });
        this.totals = data.data.total;
            } else {
               Toast(data.msg)
        Toast(data.msg);
            }
         },
         async getNewXg() {
            // 获取新股
            this.loadingXg = true
            let opt = {}
            let data = await api.getUserNewGuList(opt)
            this.loadingXg = false
      this.loadingXg = true;
      let opt = {};
      let data = await api.getUserNewGuList(opt);
      this.loadingXg = false;
            if (data.status === 0) {
               this.tabsXgArr = data.data
        this.tabsXgArr = data.data;
               // data.data.list.forEach(element => {
               //   this.tabsXgArr.push(element)
               // })
               this.xgTotal = data.data.length
               this.finishedXg = true // 只有一页,所以锁住翻页。有需要刷新数据的时候在调用方法前重新解锁
        this.xgTotal = data.data.length;
        this.finishedXg = true; // 只有一页,所以锁住翻页。有需要刷新数据的时候在调用方法前重新解锁
            } else {
               Toast(data.msg)
        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 mm + '/' + d + '/' + y + ' ' + h + ':' + m + ':' + c
         }
      }
   }
      return mm + "/" + d + "/" + y + " " + h + ":" + m + ":" + c;
    },
  },
};
</script>
<style scoped lang="less">
@@ -1168,15 +1350,14 @@
      display: flex;
      justify-content: center;
      align-items: center;
   }
};
   ;
   @topCardColor: #bdbdbd;
   .warehouse_page {
      width: 100%;
      height: calc(100% - 1.2974rem);
      background: linear-gradient(to bottom, #3160FD, #ffffff);
  background: linear-gradient(to bottom, #3160fd, #ffffff);
   }
   .content {
@@ -1197,7 +1378,7 @@
      z-index: 10;
      overflow: hidden;
      transition: all 0.3s;
      padding: 0 .3rem;
  padding: 0 0.3rem;
      .titles {
         width: 100%;
@@ -1263,7 +1444,7 @@
      position: relative;
      top: 10px;
      background-color: #fff;
      z-index: 3000;
  z-index: 99;
      .search_content {
         width: 100%;
@@ -1413,7 +1594,6 @@
               }
               .right_margin {
                  span {
                     font-weight: normal !important;
                  }
@@ -1502,7 +1682,7 @@
      height: 4px;
      left: 2.07037rem;
      bottom: -10px;
      background-color: #3460F6;
  background-color: #3460f6;
   }
   .click_box_right {
@@ -1526,7 +1706,7 @@
         padding: 0.2rem 0.3rem 0;
         justify-content: space-between;
         overflow-x: scroll;
         background-color: #F2F3F7;
    background-color: #f2f3f7;
         &::-webkit-scrollbar {
            display: none;
@@ -1547,18 +1727,16 @@
               font-weight: 550;
               // line-height: 0.7179rem;
               text-align: center;
            }
            span.active {
               color: rgb(62, 121, 226);
               text-align: center;
               // border-bottom: 0.1rem solid rgb(62, 121, 226);
            }
            span.active::after {
               content: '';
        content: "";
               width: 80%;
               height: 0.001rem;
@@ -1567,7 +1745,6 @@
               margin-top: 0.3rem;
               border-bottom: 0.06rem solid rgb(62, 121, 226);
            }
         }
      }
@@ -1601,7 +1778,6 @@
               }
               .buy_to_sell {
                  width: 80px;
                  text-align: center;
                  padding: 0.08rem 0.1rem;
@@ -1762,7 +1938,7 @@
   .profit_res {
      width: 100% !important;
      margin-top: .2rem;
  margin-top: 0.2rem;
   }
   .oes {
@@ -1774,16 +1950,16 @@
      height: 100%;
      position: absolute;
      top: 0;
      background: rgba(0, 0, 0, .5);
  background: rgba(0, 0, 0, 0.5);
      z-index: 9;
   }
   .overflow_box {
      width: 100%;
      height: 1.5rem;
      border-radius: .2rem;
      padding: 0 .3rem;
      margin: .3rem 0;
  border-radius: 0.2rem;
  padding: 0 0.3rem;
  margin: 0.3rem 0;
      background: #fff;
      display: flex;
      align-items: center;
@@ -1802,7 +1978,6 @@
         span {
            font-weight: normal !important;
         }
      }
@@ -1843,7 +2018,6 @@
         font-size: 0.4rem;
         color: #000;
         font-weight: 500 !important;
         ;
      }
   }
@@ -1855,7 +2029,6 @@
         font-size: 0.4rem;
         color: #000;
         font-weight: 500 !important;
         ;
      }
   }
@@ -1863,7 +2036,6 @@
      font-size: 0.3rem;
      color: #000;
      font-weight: 500 !important;
      ;
   }
   .maichu {
@@ -1890,7 +2062,7 @@
      justify-content: space-around;
      align-items: center;
      padding: 4px 0;
      box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .2);
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.2);
   }
   .top_class {
@@ -1901,8 +2073,8 @@
   }
   .jiantou::before {
      content: '';
      background-image: url('../../assets/img/youyou.png');
  content: "";
  background-image: url("../../assets/img/youyou.png");
      background-size: 100% 100%;
      width: 0.6rem;
      height: 0.2rem;