Showing
4 changed files
with
23 additions
and
22 deletions
| ... | @@ -23,7 +23,7 @@ | ... | @@ -23,7 +23,7 @@ |
| 23 | "jquery": "^3.7.1", | 23 | "jquery": "^3.7.1", |
| 24 | "mui-player": "^1.8.1", | 24 | "mui-player": "^1.8.1", |
| 25 | "sass": "1.55.0", | 25 | "sass": "1.55.0", |
| 26 | - "swiper": "6", | 26 | + "swiper": "5", |
| 27 | "vue": "2.7.13", | 27 | "vue": "2.7.13", |
| 28 | "vue-awesome-swiper": "4.1.1", | 28 | "vue-awesome-swiper": "4.1.1", |
| 29 | "vue-router": "3.6.5" | 29 | "vue-router": "3.6.5" | ... | ... |
| 1 | /* | 1 | /* |
| 2 | * @Date: 2024-08-26 10:12:56 | 2 | * @Date: 2024-08-26 10:12:56 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-10-15 18:40:00 | 4 | + * @LastEditTime: 2024-10-16 15:23:50 |
| 5 | * @FilePath: /hager/src/main.js | 5 | * @FilePath: /hager/src/main.js |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | */ | 7 | */ |
| ... | @@ -19,7 +19,8 @@ import 'element-ui/lib/theme-chalk/display.css'; // 基于断点的隐藏类, | ... | @@ -19,7 +19,8 @@ import 'element-ui/lib/theme-chalk/display.css'; // 基于断点的隐藏类, |
| 19 | import CollapseTransition from 'element-ui/lib/transitions/collapse-transition'; | 19 | import CollapseTransition from 'element-ui/lib/transitions/collapse-transition'; |
| 20 | 20 | ||
| 21 | import VueAwesomeSwiper from 'vue-awesome-swiper'; | 21 | import VueAwesomeSwiper from 'vue-awesome-swiper'; |
| 22 | -import 'swiper/swiper-bundle.css'; // 确保引入正确的CSS文件路径 | 22 | +// import 'swiper/swiper-bundle.css'; // 确保引入正确的CSS文件路径 |
| 23 | +import 'swiper/css/swiper.css'; // 确保引入正确的CSS文件路径 | ||
| 23 | 24 | ||
| 24 | Vue.use(VueRouter); | 25 | Vue.use(VueRouter); |
| 25 | // Vue.use(ElementUI); | 26 | // Vue.use(ElementUI); | ... | ... |
| ... | @@ -40,7 +40,7 @@ | ... | @@ -40,7 +40,7 @@ |
| 40 | </el-row> | 40 | </el-row> |
| 41 | </div> | 41 | </div> |
| 42 | <div v-else style="margin: 1rem 0;"> | 42 | <div v-else style="margin: 1rem 0;"> |
| 43 | - <swiper ref="mySolutionSwiper" class="swiper" :options="swiperOption" @slideChange="onSlideChange"> | 43 | + <swiper ref="mySolutionSwiper" class="swiper" :options="swiperOption" @slideChange="onSlideChange()"> |
| 44 | <swiper-slide v-for="(item, index) in solution_list" :key="index"> | 44 | <swiper-slide v-for="(item, index) in solution_list" :key="index"> |
| 45 | <div @click="goToSolution(item)" class="card" style="margin-bottom: 1rem;"> | 45 | <div @click="goToSolution(item)" class="card" style="margin-bottom: 1rem;"> |
| 46 | <img :src="item.src" alt="学校图片" class="card-image"> | 46 | <img :src="item.src" alt="学校图片" class="card-image"> |
| ... | @@ -177,9 +177,9 @@ export default { | ... | @@ -177,9 +177,9 @@ export default { |
| 177 | nextSolutionBtn () { | 177 | nextSolutionBtn () { |
| 178 | this.$refs.mySolutionSwiper.$swiper.slideNext(); | 178 | this.$refs.mySolutionSwiper.$swiper.slideNext(); |
| 179 | }, | 179 | }, |
| 180 | - onSlideChange (swiper) { | 180 | + onSlideChange () { |
| 181 | - this.activeIndex = swiper.activeIndex; | 181 | + this.activeIndex = this.$refs.mySolutionSwiper.$swiper.activeIndex; |
| 182 | - const isEnd = swiper.isEnd; | 182 | + const isEnd = this.$refs.mySolutionSwiper.$swiper.isEnd; |
| 183 | 183 | ||
| 184 | if (isEnd) { | 184 | if (isEnd) { |
| 185 | this.reach_end = true; | 185 | this.reach_end = true; | ... | ... |
| ... | @@ -1552,12 +1552,12 @@ delayed-stream@~1.0.0: | ... | @@ -1552,12 +1552,12 @@ delayed-stream@~1.0.0: |
| 1552 | resolved "https://mirrors.cloud.tencent.com/npm/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" | 1552 | resolved "https://mirrors.cloud.tencent.com/npm/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" |
| 1553 | integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== | 1553 | integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== |
| 1554 | 1554 | ||
| 1555 | -dom7@^3.0.0: | 1555 | +dom7@^2.1.5: |
| 1556 | - version "3.0.0" | 1556 | + version "2.1.5" |
| 1557 | - resolved "https://mirrors.cloud.tencent.com/npm/dom7/-/dom7-3.0.0.tgz#b861ce5d67a6becd7aaa3ad02942ff14b1240331" | 1557 | + resolved "https://mirrors.cloud.tencent.com/npm/dom7/-/dom7-2.1.5.tgz#a79411017800b31d8400070cdaebbfc92c1f6377" |
| 1558 | - integrity sha512-oNlcUdHsC4zb7Msx7JN3K0Nro1dzJ48knvBOnDPKJ2GV9wl1i5vydJZUSyOfrkKFDZEud/jBsTk92S/VGSAe/g== | 1558 | + integrity sha512-xnhwVgyOh3eD++/XGtH+5qBwYTgCm0aW91GFgPJ3XG+jlsRLyJivnbP0QmUBFhI+Oaz9FV0s7cxgXHezwOEBYA== |
| 1559 | dependencies: | 1559 | dependencies: |
| 1560 | - ssr-window "^3.0.0-alpha.1" | 1560 | + ssr-window "^2.0.0" |
| 1561 | 1561 | ||
| 1562 | electron-to-chromium@^1.5.4: | 1562 | electron-to-chromium@^1.5.4: |
| 1563 | version "1.5.13" | 1563 | version "1.5.13" |
| ... | @@ -2345,10 +2345,10 @@ source-map@^0.6.1, source-map@~0.6.0: | ... | @@ -2345,10 +2345,10 @@ source-map@^0.6.1, source-map@~0.6.0: |
| 2345 | resolved "https://mirrors.cloud.tencent.com/npm/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" | 2345 | resolved "https://mirrors.cloud.tencent.com/npm/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" |
| 2346 | integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== | 2346 | integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== |
| 2347 | 2347 | ||
| 2348 | -ssr-window@^3.0.0, ssr-window@^3.0.0-alpha.1: | 2348 | +ssr-window@^2.0.0: |
| 2349 | - version "3.0.0" | 2349 | + version "2.0.0" |
| 2350 | - resolved "https://mirrors.cloud.tencent.com/npm/ssr-window/-/ssr-window-3.0.0.tgz#fd5b82801638943e0cc704c4691801435af7ac37" | 2350 | + resolved "https://mirrors.cloud.tencent.com/npm/ssr-window/-/ssr-window-2.0.0.tgz#98c301aef99523317f8d69618f0010791096efc4" |
| 2351 | - integrity sha512-q+8UfWDg9Itrg0yWK7oe5p/XRCJpJF9OBtXfOPgSJl+u3Xd5KI328RUEvUqSMVM9CiQUEf1QdBzJMkYGErj9QA== | 2351 | + integrity sha512-NXzN+/HPObKAx191H3zKlYomE5WrVIkoCB5IaSdvKokxTpjBdWfr0RaP+1Z5KOfDT0ZVz+2tdtiBkhsEQ9p+0A== |
| 2352 | 2352 | ||
| 2353 | supports-color@^5.3.0: | 2353 | supports-color@^5.3.0: |
| 2354 | version "5.5.0" | 2354 | version "5.5.0" |
| ... | @@ -2369,13 +2369,13 @@ supports-preserve-symlinks-flag@^1.0.0: | ... | @@ -2369,13 +2369,13 @@ supports-preserve-symlinks-flag@^1.0.0: |
| 2369 | resolved "https://mirrors.cloud.tencent.com/npm/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" | 2369 | resolved "https://mirrors.cloud.tencent.com/npm/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" |
| 2370 | integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== | 2370 | integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== |
| 2371 | 2371 | ||
| 2372 | -swiper@6: | 2372 | +swiper@5: |
| 2373 | - version "6.8.4" | 2373 | + version "5.4.5" |
| 2374 | - resolved "https://mirrors.cloud.tencent.com/npm/swiper/-/swiper-6.8.4.tgz#938fed4144f4d7952fbf9c44e5832d133a4de794" | 2374 | + resolved "https://mirrors.cloud.tencent.com/npm/swiper/-/swiper-5.4.5.tgz#a350f654bf68426dbb651793824925512d223c0f" |
| 2375 | - integrity sha512-O+buF9Q+sMA0H7luMS8R59hCaJKlpo8PXhQ6ZYu6Rn2v9OsFd4d1jmrv14QvxtQpKAvL/ZiovEeANI/uDGet7g== | 2375 | + integrity sha512-7QjA0XpdOmiMoClfaZ2lYN6ICHcMm72LXiY+NF4fQLFidigameaofvpjEEiTQuw3xm5eksG5hzkaRsjQX57vtA== |
| 2376 | dependencies: | 2376 | dependencies: |
| 2377 | - dom7 "^3.0.0" | 2377 | + dom7 "^2.1.5" |
| 2378 | - ssr-window "^3.0.0" | 2378 | + ssr-window "^2.0.0" |
| 2379 | 2379 | ||
| 2380 | systemjs@^6.15.1: | 2380 | systemjs@^6.15.1: |
| 2381 | version "6.15.1" | 2381 | version "6.15.1" | ... | ... |
-
Please register or login to post a comment