1
PC-20250623MANY\Administrator
2025-09-21 175d8b00637fee5789f070c53a27c45414e0d209
src/page/user/myOrder.vue
@@ -66,6 +66,9 @@
    </van-tabs>
    <div class="mo_list" v-if="active == '0'">
      <div class="mo_all_sell" @click="allsellclick()">
        <div>{{ $t("gball") }}</div>
      </div>
      <div class="mol_item" v-for="(i, index) in list" :key="i.id" @click="open(i, index)">
        <div class="moli_title flex-between">
          <div>
@@ -298,6 +301,7 @@
let teimss2 = null; // 轮询获取持仓数据计时器
import tabHead from "@/components/tabHead.vue";
import * as api from "@/axios/api";
import { Notify } from "vant";
export default {
  components: {
    tabHead
@@ -363,6 +367,16 @@
        else this.list2 = data.data.list;
      }
    },
    // 一键平仓
    async allsellclick(){
      let data = await api.allsell();
      if (data.status === 0) {
        Notify({ type: "success", message: data.msg });
        this.getList(state);
      } else {
        Notify({ type: "danger", message: data.msg });
      }
    },
    open(i, index) {
      // if (!this.Operation) return;
      this.actObj = i;
@@ -405,6 +419,16 @@
</script>
<style lang="less" scoped>
.mo_all_sell{
  padding: 20px 10px;
  background: linear-gradient(90deg, #585fb4, #48529e);
  border-radius: 25px;
  text-align: center;
  margin: 15px ;
  display: flex;
  justify-content: center;
  align-items: center;
}
/deep/ .van-tabs__nav {
  background: none;