Commit 4ffcdbda authored by jyx's avatar jyx

去除动画

parent ccc79a3d
<template> <template>
<view> <view>
<uni-popup :type="popType" ref="coinPop" :maskClick="false" :isMaskClick="false"> <uni-popup :type="popType" :animation="showAnim" ref="coinPop" :maskClick="false" :isMaskClick="false">
<view class="body" style="margin-top: 500rpx;border-radius: 10rpx;width: 100%;height: 100%;"> <view class="body" style="margin-top: 500rpx;border-radius: 10rpx;width: 100%;height: 100%;">
<scroll-view scroll-y> <scroll-view scroll-y>
<view style="display: flex;flex-direction: column;align-items: flex-end;"> <view style="display: flex;flex-direction: column;align-items: flex-end;">
...@@ -100,12 +100,13 @@ ...@@ -100,12 +100,13 @@
showClone: false, showClone: false,
isFirstPayFlag: false, isFirstPayFlag: false,
popType: 'bottom', popType: 'bottom',
showAnim: true
}; };
}, },
methods: { methods: {
showPop(type) { showPop(type) {
this.popType = type this.popType = type
this.$refs.coinPop.open('bottom'); this.$refs.coinPop.open();
}, },
// 支付完成回调 // 支付完成回调
paySuccess(largeType) { paySuccess(largeType) {
...@@ -114,9 +115,7 @@ ...@@ -114,9 +115,7 @@
}, },
handleShow() { handleShow() {
let that = this; let that = this;
that.post({ that.post({
url: '/vip/getVipProducts/point', url: '/vip/getVipProducts/point',
data: { data: {
...@@ -127,9 +126,9 @@ ...@@ -127,9 +126,9 @@
data data
}) => { }) => {
that.isFirstPayFlag = data.forFirst; that.isFirstPayFlag = data.forFirst;
if (data.list != null && data.list.length > 0) { if (data.list != null && data.list.length > 0) {
that.vipList=[]; that.vipList = [];
that.firstPayList=[]; that.firstPayList = [];
if (that.isFirstPayFlag != null && that.isFirstPayFlag) { if (that.isFirstPayFlag != null && that.isFirstPayFlag) {
// 符合首充 // 符合首充
var tempFirstPayFlag = false; var tempFirstPayFlag = false;
...@@ -146,9 +145,11 @@ ...@@ -146,9 +145,11 @@
} }
that.firstCash = data.list[0].firstPayPrice; that.firstCash = data.list[0].firstPayPrice;
that.title = that.firstCash + ' 元自动解锁后续剧集'; that.title = that.firstCash + ' 元自动解锁后续剧集';
this.showAnim = false
that.showPop('top') that.showPop('top')
that.handlePay() that.handlePay()
} else { } else {
that.showPop('bottom') that.showPop('bottom')
that.vipList = data.list; that.vipList = data.list;
that.title = '超多精彩好剧一键解锁'; that.title = '超多精彩好剧一键解锁';
...@@ -232,7 +233,7 @@ ...@@ -232,7 +233,7 @@
setTimeout(() => { setTimeout(() => {
that.isFirstPayFlag = false that.isFirstPayFlag = false
that.showPop('bottom') that.showPop('bottom')
}, 500); }, 100);
} else { } else {
// message.notify(errMsg); // message.notify(errMsg);
} }
...@@ -287,8 +288,8 @@ ...@@ -287,8 +288,8 @@
}, },
watch: { watch: {
show: { show: {
handler: function(newVal, oldVal) { handler: function(newVal, oldVal) {
if (newVal) { if (newVal) {
this.handleShow(); this.handleShow();
} }
......
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