xuxueyang
2024-09-12 1e2cca44dd7b4cc30f60435d22bc58574f2fd4f0
sub_pages/customer/self/member-center.vue
@@ -68,11 +68,18 @@
<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
@@ -109,7 +116,8 @@
                     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,
                        }
                     }
@@ -137,6 +145,7 @@
            })
         }
         })
      },
      data() {
         return {
@@ -217,6 +226,7 @@
               margin-bottom: 10rpx;
               
            }
            .desc{
               text-align: center;