zzzz
2024-04-22 ff690c460e82ced0a20e45a8009a2c33bfbf514a
src/page/home/home.vue
@@ -31,7 +31,7 @@
        <div class="fg"></div>
        <div class="box-1">
          <ul class="menu" style="border-bottom: 0px">
            <li @click="$router.push('/recharge')">
            <li @click="aRouter">
              <div class="link">
                <div class="icon">
                  <img
@@ -54,7 +54,7 @@
                <div class="name">{{ $t("提款") }}</div>
              </div>
            </li>
            <li>
            <li @click="aRouter">
              <div class="link">
                <div class="icon">
                  <img
@@ -77,7 +77,7 @@
                <div class="name">{{ $t("安全") }}</div>
              </div>
            </li>
            <li @click="$router.push('/setting')">
            <!-- <li @click="$router.push('/trading-list')">
              <div class="link">
                <div class="icon">
                  <img
@@ -85,10 +85,10 @@
                    alt=""
                  />
                </div>
                <div class="name">{{ $t("用戶手冊") }}</div>
                <div class="name">{{ $t("hj225") }}</div>
              </div>
            </li>
            <li @click="$router.push('/setting')">
            </li> -->
            <!-- <li @click="$router.push('/warehouse')">
              <div class="link">
                <div class="icon">
                  <img
@@ -96,10 +96,10 @@
                    alt=""
                  />
                </div>
                <div class="name">{{ $t("平臺") }}</div>
                <div class="name">{{ $t("hj226") }}</div>
              </div>
            </li>
            <li @click="$router.push('/transferIndex')">
            </li> -->
            <li @click="$router.push('/trading-list?type=DZ')">
              <div class="link">
                <div class="icon">
                  <img
@@ -107,10 +107,10 @@
                    alt=""
                  />
                </div>
                <div class="name">{{ $t("hj245") }}</div>
                <div class="name">{{ $t("hj261") }}</div>
              </div>
            </li>
            <li @click="settingDialog = true">
            <li @click="$refs.language.settingDialog = true">
              <div class="links">
                <div class="icon">
                  <img
@@ -126,27 +126,7 @@
            </li>
          </ul>
          <!-- 多语言弹框 -->
          <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>
          </van-popup>
          <Language ref="language" />
        </div>
        <div class="fg"></div>
        <div class="new-stock">
@@ -232,7 +212,7 @@
                "
              >
                <div class="item-times">
                  {{ $moment(item.addTime).format("YYYY-MM-DD HH:mm:ss") }}
                  {{ $moment(item.addTime).format("DD-MM-YYYY hh:mm:ss A") }}
                </div>
                <div
                  class="titContent"
@@ -268,54 +248,37 @@
import xiazai from "@/assets/img/xiazai.png";
import GoToLogin from "@/page/home/components/GoLogin.vue";
import { MessageBox } from "mint-ui";
import Language from "@/components/Language/index.vue";
export default {
  components: {
    HomeList,
    AllList,
    GoToLogin,
    Echart,
    Language,
  },
  // onlineService
  props: {},
  data() {
    return {
      // 客服地址
      news: "tab_0",
      // 新闻导航
      newListHeader: [
        {
          title: "美国新闻",
          title: "印度新闻",
          id: "tab_0",
          data: [],
          type: 1,
        },
        {
          title: "马来西亚新闻",
          id: "tab_1",
          data: [],
          type: 2,
        },
        // {
        //   title: "马来西亚新闻",
        //   id: "tab_1",
        //   data: [],
        //   type: 2,
        // },
      ],
      settingDialog: false,
      // 多语言配置
      actions: [
        {
          text: "English",
          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" },
        {
          text: "ภาษาไทย",
          icon: require("@/assets/ico/india.png"),
          lang: "ty",
        },
        {
          text: "日本語にほんご",
          icon: require("@/assets/ico/india.png"),
          lang: "ry",
        },
      ],
      // 公告 icon 地址
      Announcement,
      close: true,
@@ -363,15 +326,10 @@
    },
  },
  methods: {
    qkclick(e) {
      this.settingDialog = false;
      window.localStorage.setItem("language", e.lang);
      this.$i18n.locale = e.lang;
      this.language = e.text;
    aRouter() {
      window.open(this.onlineService);
    },
    popClose() {
      this.settingDialog = false;
    },
    getdialog() {
      MessageBox.confirm(this.$t("hj252"), this.$t("hj165"), {
        confirmButtonText: this.$t("hj161"),
@@ -379,14 +337,6 @@
      })
        .then(async () => {})
        .catch(() => {});
      // MessageBox.confirm('老号被盗请勿转账,请认准新tg:@BEINL2', this.$t('hj165'), {
      //   confirmButtonText: this.$t('hj161'),
      //   cancelButtonText: this.$t('hj106'),
      // }).then(async () => {
      // }).catch(() => {
      // });
    },
    onSelect(e) {
      this.$i18n.locale = e.lang;
@@ -1342,41 +1292,6 @@
    font-weight: 500;
    line-height: 0.64rem;
  }
}
.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;
}
// /deep/ .van-popup {
//   overflow-y: auto;