Feat:接口对接

This commit is contained in:
lifizer
2023-11-20 15:54:00 +08:00
parent 4652b6706a
commit a3ac5a2506
24 changed files with 2305 additions and 152 deletions
+17 -9
View File
@@ -32,8 +32,8 @@ export default {
this.init();
},
methods: {
changeShare(){
this.showShare=!this.showShare
changeShare() {
this.showShare = !this.showShare
},
init() {
getSeason(this.id).then(({data}) => {
@@ -44,11 +44,17 @@ export default {
getSeasonPoster(this.id).then(({data}) => this.posterUrl = data);
},
tapLeft() {
if (this.current === 0) return;
if (this.current === 0) {
this.current = this.info.swiper.length - 1;
return
}
this.current--;
},
tapRight() {
if (this.current + 1 === this.info.swiper.length) return;
if (this.current + 1 === this.info.swiper.length) {
this.current = 0;
return
}
this.current++;
},
@@ -149,7 +155,8 @@ export default {
</u-popup>
<view class="scroll-item">
<u-swiper :autoplay="false" :current="current" :list="info.swiper" height="1200rpx" radius="0" indicator
<u-swiper :autoplay="true" circular :current="current" :list="info.swiper" height="1200rpx" radius="0"
indicator
imgMode="scaleToFill"></u-swiper>
<image class="icon-direction icon-left" :src="webUrl+'/20230911105736198247.png'" mode="scaleToFill"
@click="tapLeft"/>
@@ -192,7 +199,7 @@ export default {
.share-label {
position: fixed;
top: 50%;
right: 32rpx;
right: 0;
width: 200rpx;
height: 56rpx;
background: rgba(255, 255, 255, 0.39);
@@ -208,12 +215,13 @@ export default {
}
}
.box-share{
.box-img{
.box-share {
.box-img {
width: 500rpx;
height: 889.5rpx;
}
.main-img{
.main-img {
width: 500rpx;
height: 889.5rpx;
}