Commit 5ef2184f authored by jyx's avatar jyx

代码优化

parent 837991c5
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
style="width: 50rpx; height: 50rpx; margin:0 20rpx 0 auto; "> style="width: 50rpx; height: 50rpx; margin:0 20rpx 0 auto; ">
</image> </image>
</view> </view>
<view style="color: white;text-align: center;"> <view style="color: white;text-align: center;margin-top: 20rpx;">
{{'解锁 '+data.title+' 全集'}} {{'解锁 '+data.title+' 全集'}}
</view> </view>
<view @click="govip()" class="button" style="margin:30rpx auto 50rpx auto;color: white;">开通VIP</view> <view @click="govip()" class="button" style="margin:30rpx auto 50rpx auto;color: white;">开通VIP</view>
...@@ -212,6 +212,10 @@ ...@@ -212,6 +212,10 @@
console.log(this.windowHeight) console.log(this.windowHeight)
}, },
onShow() { onShow() {
// 从VIP页面返回关闭弹框
this.down()
this.downbuy()
this.getData() this.getData()
}, },
methods: { methods: {
...@@ -251,6 +255,7 @@ ...@@ -251,6 +255,7 @@
this.fenji = 1 this.fenji = 1
this.$refs.select.open('bottom'); this.$refs.select.open('bottom');
this.$nextTick(() => { this.$nextTick(() => {
this.tabIndex = parseInt(this.originIndex / 30)
// 延迟渲染,否则位置错乱 // 延迟渲染,否则位置错乱
this.showTap = true this.showTap = true
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment