1
jhzh
2025-11-12 1bd03f5c2e7b9fa9cc80c4e673e18132da411333
src/page/user/myOrder.vue
@@ -39,7 +39,7 @@
          <div class="assets-item flex-center" style="align-items: end;">
            <div class="all-size">{{ $t("平仓盈亏") }}</div>
            <div class="big-size">
              {{ moneyData.symbol }}{{ moneyData.cumulativeProfitAndLoss }}
              {{ moneyData.symbol }}<span v-if="moneyData.isZf==1">-</span>{{ moneyData.cumulativeProfitAndLoss }}
            </div>
          </div>
        </div>
@@ -192,7 +192,7 @@
            </div>
            <div style="margin-left: .25rem;font-size: .4rem;" :style="`color:${i.profitAndLose > 0
              ? 'green'
              : i.profitAndLose < 0
              : i.isZf < 0
                ? 'red'
                : ''
              }`
@@ -250,7 +250,8 @@
          <div>
            {{ i.stockName }}
          </div>
         <div >
         <div v-if="i.status!=2" @click="cdclick(i.id)" class="mo_all_sells">
           {{ $t("hj126") }}
          </div>
        </div>
@@ -384,6 +385,13 @@
    clearInterval(teimss2);
  },
  methods: {
    async cdclick(id){
      let data = await api.revocationOrder({"id":id});
      if (data.status === 0) {
        Notify({ type: "success", message: data.msg });
        this.getorderList()
      }
    },
    // 获取 挂单 数据
    async getorderList() {
      let data = await api.getorderList();
@@ -457,6 +465,15 @@
</script>
<style lang="less" scoped>
  .mo_all_sells{
    padding: 10px 20px;
    background: linear-gradient(90deg, #585fb4, #48529e);
    border-radius: 25px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }
.mo_all_sell{
  padding: 20px 10px;
  background: linear-gradient(90deg, #585fb4, #48529e);