Commit d78b06dd authored by jyx's avatar jyx

优化样式

parent 193e8b24
<template> <template>
<view> <view>
<uni-popup type="bottom" ref="coinPop" :maskClick="false" :isMaskClick="false"> <uni-popup :type="popType" ref="coinPop" :maskClick="false" :isMaskClick="false">
<view class="body" style="width: 100%;height: 100%;"> <view class="body" style="margin-top: 500rpx;border-radius: 10rpx;">
<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;">
<image @click="handleClose" <image @click="handleClose"
style="width: 30rpx;height: 30rpx;display: flex;align-items: right;margin-top: 20rpx;margin-right: 20rpx;margin-bottom: 10rpx;" style="width: 30rpx;height: 30rpx;display: flex;align-items: right;margin-top: 20rpx;margin-right: 20rpx;margin-bottom: 10rpx;"
src="@/static/index/ic_quit_white.png"></image> src="@/static/index/ic_quit_white.png" />
</view> </view>
<view style="display: flex;flex-direction: column;align-items: center;margin-bottom: 20rpx;"> <view style="display: flex;flex-direction: column;align-items: center;margin-bottom: 20rpx;">
<view style="font-size: 38rpx;color: black;">{{title}}</view> <view style="font-size: 38rpx;color: black;">{{title}}</view>
...@@ -97,10 +97,16 @@ ...@@ -97,10 +97,16 @@
selectedIndex: 0, selectedIndex: 0,
title: '超多精彩好剧一键解锁', title: '超多精彩好剧一键解锁',
userBean: {}, userBean: {},
isFirstPayFlag: false showClone: false,
isFirstPayFlag: false,
popType: 'bottom',
}; };
}, },
methods: { methods: {
showPop(type) {
this.popType = type
this.$refs.coinPop.open('bottom');
},
// 支付完成回调 // 支付完成回调
paySuccess(largeType) { paySuccess(largeType) {
this.$emit('paySuccess', largeType); this.$emit('paySuccess', largeType);
...@@ -108,7 +114,6 @@ ...@@ -108,7 +114,6 @@
}, },
handleShow() { handleShow() {
let that = this; let that = this;
this.$refs.coinPop.open('bottom');
that.post({ that.post({
url: '/vip/getVipProducts/point', url: '/vip/getVipProducts/point',
...@@ -128,14 +133,16 @@ ...@@ -128,14 +133,16 @@
if (data.list[i].forFirst == 1 && !tempFirstPayFlag) { if (data.list[i].forFirst == 1 && !tempFirstPayFlag) {
// 首充 // 首充
tempFirstPayFlag = true; tempFirstPayFlag = true;
that.firstPayList.push(data.list[i]); that.firstPayList.push(data.list[i]);
that.firstCash = data.list[i].firstPayPrice; that.firstCash = data.list[i].firstPayPrice;
that.title = that.firstCash + ' 元自动解锁后续剧集'; that.title = that.firstCash + ' 元自动解锁后续剧集';
} else { } else {
that.vipList.push(data.list[i]); that.vipList.push(data.list[i]);
} }
} }
that.firstCash = data.list[0].firstPayPrice;
that.title = that.firstCash + ' 元自动解锁后续剧集';
that.showPop('top')
that.handlePay() that.handlePay()
} else { } else {
that.vipList = data.list; that.vipList = data.list;
...@@ -216,10 +223,15 @@ ...@@ -216,10 +223,15 @@
if (that.isFirstPayFlag && errCode == -2) { if (that.isFirstPayFlag && errCode == -2) {
// 符合首充 // 符合首充
that.handleClose() that.handleClose()
setTimeout(() => {
that.isFirstPayFlag = false
that.showPop('bottom')
}, 500);
} else { } else {
// message.notify(errMsg); // message.notify(errMsg);
} }
}, }
}) })
} else { } else {
message.notify('当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'); message.notify('当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。');
......
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