footer.js 906 B

123456789101112131415161718192021222324252627282930313233343536
  1. import language from "../common/language.js";
  2. import Service from "../common/service.js";
  3. new Vue({
  4. el: "#footer",
  5. data: {
  6. baseURL: Service.baseURL,
  7. config: {},
  8. path_list: [
  9. { name: "产品中心", path: "/product.html" },
  10. // { name: "联系我们", path: "/contact.html" },
  11. { name: "新闻资讯", path: "/news.html" },
  12. { name: "加入我们", path: "/join.html" },
  13. { name: "关于我们", path: "/about.html" },
  14. ],
  15. },
  16. mounted() {
  17. this.getConfig();
  18. },
  19. methods: {
  20. text(val) {
  21. return language[val][localStorage.getItem("language")];
  22. },
  23. lan_key(val) {
  24. return `${val}${localStorage.getItem("language") == "en" ? "_en" : ""}`;
  25. },
  26. getConfig() {
  27. Service.get_site()
  28. .then((res) => {
  29. this.config = res;
  30. })
  31. .catch((err) => {
  32. console.log(err);
  33. });
  34. },
  35. },
  36. });