lxf
2025-04-30 b4c4556a5eddf6708ec55b07e3edc15b2217842e
src/page/list/trading-list copy.vue
@@ -505,16 +505,16 @@
              <div class="left">
                <span>{{ $t('hj47') }}</span>
              </div>
              <div class="right" v-if="userData.length == 0"> ﷼0.00</div>
              <div class="right" v-if="userData.length == 0">  0.00</div>
              <div class="right" v-if="userData.length != 0">
                <span v-if="$store.state.userInfo.userAmt == undefined"> ﷼0.00</span>
                <span v-if="$store.state.userInfo.userAmt == undefined">  0.00</span>
                <span v-if="$store.state.userInfo && tabsItemIndex == 1" style="white-space: nowarp;">
                  {{ ' ﷼' + $store.state.userInfo.userIndexAmt
                  {{ '  ' + $store.state.userInfo.userIndexAmt
                  }}
                </span>
                <span v-if="$store.state.userInfo.enableAmt != undefined && (tabsItemIndex == 0)"
                  style="white-space: nowarp;">
                  {{ ' ﷼ ' + $store.state.userInfo.enableAmt
                  {{ '   ' + $store.state.userInfo.enableAmt
                  }}
                </span>
                <span v-if="$store.state.userInfo.enableAmt != undefined && tabsItemIndex == 3"
@@ -529,12 +529,12 @@
                </span>
                <span v-if="$store.state.userInfo.enableAmt != undefined && tabsItemIndex == 2"
                  style="white-space: nowarp;">
                  {{ ' ﷼ ' + $store.state.userInfo.enableAmt
                  {{ '   ' + $store.state.userInfo.enableAmt
                  }}
                </span>
                <span v-if="$store.state.userInfo.enableAmt != undefined && tabsItemIndex == 5"
                  style="white-space: nowarp;">
                  {{ ' ﷼ ' + $store.state.userInfo.enableAmt
                  {{ '   ' + $store.state.userInfo.enableAmt
                  }}
                </span>
              
@@ -569,7 +569,7 @@
                "
                class="account"
              >
                 ﷼{{
                {{
                  $store.state.hide
                    ? "****"
                    : Number(
@@ -585,7 +585,7 @@
                "
                class="account"
              >
                 ﷼{{
                {{
                  $store.state.hide
                    ? "****"
                    : Number(
@@ -601,7 +601,7 @@
                "
                class="account"
              >
                 ﷼{{
                {{
                  $store.state.hide
                    ? "****"
                    : Number($store.state.userInfo.userAmt).toFixed(2)
@@ -611,7 +611,7 @@
                v-else-if="this.$store.state.settingForm.indexDisplay && this.$store.state.settingForm.futuresDisplay"
                class="account"
              >
                 ﷼{{ $store.state.hide ? '****' : Number($store.state.userInfo.userAmt +
                  {{ $store.state.hide ? '****' : Number($store.state.userInfo.userAmt +
                $store.state.userInfo.userIndexAmt + $store.state.userInfo.userFuturesAmt).toFixed(2)
                }}
              </p> -->
@@ -675,7 +675,7 @@
                v-else-if="this.$store.state.settingForm.indexDisplay && this.$store.state.settingForm.futuresDisplay"
                class="account"
              >
                 ﷼{{ $store.state.hide ? '****' : Number($store.state.userInfo.userAmt +
                  {{ $store.state.hide ? '****' : Number($store.state.userInfo.userAmt +
                $store.state.userInfo.userIndexAmt + $store.state.userInfo.userFuturesAmt).toFixed(2)
                }}
              </p> -->
@@ -739,7 +739,7 @@
                v-else-if="this.$store.state.settingForm.indexDisplay && this.$store.state.settingForm.futuresDisplay"
                class="account"
              >
                 ﷼{{ $store.state.hide ? '****' : Number($store.state.userInfo.userAmt +
                  {{ $store.state.hide ? '****' : Number($store.state.userInfo.userAmt +
                $store.state.userInfo.userIndexAmt + $store.state.userInfo.userFuturesAmt).toFixed(2)
                }}
              </p> -->
@@ -846,10 +846,10 @@
          <div class="bottom_price">
            <div>
              <span v-show="tabsItemIndex == 1">{{
                " ﷼ " + $store.state.userInfo.userIndexAmt
                "   " + $store.state.userInfo.userIndexAmt
              }}</span>
              <span v-show="tabsItemIndex == 0 || tabsItemIndex == 5">{{
                " ﷼ " + $store.state.userInfo.userAmt
                "   " + $store.state.userInfo.userAmt
              }}</span>
              <span v-show="tabsItemIndex == 3">{{
                "$ " + (Number($store.state.userInfo.userAmt) / 7.1).toFixed(2)
@@ -859,9 +859,9 @@
                (Number($store.state.userInfo.userAmt) / 0.9).toFixed(2)
              }}</span>
              <span v-show="tabsItemIndex == 2">{{
                " ﷼ " + $store.state.userInfo.userAmt
                "   " + $store.state.userInfo.userAmt
              }}</span>
              <!-- <span v-show="tabsItemIndex == 3">{{ ' ﷼ ' + $store.state.userInfo.userFuturesAmt }}</span> -->
              <!-- <span v-show="tabsItemIndex == 3">{{ '   ' + $store.state.userInfo.userFuturesAmt }}</span> -->
            </div>
          </div>
        </div>
@@ -874,10 +874,10 @@
          <div class="bottom_price">
            <div>
              <span v-show="tabsItemIndex == 1">{{
                " ﷼ " + $store.state.userInfo.enableIndexAmt
                "   " + $store.state.userInfo.enableIndexAmt
              }}</span>
              <span v-show="tabsItemIndex == 0 || tabsItemIndex == 5">{{
                " ﷼ " + $store.state.userInfo.enableAmt
                "   " + $store.state.userInfo.enableAmt
              }}</span>
              <span v-show="tabsItemIndex == 3">{{
                "$ " +
@@ -888,9 +888,9 @@
                (Number($store.state.userInfo.enableAmt) / 0.9).toFixed(2)
              }}</span>
              <span v-show="tabsItemIndex == 2">{{
                " ﷼ " + $store.state.userInfo.enableAmt
                "   " + $store.state.userInfo.enableAmt
              }}</span>
              <!-- <span v-show="tabsItemIndex == 3">{{ ' ﷼ ' + $store.state.userInfo.enableFuturesAmt }}</span> -->
              <!-- <span v-show="tabsItemIndex == 3">{{ '   ' + $store.state.userInfo.enableFuturesAmt }}</span> -->
            </div>
          </div>
        </div>
@@ -903,13 +903,13 @@
          <div class="bottom_price">
            <div>
              <span v-show="tabsItemIndex == 1">{{
                " ﷼ " + $store.state.userInfo.allIndexFreezAmt
                "   " + $store.state.userInfo.allIndexFreezAmt
              }}</span>
              <span v-show="tabsItemIndex == 0">{{
                " ﷼ " + $store.state.userInfo.allFreezAmt
                "   " + $store.state.userInfo.allFreezAmt
              }}</span>
              <span v-show="tabsItemIndex == 5">{{
                " ﷼ " + $store.state.userInfo.djzj
                "   " + $store.state.userInfo.djzj
              }}</span>
              <span v-show="tabsItemIndex == 3">{{
                "$ " +
@@ -920,9 +920,9 @@
                (Number($store.state.userInfo.allFreezAmt) / 0.9).toFixed(2)
              }}</span>
              <span v-show="tabsItemIndex == 2">{{
                " ﷼ " + $store.state.userInfo.allFreezAmt
                "   " + $store.state.userInfo.allFreezAmt
              }}</span>
              <!-- <span v-show="tabsItemIndex == 3">{{ ' ﷼ ' + $store.state.userInfo.allFuturesFreezAmt }}</span> -->
              <!-- <span v-show="tabsItemIndex == 3">{{ '   ' + $store.state.userInfo.allFuturesFreezAmt }}</span> -->
            </div>
          </div>
        </div>
@@ -943,7 +943,7 @@
                    : ''
                "
                v-show="tabsItemIndex == 1"
                >{{ " ﷼ " + $store.state.userInfo.allIndexProfitAndLose }}</span
                >{{ "   " + $store.state.userInfo.allIndexProfitAndLose }}</span
              >
              <span
                :class="
@@ -954,7 +954,7 @@
                    : ''
                "
                v-show="tabsItemIndex == 0 || tabsItemIndex == 5"
                >{{ " ﷼ " + $store.state.userInfo.allProfitAndLose }}</span
                >{{ "   " + $store.state.userInfo.allProfitAndLose }}</span
              >
              <span
                :class="
@@ -997,11 +997,11 @@
                    : ''
                "
                v-show="tabsItemIndex == 2"
                >{{ " ﷼ " + $store.state.userInfo.allProfitAndLose }}</span
                >{{ "   " + $store.state.userInfo.allProfitAndLose }}</span
              >
              <!-- <span
                :class="$store.state.userInfo.allFuturesProfitAndLose > 0 ? 'red' : $store.state.userInfo.allFuturesProfitAndLose < 0 ? ' green' : ''"
                v-show="tabsItemIndex == 3">{{ ' ﷼' +Number($store.state.userInfo.allFuturesProfitAndLose).toFixed(2)}}</span> -->
                v-show="tabsItemIndex == 3">{{ '  ' +Number($store.state.userInfo.allFuturesProfitAndLose).toFixed(2)}}</span> -->
            </div>
          </div>
        </div>
@@ -1109,16 +1109,16 @@
      tabsClassArr: [
        {
          name: this.$t("hj63"),
          type: 0,
          type: 0
        },
        {
          name: this.$t("hj51"),
          type: 1,
          type: 1
        },
        {
          name: this.$t("hj64"),
          type: 2,
          type: 2
        },
        // {
        //   name: "期货",
@@ -1126,16 +1126,16 @@
        // }
        {
          name: this.$t("hj65"),
          type: 3,
          type: 3
        },
        {
          name: this.$t("hj66"),
          type: 4,
          type: 4
        },
        {
          name: this.$t("hj3"),
          type: 5,
        },
          type: 5
        }
      ],
      tabsItemIndex: 0,
      listArr: [],
@@ -1144,7 +1144,7 @@
      listArr3: [],
      listArr4: [],
      listArr5: [],
      listArrs: [],
      listArrs: []
    };
  },
  props: ["typety"],
@@ -1313,7 +1313,7 @@
      } else {
        this.$store.commit("elAlertShow", {
          elAlertShow: true,
          elAlertText: data.msg,
          elAlertText: data.msg
        });
      }
    },
@@ -1326,7 +1326,7 @@
      } else {
        this.$store.commit("elAlertShow", {
          elAlertShow: true,
          elAlertText: data.msg,
          elAlertText: data.msg
        });
      }
    },
@@ -1339,14 +1339,14 @@
        // `this.$store.commit('elAlertShow',{'elAlertShow':true,'elAlertText': data.msg});`
        this.$store.commit("elAlertShow", {
          elAlertShow: true,
          elAlertText: data.msg,
          elAlertText: data.msg
        });
      }
    },
    getListMarket: handleDt.debounce(async function () {
      let val = {
        pageNum: this.pageNum,
        pageSize: 15,
        pageSize: 15
      };
      // 获取指数列表
      let result = await api.getListMarket(val);
@@ -1372,7 +1372,7 @@
        stockPlate: this.stockPlate,
        keyWords: this.gpcode,
        stockType: stockType,
        orderBy: this.orderBy,
        orderBy: this.orderBy
      };
      // let data = await api.getStock(opt)
      let data = await api.getStockByType(opt);
@@ -1392,7 +1392,7 @@
            if (this.gpcode) {
              this.listArr = data.data.list;
            } else {
              data.data.list.forEach((element) => {
              data.data.list.forEach(element => {
                this.listArr.push(element);
              });
            }
@@ -1415,7 +1415,7 @@
        pageSize: 15,
        stockPlate: this.stockPlate,
        keyWords: this.gpcode,
        stockType: "US",
        stockType: "US"
      };
      let data = await api.getStock(opt);
      this.loading = false;
@@ -1427,7 +1427,7 @@
          if (this.pageNum === 1) {
            this.listArr = data.data.list;
          } else {
            data.data.list.forEach((element) => {
            data.data.list.forEach(element => {
              this.listArr.push(element);
            });
          }
@@ -1445,7 +1445,7 @@
        pageSize: 15,
        stockPlate: this.stockPlate,
        keyWords: this.gpcode,
        stockType: this.stockType,
        stockType: this.stockType
      };
      let data = await api.getStock(opt);
      this.loading = false;
@@ -1457,7 +1457,7 @@
          if (this.gpcode) {
            this.listArr3 = data.data.list;
          } else {
            data.data.list.forEach((element) => {
            data.data.list.forEach(element => {
              this.listArr3.push(element);
            });
          }
@@ -1474,7 +1474,7 @@
        pageSize: 15,
        stockPlate: this.stockPlate,
        keyWords: this.gpcode,
        stockType: this.stockType,
        stockType: this.stockType
      };
      let data = await api.getStock(opt);
      this.loading = false;
@@ -1486,7 +1486,7 @@
          if (this.gpcode) {
            this.listArr4 = data.data.list;
          } else {
            data.data.list.forEach((element) => {
            data.data.list.forEach(element => {
              this.listArr4.push(element);
            });
          }
@@ -1502,7 +1502,7 @@
        pageNum: this.pageNum,
        pageSize: 15,
        stockPlate: this.stockPlate,
        keyWords: this.gpcode,
        keyWords: this.gpcode
      };
      let data = await api.getStock(opt);
      this.loading = false;
@@ -1514,7 +1514,7 @@
          if (this.gpcode) {
            this.listArr2 = data.data.list;
          } else {
            data.data.list.forEach((element) => {
            data.data.list.forEach(element => {
              this.listArr2.push(element);
            });
          }
@@ -1549,7 +1549,7 @@
      let opt = {
        newCode: this.sgCode,
        applyNums: this.sgNum,
        phone: this.$store.state.userInfo.phone,
        phone: this.$store.state.userInfo.phone
      };
      let data = await api.getNewAdd(opt);
      if (data.status === 0) {
@@ -1582,8 +1582,8 @@
          if_us: ifUs,
          if_zhishu: ifZhishu,
          sok: item.type ? item.type : this.filterSH(item.stock_type),
          type: item.stock_type,
        },
          type: item.stock_type
        }
      });
    },
    // 进入详情
@@ -1597,7 +1597,7 @@
      }
      const obj = {
        pid: item.code || "",
        type: item.stock_type || "",
        type: item.stock_type || ""
      };
      window.localStorage.setItem("kLine", JSON.stringify(obj));
      var codes = "";
@@ -1679,8 +1679,8 @@
            sok: soks,
            if_us: ifUs,
            usType: item.type,
            if_zhishu: ifZhishu,
          },
            if_zhishu: ifZhishu
          }
        });
      }
    },
@@ -1740,12 +1740,12 @@
      let opt = {
        pageNum: this.pageNums,
        pageSize: 15,
        keyWords: this.gpcodes,
        keyWords: this.gpcodes
      };
      let data = await api.getMyList(opt);
      this.loadings = false;
      if (data.status === 0) {
        data.data.list.forEach((element) => {
        data.data.list.forEach(element => {
          this.listArrs.push(element);
        });
      }
@@ -1872,7 +1872,7 @@
      if (this.tabsItemIndex === 1) {
        this.$message({
          message: this.$t("hj71"),
          type: "warning",
          type: "warning"
        });
        return;
      }
@@ -2038,7 +2038,7 @@
      }
      let opt = {
        pageNum: 1,
        pageSize: this.currentNum,
        pageSize: this.currentNum
      };
      let data = await api.getListMarket(opt);
      this.list = data.data;
@@ -2057,7 +2057,7 @@
        this.$refs["topTitle"].style.height = "1.2821rem";
      }
      this.dialogFlag = !this.dialogFlag;
    },
    }
  },
  filters: {
    getName(spell) {
@@ -2124,8 +2124,8 @@
      }
      // 17:35:2922-06-2022
      return y + "-" + mm + "-" + d + " " + h + ":" + m + ":" + c;
    },
  },
    }
  }
};
</script>