Commit ccc79a3d authored by mengcuiguang's avatar mengcuiguang

代码优化

parent d78b06dd
<template>
<view>
<uni-popup :type="popType" ref="coinPop" :maskClick="false" :isMaskClick="false">
<view class="body" style="margin-top: 500rpx;border-radius: 10rpx;">
<view class="body" style="margin-top: 500rpx;border-radius: 10rpx;width: 100%;height: 100%;">
<scroll-view scroll-y>
<view style="display: flex;flex-direction: column;align-items: flex-end;">
<image @click="handleClose"
......@@ -115,6 +115,8 @@
handleShow() {
let that = this;
that.post({
url: '/vip/getVipProducts/point',
data: {
......@@ -126,6 +128,8 @@
}) => {
that.isFirstPayFlag = data.forFirst;
if (data.list != null && data.list.length > 0) {
that.vipList=[];
that.firstPayList=[];
if (that.isFirstPayFlag != null && that.isFirstPayFlag) {
// 符合首充
var tempFirstPayFlag = false;
......@@ -145,6 +149,7 @@
that.showPop('top')
that.handlePay()
} else {
that.showPop('bottom')
that.vipList = data.list;
that.title = '超多精彩好剧一键解锁';
for (let i = 0; i < data.list.length; i++) {
......@@ -169,7 +174,7 @@
});
},
handleClose() {
this.$refs.coinPop.close('bottom');
this.$refs.coinPop.close(this.popType);
this.$emit('close');
},
choosePack(item, index) {
......@@ -283,6 +288,7 @@
watch: {
show: {
handler: function(newVal, oldVal) {
if (newVal) {
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