jhzh
2024-04-07 fe1a028d6ad03860a9836951eaf4de6165d073d7
修改:客户问题处理
10 files modified
1 files deleted
19188 ■■■■■ changed files
chinese_data.json 62 ●●●●● patch | view | raw | blame | history
package-lock.json 18112 ●●●●● patch | view | raw | blame | history
src/locales/en.js 4 ●●●● patch | view | raw | blame | history
src/page/home/home.vue 2 ●●● patch | view | raw | blame | history
src/page/list/tradingList/tabs.vue 4 ●●●● patch | view | raw | blame | history
src/page/newUser/setting.vue 952 ●●●● patch | view | raw | blame | history
src/page/trading/buy.vue 15 ●●●●● patch | view | raw | blame | history
src/page/user/Warehouse.vue 12 ●●●●● patch | view | raw | blame | history
src/page/user/Warehouse/data.list.vue 15 ●●●● patch | view | raw | blame | history
src/page/user/Warehouse/item.card.vue 2 ●●● patch | view | raw | blame | history
src/page/user/recharge-sure.vue 8 ●●●● patch | view | raw | blame | history
chinese_data.json
File was deleted
package-lock.json
Diff too large
src/locales/en.js
@@ -791,7 +791,7 @@
  hj221: "Welcome back",
  hj222: "Log in using your mobile phone number",
  hj223: "Don’t have an account yet? Register!",
  hj224: "front page",
  hj224: "home",
  hj225: "trade",
  hj226: "position",
  hj227: "mine",
@@ -869,7 +869,7 @@
  平臺: "platform",
  申購記錄: "Subscription records",
  資訊: "information",
  数字货币: "digital currency",
  数字货币: "DC",
  马股: "MY stocks",
  美股: "US stocks",
  名稱: "name",
src/page/home/home.vue
@@ -395,6 +395,7 @@
          icon: require("@/assets/ico/english.png"),
          lang: "zh-CN",
        },
        { text: "繁体中文", icon: require("@/assets/ico/tw.png"), lang: "tw" },
        { text: "हिंदी", icon: require("@/assets/ico/india.png"), lang: "en" },
        { text: "한국인", icon: require("@/assets/ico/india.png"), lang: "hy" },
        {
@@ -408,7 +409,6 @@
          lang: "ry",
        },
        { text: "繁体中文", icon: require("@/assets/ico/tw.png"), lang: "tw" },
      ],
      // language,
      Logo,
src/page/list/tradingList/tabs.vue
@@ -74,9 +74,9 @@
.title {
  // color: red;
  font-size: 18px;
  padding: 10px 20px 10px;
  // padding: 10px 20px 10px;
}
/deep/ .van-tabs--line .van-tabs__wrap {
  height: 50px;
}
</style>
</style>
src/page/newUser/setting.vue
@@ -65,21 +65,9 @@
        <div style="margin-right: 10px">{{ language }}</div>
      </div>
    </div>
    <van-popup
      v-model="settingDialog"
      position="bottom"
      :style="{ height: '35%' }"
      @close="popClose"
    >
      <div
        class="lang_box"
        v-for="(item, index) in actions"
        :key="index"
        @click="qkclick(item)"
      >
        <div
          :class="$i18n.locale == item.lang ? 'lang_box_txt' : 'lang_box_txta'"
        >
    <van-popup v-model="settingDialog" position="bottom" :style="{ height: '35%' }" @close="popClose">
      <div class="lang_box" v-for="(item, index) in actions" :key="index" @click="qkclick(item)">
        <div :class="$i18n.locale == item.lang ? 'lang_box_txt' : 'lang_box_txta'">
          {{ item.text }}
        </div>
      </div>
@@ -124,512 +112,546 @@
</template>
<script>
import * as api from "@/axios/api";
import { Toast, MessageBox } from "mint-ui";
import { isNull, pwdReg } from "@/utils/utils";
import { mapMutations } from "vuex";
import { Notify } from "vant";
  import * as api from "@/axios/api";
  import {
    Toast,
    MessageBox
  } from "mint-ui";
  import {
    isNull,
    pwdReg
  } from "@/utils/utils";
  import {
    mapMutations
  } from "vuex";
  import {
    Notify
  } from "vant";
