Commit 18ec8033 by zhangzhen

优化

parent c090be5d
......@@ -62,43 +62,43 @@
<!-- <text class="text-2">还差 {{userInfo.memberConfig.nextLimitRequirements - userInfo.consumerWallet.remainingIntegral}} 积分可升级为{{userInfo.memberConfig.nextMembershipName}}</text> -->
<view class="flex-row">
<text class="text-3">当前积分</text>
<text class="text-4">{{userInfo.consumerWallet? userInfo.consumerWallet.remainingIntegral : 0}}</text>
<text class="text-4">{{userInfo.consumerWallet? parseInt(userInfo.consumerWallet.membershipProgress):0}}</text>
</view>
</view>
<view v-else-if="userInfo.memberConfig && userInfo.memberConfig.membershipLevel ===3" class="level level-3">
<text class="text-1">LV {{userInfo.memberConfig.levelName}}</text>
<text class="text-2">还差 {{userInfo.memberConfig.nextLimitRequirements - Number(userInfo.consumerWallet.remainingIntegral ||0)}} 积分可升级为{{userInfo.memberConfig.nextMembershipName}}</text>
<text class="text-2">还差 {{userInfo.memberConfig.nextLimitRequirements - parseInt(userInfo.consumerWallet.membershipProgress ||0)}} 积分可升级为{{userInfo.memberConfig.nextMembershipName}}</text>
<view class="flex-row">
<text class="text-3">当前积分</text>
<text class="text-4">{{userInfo.consumerWallet.remainingIntegral || 0}}</text>
<text class="text-4">{{userInfo.consumerWallet.membershipProgress || 0}}</text>
</view>
</view>
<view v-else-if="userInfo.memberConfig && userInfo.memberConfig.membershipLevel ===2" class="level level-2">
<text class="text-1">LV {{userInfo.memberConfig.levelName}}</text>
<text class="text-2">还差 {{userInfo.memberConfig.nextLimitRequirements - Number(userInfo.consumerWallet.remainingIntegral ||0)}} 积分可升级为{{userInfo.memberConfig.nextMembershipName}}</text>
<text class="text-2">还差 {{userInfo.memberConfig.nextLimitRequirements - parseInt(userInfo.consumerWallet.membershipProgress ||0)}} 积分可升级为{{userInfo.memberConfig.nextMembershipName}}</text>
<view class="flex-row">
<text class="text-3">当前积分</text>
<text class="text-4">{{userInfo.consumerWallet.remainingIntegral || 0}}</text>
<text class="text-4">{{userInfo.consumerWallet.membershipProgress || 0}}</text>
</view>
</view>
<view v-else-if="userInfo.memberConfig && userInfo.memberConfig.membershipLevel ===1" class="level level-1">
<text class="text-1">LV {{userInfo.memberConfig.levelName}}</text>
<text class="text-2">还差 {{userInfo.memberConfig.nextLimitRequirements - Number(userInfo.consumerWallet.remainingIntegral || 0)}} 积分可升级为{{userInfo.memberConfig.nextMembershipName}}</text>
<text class="text-2">还差 {{userInfo.memberConfig.nextLimitRequirements - parseInt(userInfo.consumerWallet.membershipProgress || 0)}} 积分可升级为{{userInfo.memberConfig.nextMembershipName}}</text>
<view class="flex-row">
<text class="text-3">当前积分</text>
<text class="text-4">{{userInfo.consumerWallet.remainingIntegral || 0}}</text>
<text class="text-4">{{userInfo.consumerWallet.membershipProgress || 0}}</text>
</view>
</view>
<view v-else-if="userInfo.memberConfig && userInfo.memberConfig.membershipLevel === 0" class="level level-0">
<text class="text-1">LV 0</text>
<!-- <text class="text-2">您还没有会员等级!</text> -->
<text class="text-2">还差 {{userInfo.memberConfig.nextLimitRequirements - Number(userInfo.consumerWallet.remainingIntegral || 0)}} 积分可升级为{{userInfo.memberConfig.nextMembershipName}}</text>
<text class="text-2">还差 {{userInfo.memberConfig.nextLimitRequirements - parseInt(userInfo.consumerWallet.membershipProgress || 0)}} 积分可升级为{{userInfo.memberConfig.nextMembershipName}}</text>
<view class="flex-row">
<text class="text-3">当前积分</text>
<text class="text-4">{{userInfo.consumerWallet.remainingIntegral || 0}}</text>
<text class="text-4">{{userInfo.consumerWallet.membershipProgress || 0}}</text>
</view>
</view>
<view v-else class="level level-0">
......
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