jhzh
2024-09-19 e3097587828362e34352cf4f378c8f5a260ea700
src/page/list/favoriteslist/data.list.vue
@@ -2,7 +2,6 @@
  <div class="list-data">
    <div class="header-box">
      <van-list
        v-model="loadings"
        :finished-text="$t('hj43')"
        :loading-text="$t('hj430')"
        :immediate-check="false"
@@ -32,7 +31,7 @@
              <div style="width: 100%">
                <div class="bottom_price_title">
                  <div class="start_price">
                    <span>{{ item.buyPrice }} </span>
                    <span>{{ item.buyPrice | _toLocaleString(false) }} </span>
                  </div>
                  <div class="new_price" v-if="item.status <= 3">
                    <span>
@@ -52,7 +51,7 @@
                </div>
                <div class="bottom_price_title">
                  <div class="start_price">
                    <span>{{ $t("單筆價格") }}</span>
                    <span>{{ $t("hj81") }}</span>
                  </div>
                  <div class="new_price" v-if="item.status <= 3">
                    <span>
@@ -71,12 +70,8 @@
                  </div>
                </div>
              </div>
              <div
                class="right_btn pink"
                style="padding: 0px 0.2rem"
                @click="renjiao(item)"
              >
                <span v-if="item.status !== 3">
              <div class="right_btn pink" style="padding: 0px 0.2rem">
                <span>
                  {{
                    item.status == 1
                      ? $t("hj131")
@@ -91,9 +86,10 @@
                      : ""
                  }}
                </span>
                <span v-else>
                  {{ $t("hj250") }}
                </span>
                <!-- <van-button v-else type="primary">
                  {{ $t("hj250") }}</van-button
                > -->
              </div>
              <!---->
@@ -152,7 +148,7 @@
      fromData: {
        value: 1,
      },
      loadings: false,
      loading: false,
      show: false,
      finished: false,
      listArr: [],
@@ -211,44 +207,15 @@
    // 获取列表
    getStock: handleDt.debounce(async function (a, b) {
      a = this.active;
      let stockType = "";
      console.log(this.tabsList, a, this.active);
      if (a !== "") {
        let array = this.tabsList.filter((item) => item.key === a);
        stockType = array[0].name;
      }
      let opt = {
        // pageNum: this.pageNumVal,
        // pageSize: 15,
        // stockPlate: "",
        keyWords: this.sousuo,
        // stockType: stockType,
        // orderBy: "",
      };
      let data = await api.getUserNewGuList();
      this.loading = false;
      if (data.status === 0) {
        if (this.listArr.length >= data.data.total) {
          this.finished = true;
        }
        if (this.pageNumVal !== 1) {
          this.listArr = [...this.listArr, ...data.data];
        } else {
          this.listArr = data.data;
        }
      } else {
        this.loading = false;
        this.finished = true;
        this.listArr = data.data;
      }
      console.log(2222222);
      this.loading = false;
      this.finished = false;
    }, 500),
    onLoads() {
      if (!this.loading) {
        this.pageNumVal++;
        this.loading = true;
        this.getStock();
      }
    },
    onLoads() {},
    optionszx() {},
  },
};
@@ -448,4 +415,4 @@
  text-align: center;
  line-height: 35px;
}
</style>
</style>