export default {
  name: "newUser",
  data() {
    return {
      name: "大狗子",
      pswDialog: false,
      selectUserFlag: true,
      settingDialog: false,
      oldPassword: "", // 旧密码
      newPassword: "", // 新密码
      cirNewPassword: "", // 确认新密码
      userInfo: [],
      onlineService: "",
      language: "",
      actions: [
        {
          text: "English",
          icon: require("@/assets/ico/english.png"),
          lang: "zh-CN",
        },
        { text: "हिंदी", icon: require("@/assets/ico/india.png"), lang: "en" },
        { text: "한국인", icon: require("@/assets/ico/india.png"), lang: "hy" },
        {
          text: "ภาษาไทย",
          icon: require("@/assets/ico/india.png"),
          lang: "ty",
        },
        {
          text: "日本語にほんご",
          icon: require("@/assets/ico/india.png"),
          lang: "ry",
        },
  export default {
    name: "newUser",
    data() {
      return {
        name: "大狗子",
        pswDialog: false,
        selectUserFlag: true,
        settingDialog: false,
        oldPassword: "", // 旧密码
        newPassword: "", // 新密码
        cirNewPassword: "", // 确认新密码
        userInfo: [],
        onlineService: "",
        language: "",
        actions: [{
            text: "English",
            icon: require("@/assets/ico/english.png"),
            lang: "zh-CN",
          },
          {
            text: "हिंदी",
            icon: require("@/assets/ico/india.png"),
            lang: "en"
          },
          {
            text: "한국인",
            icon: require("@/assets/ico/india.png"),
            lang: "hy"
          },
          {
            text: "ภาษาไทย",
            icon: require("@/assets/ico/india.png"),
            lang: "ty",
          },
          {
            text: "日本語にほんご",
            icon: require("@/assets/ico/india.png"),
            lang: "ry",
          },
        { text: "繁体中文", icon: require("@/assets/ico/tw.png"), lang: "tw" },
      ],
    };
  },
  components: {},
  created() {
    this.getUserInfo();
    this.language = window.localStorage.getItem("language");
    console.log(window.localStorage.getItem("language"));
    if (this.language == "zh-CN") {
      this.language = "English";
    } else {
      this.language = "हिंदी";
    }
  },
  methods: {
    ...mapMutations(["undataToken"]),
    popClose() {
      this.settingDialog = false;
          {
            text: "繁体中文",
            icon: require("@/assets/ico/tw.png"),
            lang: "tw"
          },
        ],
      };
    },
    qkclick(e) {
      this.settingDialog = false;
      window.localStorage.setItem("language", e.lang);
      this.$i18n.locale = e.lang;
      this.language = e.text;
    },
    clicklang() {
      this.settingDialog = true;
    },
    yebclick() {
      this.$router.push("/yeb");
    },
    regexNum(str) {
      console.log(str);
      str = str.toString();
      if (str.indexOf(".") == -1) {
        str = str + ".00";
      }
      var newStr = str.split(".");
      var point = newStr[1];
      if (point.length < 2) {
        point = point + "0";
      }
      var moneyPoint = newStr[0];
      if (moneyPoint.length <= 3) {
        return moneyPoint + "." + point;
    components: {},
    created() {
      this.getUserInfo();
      this.language = window.localStorage.getItem("language");
      console.log(window.localStorage.getItem("language"));
      if (this.language == "zh-CN") {
        this.language = "English";
      } else {
        var mPoint = moneyPoint.substr(
          moneyPoint.length - 3,
          moneyPoint.length
        );
        var twoPoint = moneyPoint.substr(0, moneyPoint.length - 3);
        var endString = twoPoint
          .toString()
          .replace(/(\d)(?=(\d{2})+(?!\d))/g, "$1,");
        return endString + "," + mPoint + "." + point;
        this.language = "हिंदी";
      }
    },
    goOnline() {
      if (navigator.vibrate) {
        // 支持
        navigator.vibrate([55]);
      }
      this.$router.push("/service");
    },
    async getInfoSite() {
      let data = await api.getInfoSite();
      if (data.status === 0) {
        this.onlineService = data.data.onlineService;
      } else {
        Toast(data.msg);
      }
    },
    goWall() {
      this.$router.push("/wallet");
    },
    gotoa(e) {
      if (e == 0) {
    methods: {
      ...mapMutations(["undataToken"]),
      popClose() {
        this.settingDialog = false;
      },
      qkclick(e) {
        this.settingDialog = false;
        window.localStorage.setItem("language", e.lang);
        this.$i18n.locale = e.lang;
        this.language = e.text;
      },
      clicklang() {
        this.settingDialog = true;
      },
      yebclick() {
        this.$router.push("/yeb");
      },
      regexNum(str) {
        console.log(str);
        str = str.toString();
        if (str.indexOf(".") == -1) {
          str = str + ".00";
        }
        var newStr = str.split(".");
        var point = newStr[1];
        if (point.length < 2) {
          point = point + "0";
        }
        var moneyPoint = newStr[0];
        if (moneyPoint.length <= 3) {
          return moneyPoint + "." + point;
        } else {
          var mPoint = moneyPoint.substr(
            moneyPoint.length - 3,
            moneyPoint.length
          );
          var twoPoint = moneyPoint.substr(0, moneyPoint.length - 3);
          var endString = twoPoint
            .toString()
            .replace(/(\d)(?=(\d{2})+(?!\d))/g, "$1,");
          return endString + "," + mPoint + "." + point;
        }
      },
      goOnline() {
        if (navigator.vibrate) {
          // 支持
          navigator.vibrate([55]);
        }
        this.$router.push("/service");
      },
      async getInfoSite() {
        let data = await api.getInfoSite();
        if (data.status === 0) {
          this.onlineService = data.data.onlineService;
        } else {
          Toast(data.msg);
        }
      },
      goWall() {
        this.$router.push("/wallet");
      } else if (e == 1) {
      },
      gotoa(e) {
        if (e == 0) {
          this.$router.push("/wallet");
        } else if (e == 1) {
          this.$router.push("/tixian");
        } else {
          this.$router.push("/transfers");
        }
      },
      subclick() {
        this.$router.push("/SubDK");
      },
      subaclick() {
        this.$router.push("/tixian");
      } else {
      },
      handleZh() {
        this.selectUserFlag = !this.selectUserFlag;
        if (navigator.vibrate) {
          // 支持
          navigator.vibrate([55]);
        }
      },
      async getUserInfo() {
        // 获取用户信息
        let data = await api.getUserInfo();
        if (data.status === 0) {
          // 判断是否登录
          this.$store.commit("dialogVisible", false);
          this.$store.state.userInfo = data.data;
          this.userInfo = data.data;
        } else {
          this.$store.commit("dialogVisible", true);
        }
      },
      goToTopUp() {
        // if (this.userInfo.length === 0) {
        //     this.$store.commit('dialogVisible', true)
        //     return
        // }
        // if (navigator.vibrate) {
        //     // 支持
        //     navigator.vibrate([55])
        // }
        this.$router.push("/setting");
      },
      handleOutLoginClick() {
        // 退出登录
        MessageBox.confirm(this.$t("hj149") + "?", this.$t("hj165"), {
            confirmButtonText: this.$t("hj161"),
            cancelButtonText: this.$t("hj106"),
          })
          .then(() => {
            this.toRegister();
          })
          .catch(() => {});
      },
      goToSettings() {
        // 每次打开dialog 清空密码数据
        this.pswDialog = !this.pswDialog;
        if (this.pswDialog) {
          this.oldPassword = "";
          this.newPassword = "";
          this.cirNewPassword = "";
        }
      },
      handleGoToTransfer() {
        this.$router.push("/transfers");
      }
    },
    subclick() {
      this.$router.push("/SubDK");
    },
    subaclick() {
      this.$router.push("/tixian");
    },
    handleZh() {
      this.selectUserFlag = !this.selectUserFlag;
      if (navigator.vibrate) {
        // 支持
        navigator.vibrate([55]);
      }
    },
    async getUserInfo() {
      // 获取用户信息
      let data = await api.getUserInfo();
      if (data.status === 0) {
        // 判断是否登录
        this.$store.commit("dialogVisible", false);
        this.$store.state.userInfo = data.data;
        this.userInfo = data.data;
      } else {
        this.$store.commit("dialogVisible", true);
      }
    },
    goToTopUp() {
      // if (this.userInfo.length === 0) {
      //     this.$store.commit('dialogVisible', true)
      //     return
      // }
      // if (navigator.vibrate) {
      //     // 支持
      //     navigator.vibrate([55])
      // }
      this.$router.push("/setting");
    },
    handleOutLoginClick() {
      // 退出登录
      MessageBox.confirm(this.$t("hj149") + "?", this.$t("hj165"), {
        confirmButtonText: this.$t("hj161"),
        cancelButtonText: this.$t("hj106"),
      })
        .then(() => {
          this.toRegister();
        })
        .catch(() => {});
    },
    goToSettings() {
      // 每次打开dialog 清空密码数据
      this.pswDialog = !this.pswDialog;
      if (this.pswDialog) {
        this.oldPassword = "";
        this.newPassword = "";
        this.cirNewPassword = "";
      }
    },
    handleGoToTransfer() {
      this.$router.push("/transfers");
    },
    handleGoToAuthentication() {
      this.$router.push("/authentications");
    },
    handleGoToAuthenticationaz() {
      this.$router.push("/download");
    },
    handleGoToBankCard() {
      this.$router.push("/bankCard");
    },
    async toRegister() {
      // 注销登陆
      window.localStorage.removeItem("USERTOKEN"); // 清空本地存储 USERTOKEN字段
      this.clearCookie();
      let data = await api.logout();
      if (data.status === 0) {
        // Toast(data.msg)
        this.undataToken(null);
      },
      handleGoToAuthentication() {
        this.$router.push("/authentications");
      },
      handleGoToAuthenticationaz() {
        this.$router.push("/download");
      },
      handleGoToBankCard() {
        this.$router.push("/bankCard");
      },
      async toRegister() {
        // 注销登陆
        window.localStorage.removeItem("USERTOKEN"); // 清空本地存储 USERTOKEN字段
        this.clearCookie();
        let data = await api.logout();
        if (data.status === 0) {
          // Toast(data.msg)
          this.undataToken(null);
          this.$router.push("/login");
        } else {
          Toast(data.msg);
        }
        this.$router.push("/login");
      } else {
        Toast(data.msg);
      }
      this.$router.push("/login");
    },
    async changeLoginPsd() {
      // 修改密码
      if (
        isNull(this.oldPassword) ||
        isNull(this.newPassword) ||
        isNull(this.cirNewPassword)
      ) {
        Toast(this.$t("hj154"));
        this.settingDialog = false;
      } else if (!pwdReg(this.newPassword)) {
        Toast(this.$t("hj19"));
        this.settingDialog = false;
      } else {
      },
      async changeLoginPsd() {
        // 修改密码
        if (this.newPassword === this.cirNewPassword) {
          let opts = {
            oldPwd: this.oldPassword,
            newPwd: this.newPassword,
          };
          let data = await api.changePassword(opts);
          if (data.status === 0) {
            this.changeLoginPsdBox = false;
        if (
          isNull(this.oldPassword) ||
          isNull(this.newPassword) ||
          isNull(this.cirNewPassword)
        ) {
          Toast(this.$t("hj154"));
          this.settingDialog = false;
        } else if (!pwdReg(this.newPassword)) {
          Toast(this.$t("hj19"));
          this.settingDialog = false;
        } else {
          // 修改密码
          if (this.newPassword === this.cirNewPassword) {
            let opts = {
              oldPwd: this.oldPassword,
              newPwd: this.newPassword,
            };
            let data = await api.changePassword(opts);
            if (data.status === 0) {
              this.changeLoginPsdBox = false;
            this.pswDialog = false;
            this.settingDialog = false;
            Notify({ type: "success", message: this.$t("密码修改成功") });
              this.pswDialog = false;
              this.settingDialog = false;
              Notify({
                type: "success",
                message: this.$t("密码修改成功")
              });
              this.toRegister()
            } else {
              Toast(data.msg);
              this.settingDialog = false;
            }
          } else {
            Toast(data.msg);
            Toast(this.$t("hj155"));
            this.settingDialog = false;
          }
        } else {
          Toast(this.$t("hj155"));
          this.settingDialog = false;
        }
      }
      if (navigator.vibrate) {
        // 支持
        navigator.vibrate([55]);
      }
        if (navigator.vibrate) {
          // 支持
          navigator.vibrate([55]);
        }
      },
    },
  },
};
  };
</script>
<style scoped lang="less">
.right_gos_txt {
  margin-right: 15px;
}
.setting_content {
  width: 100%;
  height: 5rem;
  padding: 0.3rem;
  .right_gos_txt {
    margin-right: 15px;
  }
  .old_password {
  .setting_content {
    width: 100%;
    height: 1rem;
    background: rgb(243, 243, 243);
    border-radius: 0.15rem;
    display: flex;
    margin-top: 0.5rem;
    height: 5rem;
    padding: 0.3rem;
    .left_titles {
      width: 25%;
      height: 100%;
    .old_password {
      width: 100%;
      height: 1rem;
      background: rgb(243, 243, 243);
      border-radius: 0.15rem;
      display: flex;
      margin-top: 0.5rem;
      .left_titles {
        width: 25%;
        height: 100%;
        display: flex;
        align-items: center;
        padding-left: 0.2rem;
        // justify-content: flex-end;
        span {
          font-weight: 600;
        }
      }
      .right_password_input {
        width: 80%;
        height: 100%;
        display: flex;
        align-items: center;
        input {
          width: 100%;
          height: 100%;
          padding-left: 0.2rem;
        }
      }
    }
    .btn_setting {
      width: 100%;
      height: 1.3rem;
      border-radius: 0.15rem;
      background: #2d6ae9;
      color: #fff;
      font-size: 0.4615rem;
      margin-top: 0.5rem;
      display: flex;
      align-items: center;
      padding-left: 0.2rem;
      justify-content: center;
      // justify-content: flex-end;
      span {
        font-weight: 600;
      }
    }
    .right_password_input {
      width: 80%;
      height: 100%;
      display: flex;
      align-items: center;
      input {
        width: 100%;
        height: 100%;
        padding-left: 0.2rem;
      }
    }
  }
  .btn_setting {
  .lang_box_txta {
    width: 100%;
    height: 1.3rem;
    border-radius: 0.15rem;
    background: #2d6ae9;
    height: 100px;
    text-align: center;
    line-height: 100px;
    border-bottom: 1px solid #ecf5ff;
  }
  .lang_box_txt {
    width: 100%;
    height: 100px;
    text-align: center;
    line-height: 100px;
    border-bottom: 1px solid #ecf5ff;
    color: #2196f3;
  }
  .lang_box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .btn_s_box {
    border: none;
    background: #409eff;
    color: #fff;
    font-size: 0.4615rem;
    margin-top: 0.5rem;
    height: 70px;
    width: 100%;
    line-height: 70px;
    font-size: 16px;
    text-align: center;
    border-radius: 15px;
    font-weight: 600;
    margin: 40px 20px 0 20px;
  }
  .btn_s {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .jy {
    width: 100%;
    height: 1.5rem;
    // border-radius: 0.2rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-content: space-between;
    // padding: 0 0.3rem;
    padding-top: 0.3rem;
    border-bottom: 1px solid #ecf5ff;
    span {
      font-weight: 600;
    }
  }
}
.lang_box_txta {
  width: 100%;
  height: 100px;
  text-align: center;
  line-height: 100px;
  border-bottom: 1px solid #ecf5ff;
}
.lang_box_txt {
  width: 100%;
  height: 100px;
  text-align: center;
  line-height: 100px;
  border-bottom: 1px solid #ecf5ff;
  color: #2196f3;
}
.lang_box {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.btn_s_box {
  border: none;
  background: #409eff;
  color: #fff;
  height: 70px;
  width: 100%;
  line-height: 70px;
  font-size: 16px;
  text-align: center;
  border-radius: 15px;
  font-weight: 600;
  margin: 40px 20px 0 20px;
}
.btn_s {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.jy {
  width: 100%;
  height: 1.5rem;
  // border-radius: 0.2rem;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  // padding: 0 0.3rem;
  padding-top: 0.3rem;
  border-bottom: 1px solid #ecf5ff;
  .left_gn {
    // width: 40%;
    height: 60%;
    display: flex;
    .l_icon {
      // width: 30%;
      height: 100%;
    .left_gn {
      // width: 40%;
      height: 60%;
      display: flex;
      justify-content: center;
      .l_icon {
        // width: 30%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        img {
          width: 0.5041rem;
          height: 0.5041rem;
        }
      }
      .r_title {
        // width: 70%;
        height: 100%;
        display: flex;
        align-items: center;
        font-size: 0.4046rem;
        color: #404040;
        padding-left: 0.4rem;
        span {
          font-weight: 600;
        }
      }
    }
    .right_gos {
      // width: 20%;
      height: 60%;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      img {
        width: 0.5041rem;
        height: 0.5041rem;
      }
    }
    .r_title {
      // width: 70%;
      height: 100%;
      display: flex;
      align-items: center;
      font-size: 0.4046rem;
      color: #404040;
      padding-left: 0.4rem;
      span {
        font-weight: 600;
        width: 0.6rem;
        height: 0.6rem;
      }
    }
  }
  .right_gos {
    // width: 20%;
    height: 60%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    img {
      width: 0.6rem;
      height: 0.6rem;
    }
  body {
    background-color: #f8f8f8;
  }
}
body {
  background-color: #f8f8f8;
}
.pages_logo_btn_right {
  margin-left: 20px;
  margin-top: 20px;
  display: inline-block;
  padding: 16px 40px;
  text-decoration: none;
  color: #fff;
  background: #f44336;
  border-radius: 40px;
}
  .pages_logo_btn_right {
    margin-left: 20px;
    margin-top: 20px;
    display: inline-block;
    padding: 16px 40px;
    text-decoration: none;
    color: #fff;
    background: #f44336;
    border-radius: 40px;
  }
.pages_logo_btn_left {
  border-radius: 40px;
  margin-top: 20px;
  display: inline-block;
  padding: 16px 40px;
  text-decoration: none;
  color: #fff;
  background: #2196f3;
}
  .pages_logo_btn_left {
    border-radius: 40px;
    margin-top: 20px;
    display: inline-block;
    padding: 16px 40px;
    text-decoration: none;
    color: #fff;
    background: #2196f3;
  }
.pages_logo_btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 100px;
}
.pages_logo_img {
  width: 200px;
  height: 200px;
  border-radius: 20px;
}
.pages_logo_txt {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}
.pages_logo {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 100px;
}
.content {
  width: 100%;
  height: 100%;
  // padding: 0 0.3rem;
  .top_back {
  .pages_logo_btn {
    width: 100%;
    height: 2rem;
    display: flex;
    background-color: #fff;
    > div {
      width: 10%;
      height: 100%;
      display: flex;
      align-items: center;
    }
    justify-content: center;
    align-items: center;
    margin-top: 100px;
  }
    img {
      width: 0.6rem;
      height: 0.6rem;
      margin-left: 20px;
    }
  .pages_logo_img {
    width: 200px;
    height: 200px;
    border-radius: 20px;
  }
    .titles {
  .pages_logo_txt {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
  }
  .pages_logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
  }
  .content {
    width: 100%;
    height: 100%;
    // padding: 0 0.3rem;
    .top_back {
      width: 100%;
      height: 1.5rem;
      margin-top: 15px;
      // margin-left: 110px;
      height: 2rem;
      display: flex;
      margin-right: 20px;
      justify-content: center;
      align-items: center;
      background-color: #fff;
      span {
        font-weight: 600;
      >div {
        width: 10%;
        height: 100%;
        display: flex;
        align-items: center;
      }
      img {
        width: 0.6rem;
        height: 0.6rem;
        margin-left: 20px;
      }
      .titles {
        width: 100%;
        height: 1.5rem;
        margin-top: 15px;
        // margin-left: 110px;
        display: flex;
        margin-right: 20px;
        justify-content: center;
        align-items: center;
        span {
          font-weight: 600;
        }
      }
    }
  }
}
</style>
</style>
src/page/trading/buy.vue
@@ -538,7 +538,20 @@
          elAlertType: "success",
        });
        this.getUserInfo();
        this.$router.push("/warehouse?index=0");
        var buyType = ''
        if (this.tabsCurrentIndex == 0) {
          buyType = 1;
        } else {
          buyType = 0;
        }
        if(this.bayType=='US'){
          this.$router.push("/warehouse?index=1&buyType="+buyType);
        }else if(this.bayType=='MAS'){
          this.$router.push("/warehouse?index=0&buyType="+buyType);
        }else {
          this.$router.push("/warehouse");
        }
      } else {
        if (data.msg.indexOf("不在交易时段内") > -1) {
          this.$store.commit("elAlertShow", {
src/page/user/Warehouse.vue
@@ -86,6 +86,15 @@
  created() {
    this.getMoneys();
  },
  mounted(){
    if(this.$route.query.index=='0'){
      this.onClick({name:4})
    }else if(this.$route.query.index=='1'){
      this.onClick({name:2})
    }else{
    }
  },
  methods: {
    itemClick() {
      this.$refs.dataListref.getList(this.activeObj.laber);
@@ -107,6 +116,7 @@
      }
    },
    onClick(e) {
      console.log(e);
      this.active = e.name;
      this.activeObj = e;
      this.getMoneys();
@@ -159,4 +169,4 @@
  // padding: 0.10667rem 0.34667rem;
  color: #fff;
}
</style>
</style>
src/page/user/Warehouse/data.list.vue
@@ -32,15 +32,22 @@
          </div>
        </div>
        <van-row>
          <van-col span="12">
          <van-col span="8">
            <div style="text-align: left">
              <div class="sport-content-title2">{{ $t("盈虧") }} (USD)</div>
              <div class="sport-content-text" style="color: #d04b64">
                {{ item.profitAndLose }}
              </div>
            </div></van-col
            </div>
            </van-col
          >
          <van-col span="12">
          <van-col span="8">
            <div style="text-align: center">
              <div class="sport-content-title2">{{ $t("hj141") }} (USD)</div>
              <div class="sport-content-text2">{{ item.profitAndLoseParent }}</div>
            </div>
          </van-col>
          <van-col span="8">
            <div style="text-align: right">
              <div class="sport-content-title2">{{ $t("倉位(股)") }}</div>
              <div class="sport-content-text">{{ item.orderNum }}</div>
@@ -397,4 +404,4 @@
    text-align: right;
  }
}
</style>
</style>
src/page/user/Warehouse/item.card.vue
@@ -205,4 +205,4 @@
    }
  }
}
</style>
</style>
src/page/user/recharge-sure.vue
@@ -57,8 +57,12 @@
      <div>
        <div class="dz-title" v-if="rechargeAccountData.key !== undefined">
          <div>{{ $t("可用餘額") }}</div>
          <div class="balance-text">
          <div class="balance-text" v-if="rechargeAccountData.key=='US'">
            {{ availableBalanceUSD }} USD
            <!-- {{ symbolCode }} -->
          </div>
          <div class="balance-text" v-else>
            {{ availableBalanceUSD }} MYR
            <!-- {{ symbolCode }} -->
          </div>
        </div>
@@ -337,4 +341,4 @@
    color: #4f5257;
  }
}
</style>
</style>