zzzz
2024-04-22 ff690c460e82ced0a20e45a8009a2c33bfbf514a
src/page/list/tradingList/data.list.vue
@@ -5,18 +5,18 @@
        <van-col span="8">
          <div>
            {{ $t("hj313") }}
          </div></van-col
        >
        <van-col span="10"
          ><div style="text-align: right">
          </div>
        </van-col>
        <van-col span="10">
          <div style="text-align: right">
            {{ $t("hj314") }}
          </div></van-col
        >
          </div>
        </van-col>
        <van-col span="6">
          <div style="text-align: right">
            {{ $t("hj315") }}
          </div></van-col
        >
          </div>
        </van-col>
      </van-row>
    </div>
@@ -25,6 +25,7 @@
      v-model="loadings"
      :finished="finished"
      :finished-text="$t('hj43')"
      :loading-text="$t('hj430')"
      @load="onLoads"
      :immediate-check="false"
    >
@@ -85,13 +86,18 @@
        </van-row>
      </div>
    </van-list>
    <dazy ref="dazy" />
  </div>
</template>
<script>
import * as api from "@/axios/api";
import handleDt from "@/utils/deTh";
import dazy from "./dazy.vue";
export default {
  components: { dazy },
  props: {
    active: {
      type: String,
@@ -120,6 +126,7 @@
      this.listArr = [];
      this.pageNumVal = 1;
      this.loadings = true;
      this.getStock(e, this.zxactive, 1);
    },
    zxactive(e) {
      this.finished = false;
@@ -162,8 +169,16 @@
        return 0;
      }
    },
    // 点击进入详情
    handleGoToKlineDetail1(item) {
      // 如果是大宗交易。不需要进入详情
      if (this.active === "DZ") {
        this.$refs.dazy.currentItem = item;
        this.$refs.dazy.show = true;
        return;
      }
      // 点击进入详情
      const obj = {
        pid: item.code || "",
        type: item.stock_type || "",
@@ -197,6 +212,7 @@
        stockType = array[0].name;
      } else {
        let array = this.zxtabsList.filter((item) => item.key === b);
        console.log(this.zxtabsList, b);
        stockType = array[0].name;
      }
      let pageNumVal = c || this.pageNumVal;
@@ -219,15 +235,23 @@
        data = await api.positionzx(opt);
      }
      this.loadings = false;
      if (data.status === 0) {
        // if (data.data.list.length < 15) {
        this.finished = true;
        // }
        if (pageNumVal !== 1) {
          this.listArr = [...this.listArr, ...data.data.list];
        } else {
          this.listArr = data.data.list;
          if (this.active) {
            if (this.active === data.data.stockType) {
              this.listArr = data.data.list;
              this.loadings = false;
              this.finished = true;
            }
          } else {
            if (this.zxactive === data.data.stockType) {
              this.listArr = data.data.list;
              this.loadings = false;
              this.finished = true;
            }
          }
        }
      } else {
        this.finished = true;