| | |
| | | <script> |
| | | import banner3d from '@/components/banner3d/banner3d' |
| | | export default { |
| | | async onPullDownRefresh() { |
| | | await this.$store.dispatch('getCurrentInfo') |
| | | uni.stopPullDownRefresh() |
| | | }, |
| | | methods: { |
| | | |
| | | }, |
| | | onLoad() { |
| | | if (this.currentInfo.customerDTO && this.currentInfo.customerDTO.userGrowthRecord && this.currentInfo |
| | | async onLoad() { |
| | | await this.$store.dispatch('getCurrentInfo') |
| | | this.$nextTick(() => { |
| | | if (this.currentInfo.customerDTO && this.currentInfo.customerDTO.userGrowthRecord && this |
| | | .currentInfo |
| | | .customerDTO.userGrowthRecord.currentMemberLevel) { |
| | | // userGrowthRecord: {currentMemberLevel: "普通会员", currentGrowthValue: 6919,…} |
| | | // currentGrowthValue: 6919 |
| | |
| | | if (tmp.title === k.targetMemberLevel) { |
| | | console.log('eq', k, tmp) |
| | | tmp.point = { |
| | | current: this.currentInfo.customerDTO.userGrowthRecord.currentGrowthValue || 0, |
| | | current: this.currentInfo.customerDTO.userGrowthRecord |
| | | .currentGrowthValue || 0, |
| | | end: k.targetStartPoint || 0, |
| | | } |
| | | } |
| | |
| | | }) |
| | | |
| | | } |
| | | }) |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | margin-bottom: 10rpx; |
| | | |
| | | } |
| | | |
| | | .desc{ |
| | | text-align: center; |
| | | |