index.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <!-- 首页面 -->
  3. <view class="container">
  4. <view class="item-image"> </view>
  5. <view class="item-title">
  6. <view class="item-title-line"></view>
  7. <view class="item-title-font">迎新指南</view>
  8. </view>
  9. <view class="item-list">
  10. <view class="item-list-one" @click="navigateToMap">
  11. <image src="../../static/images/map.png" class="img-btn"></image>
  12. <text class="list-txt">地图导览</text>
  13. </view>
  14. <view class="item-list-one" @click="navigateToCard">
  15. <image src="../../static/images/card.png" class="img-btn"></image>
  16. <text class="list-txt">临时卡领取</text>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {};
  25. },
  26. onLoad() {
  27. //预加载页面
  28. uni.preloadPage({ url: "../map/map" });
  29. uni.preloadPage({ url: "../weiChat/weiChat" });
  30. },
  31. upUnload() {},
  32. methods: {
  33. //跳转地图导览页面
  34. navigateToMap() {
  35. uni.navigateTo({
  36. url: "../map/map",
  37. });
  38. },
  39. //跳转临时卡页面
  40. navigateToCard() {
  41. uni.navigateTo({
  42. url: "../weiChat/weiChat",
  43. });
  44. },
  45. //跳转学校官网
  46. navigateToGW() {
  47. let gwUrl = "https://www.ecjtuit.edu.cn/?ivk_sa=1024320u";
  48. window.location.href = gwUrl;
  49. },
  50. },
  51. };
  52. </script>
  53. <style>
  54. @import url("./css/index.css");
  55. </style>