Browse Source

修改轮播图

master
liaoxinyu 2 years ago
parent
commit
5a6cfbd39a
  1. BIN
      src/assets/img/home1.png
  2. BIN
      src/assets/img/home2.jpg
  3. 63
      src/views/home/index.vue

BIN
src/assets/img/home1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

BIN
src/assets/img/home2.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 658 KiB

63
src/views/home/index.vue

@ -50,23 +50,36 @@
</div> --> </div> -->
</div> </div>
<!-- 加密货币之门 --> <!-- 加密货币之门 -->
<div class="section illustration_area"> <div>
<div class="left"> <el-carousel :interval="3000" height="560px" indicator-position="none">
<div class="title">{{ $t("homeNewText.aa1") }}</div> <el-carousel-item>
<div style="font-size: 20px;margin: 25px auto 60px;">{{ $t("homeNewText.aa2") }}</div> <div style="width: 1917px;">
<router-link v-if="!isLogin" class="btn" :to="{name:'signUp'}"> <div class="section illustration_area">
<!-- <img src="../../assets/img/fas fa-user-plus@3x.png" alt=""> --> <div class="left">
{{ $t("homeNewText.aa3") }} <div class="title">{{ $t("homeNewText.aa1") }}</div>
</router-link> <div style="font-size: 20px;margin: 25px auto 60px;">{{ $t("homeNewText.aa2") }}</div>
<router-link v-else class="btn" :to="{name:'exchange'}"> <router-link v-if="!isLogin" class="btn" :to="{name:'signUp'}">
<!-- <img src="../../assets/img/riFill-exchange-fill@3x.png" alt=""> --> <!-- <img src="../../assets/img/fas fa-user-plus@3x.png" alt=""> -->
{{ $t("homeNewText.aa4") }} {{ $t("homeNewText.aa3") }}
</router-link> </router-link>
</div> <router-link v-else class="btn" :to="{name:'exchange'}">
<div class="right"> <!-- <img src="../../assets/img/riFill-exchange-fill@3x.png" alt=""> -->
<img src="../../assets/img/illustration_1.png" alt="" style="width: 456px;height: 473px;"> {{ $t("homeNewText.aa4") }}
</div> </router-link>
</div> </div>
<div class="right">
<img src="../../assets/img/illustration_1.png" alt="" style="width: 456px;height: 473px;">
</div>
</div>
</div>
</el-carousel-item>
<el-carousel-item>
<div>
<img src="../../assets/img/home2.jpg" alt="">
</div>
</el-carousel-item>
</el-carousel>
</div>
<div class="market_table" v-if="marketList[0]"> <div class="market_table" v-if="marketList[0]">
<div style="font-size: 42px;text-align: center;font-weight: bold;color: #101010;">{{ $t("homeNewText.aa5") }}</div> <div style="font-size: 42px;text-align: center;font-weight: bold;color: #101010;">{{ $t("homeNewText.aa5") }}</div>
@ -633,16 +646,16 @@
<script> <script>
import Vue from "vue"; import Vue from "vue";
// import VueAwesomeSwiper from "vue-awesome-swiper"; import VueAwesomeSwiper from "vue-awesome-swiper";
import vueQr from "vue-qr"; import vueQr from "vue-qr";
import Home from "@/api/home"; import Home from "@/api/home";
// import "swiper/swiper-bundle.css"; import "swiper/swiper-bundle.css";
import Socket from "@/api/server/Socket.js"; import Socket from "@/api/server/Socket.js";
import College from "@/api/college"; import College from "@/api/college";
import Member from "@/api/member"; import Member from "@/api/member";
import * as d3 from 'd3'; import * as d3 from 'd3';
import priceLine from "../market/price-line"; import priceLine from "../market/price-line";
// Vue.use(VueAwesomeSwiper); Vue.use(VueAwesomeSwiper);
export default { export default {
components: { components: {
vueQr, vueQr,
@ -718,6 +731,16 @@ export default {
el: ".swiper-pagination", el: ".swiper-pagination",
}, },
}, },
swipere: {
loopedSlides: 6,
slidesPerView: 1,
loop: true,
// autoplay: {
// delay: 2000,
// stopOnLastSlide: false,
// disableOnInteraction: false
// },
},
bannerList: [], bannerList: [],
articleList: [], articleList: [],
homeList: [], homeList: [],

Loading…
Cancel
Save