Feat:接口对接
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user