<template>
  <view class="container">
    <view class="item-image"> </view>
    <view class="item-title">
      <view class="item-title-line"></view>
      <view class="item-title-font">迎新指南</view>
    </view>
    <view class="item-list">
      <view class="item-list-one" @click="navigateToMap">
        <image src="../../static/images/map.png" class="img-btn"></image>
        <text class="list-txt">地图导览</text>
      </view>
      <view class="item-list-one" @click="navigateToCard">
        <image src="../../static/images/card.png" class="img-btn"></image>
        <text class="list-txt">临时卡领取</text>
      </view>
      <!-- <view class="item-list-one" @click="navigateToPay">
        <image src="../../static/images/pay.png" class="img-btn"></image>
        <text class="list-txt">在线缴费</text>
      </view> -->
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {};
  },

  onLoad() {
    uni.preloadPage({ url: "../map/map" });
    uni.preloadPage({ url: "../weiChat/weiChat" });
  },
  upUnload() {},
  methods: {
    navigateToMap() {
      uni.navigateTo({
        url: "../map/map",
      });
    },
    navigateToCard() {
      uni.navigateTo({
        url: "../weiChat/weiChat",
      });
    },
    navigateToPay() {
      // uni.navigateTo({
      //   url: "../Pay/pay",
      // });
    },
    navigateToGW() {
      let gwUrl = "https://www.ecjtuit.edu.cn/?ivk_sa=1024320u";
      window.location.href = gwUrl;
    },
  },
};
</script>

<style>
@import url("./css/index.css");
</style>
