order
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user