1
QYF-GitLab1
2024-07-18 587d25c4a1d1a5d240e7750aa0c043a702a737d5
src/pages/index/index.vue
@@ -150,7 +150,7 @@
import Footer1 from "@/components/footer/footer.vue";
export default {
  components: {
    Footer1
    Footer1,
  },
  data() {
    return {
@@ -169,55 +169,55 @@
        pass: "",
        checkPass: "",
        cellphoneORmailbox: "",
        verifyCode: ""
        verifyCode: "",
      },
      // 登录用户账号
      loginData: {
        // 账号
        loginID: "",
        pass: ""
        pass: "",
      },
      // 重置密码
      resetDataPass: {
        cellphoneORmailbox: "",
        verifyCode: "",
        newPass: "",
        checkPass: ""
        checkPass: "",
      },
      // 修改密码
      amendDataPass: {
        loginID: "",
        originalPass: "",
        newPass: "",
        checkPass: ""
        checkPass: "",
      },
      // 书籍数据
      listData: [
        {
          name: "历代人物",
          id: 1
          id: 1,
        },
        {
          name: "家学传承",
          id: 2
          id: 2,
        },
        {
          name: "学术流派",
          id: 6
          id: 6,
        },
        {
          name: "学术图谱",
          id: 3
          id: 3,
        },
        {
          name: "地域图谱",
          id: 4
          id: 4,
        },
        // {
        //   name: "中医医事制度",
        //   id: 5
        // }
      ]
      ],
    };
  },
  onLoad() {
@@ -225,7 +225,7 @@
      success: function (info) {
        // console.log('屏幕的宽度:' + info.windowWidth);
        // console.log('屏幕的高度:' + info.windowHeight);
      }
      },
    });
  },
  mounted() {
@@ -236,7 +236,7 @@
    // 搜索
    onSearch(val) {
      uni.navigateTo({
        url: "/pages/knowledgeBase/knowledgeBase?keyword=" + val.text
        url: "/pages/knowledgeBase/knowledgeBase?keyword=" + val.text,
      });
    },
    // 搜索
@@ -247,7 +247,7 @@
        if (this.searchInput.trim() !== "") {
          uni.navigateTo({
            url:
              "/pages/knowledgeBase/knowledgeBase?keyword=" + this.searchInput
              "/pages/knowledgeBase/knowledgeBase?keyword=" + this.searchInput,
          });
        }
        this.searchInput = "";
@@ -260,30 +260,30 @@
      if (item.id == 1) {
        uni.navigateTo({
          // url: '/pages/character/detail?id=' + item.id
          url: "/pages/character/index?id=" + item.id
          url: "/pages/character/index?id=" + item.id,
        });
      } else if (item.id == 2) {
        uni.navigateTo({
          url: "/pages/inherit/index?id=" + item.id
          url: "/pages/inherit/index?id=" + item.id,
        });
        // uni.navigateTo({
        //    url: '/pages/shiyiHome/shiyiHome'
        // })
      } else if (item.id == 3) {
        uni.navigateTo({
          url: "/pages/academicGenres/index?id=" + item.id
          url: "/pages/academicGenres/index?id=" + item.id,
        });
      } else if (item.id == 4) {
        uni.navigateTo({
          url: "/pages/territory/territory?id=" + item.id
          url: "/pages/territory/territory?id=" + item.id,
        });
      } else if (item.id == 5) {
        uni.navigateTo({
          url: "/pages/TcmSystem/TcmSystem?id=" + item.id
          url: "/pages/TcmSystem/TcmSystem?id=" + item.id,
        });
      } else if (item.id == 6) {
        uni.navigateTo({
          url: "/pages/academicSchools/academicSchools"
          url: "/pages/academicSchools/index",
        });
      }
    },
@@ -315,7 +315,7 @@
          // token 不存在
          this.isCommand = false;
          uni.navigateTo({
            url: "/pages/Login/Login"
            url: "/pages/Login/Login",
          });
        }
      } else if (index == 3) {
@@ -326,7 +326,7 @@
    handleCommand(int) {
      if (int == 1) {
        uni.navigateTo({
          url: "/pages/changePassword/changePassword"
          url: "/pages/changePassword/changePassword",
        });
      } else if (int == 2) {
        uni.showModal({
@@ -343,15 +343,15 @@
                //退出成功!并跳转到其他页面
                this.$message.success("退出成功");
                uni.reLaunch({
                  url: "/pages/Login/Login"
                  url: "/pages/Login/Login",
                });
              });
            }
          }
          },
        });
      }
    }
  }
    },
  },
};
</script>
@@ -758,7 +758,7 @@
}
.secretary li .detailBtn {
  transition: translate .3s;
  transition: translate 0.3s;
}
.secretary li .detailBtn:hover {
  translate: 0 -5px;