This commit is contained in:
2020-07-21 21:02:28 +08:00
parent 864f43e200
commit c89099f686
18 changed files with 611 additions and 118 deletions

View File

@@ -1,8 +1,8 @@
<template>
<view class="member">
<!-- <view> -->
<view>
<u-tabs-swiper ref="tabs" :list="list" :is-scroll="false" active-color="#FF780F" :current="current" font-size="32" :show-bar="false" @change="tabsChange" height="88" ></u-tabs-swiper>
<!-- </view> -->
</view>
<swiper :current="swiperCurrent" @animationfinish="animationfinish" :style="{ height: swiperHeight }">
<swiper-item class="swiper-item">
<view class="integral">
@@ -65,7 +65,7 @@ export default {
}],
richHeight: '',
swiperHeight: '',
current: 0,
current: Number,
swiperCurrent: 0,
pointslogList: [],
memberInfo: {},
@@ -76,18 +76,20 @@ export default {
CouponView
},
onLoad(option) {
this.setViewHeight();
if(option.current) this.current = option.current;
else this.current = 0;
},
watch: {
current(value) {
this.swiperCurrent = value;
if(value == 2) {
this.getPointslogList();
} else if(value == 0) {
this.getMemberPointsStat();
}
}
},
onShow() {
this.getMemberPointsStat();
this.getPointslogList();
this.setViewHeight();
},
methods: {
tabsChange(index) {
this.swiperCurrent = index;