Commit 1dc64388 by zhangzhen

细节优化

parent b6deb018
......@@ -59,46 +59,46 @@
<view class="part-left">
<view v-if="userInfo.memberConfig && userInfo.memberConfig.membershipLevel ===4" class="level level-4">
<text class="text-1">LV {{userInfo.memberConfig.levelName}}</text>
<!-- <text class="text-2">还差 {{userInfo.memberConfig.nextLimitRequirements - userInfo.consumerWallet.remainingIntegral}} 积分可升级为{{userInfo.memberConfig.nextMembershipName}}</text> -->
<!-- <text class="text-2">还差 {{userInfo.memberConfig.nextLimitRequirements - userInfo.consumerMember.remainingIntegral}} 积分可升级为{{userInfo.memberConfig.nextMembershipName}}</text> -->
<view class="flex-row">
<text class="text-3">当前积分</text>
<text class="text-4">{{userInfo.consumerWallet? parseInt(userInfo.consumerWallet.membershipProgress):0}}</text>
<text class="text-4">{{userInfo.consumerMember? parseInt(userInfo.consumerMember.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 - parseInt(userInfo.consumerWallet.membershipProgress ||0)}} 积分可升级为{{userInfo.memberConfig.nextMembershipName}}</text>
<text class="text-2">还差 {{userInfo.memberConfig.nextLimitRequirements - parseInt(userInfo.consumerMember.membershipProgress ||0)}} 积分可升级为{{userInfo.memberConfig.nextMembershipName}}</text>
<view class="flex-row">
<text class="text-3">当前积分</text>
<text class="text-4">{{userInfo.consumerWallet.membershipProgress || 0}}</text>
<text class="text-4">{{userInfo.consumerMember.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 - parseInt(userInfo.consumerWallet.membershipProgress ||0)}} 积分可升级为{{userInfo.memberConfig.nextMembershipName}}</text>
<text class="text-2">还差 {{userInfo.memberConfig.nextLimitRequirements - parseInt(userInfo.consumerMember.membershipProgress ||0)}} 积分可升级为{{userInfo.memberConfig.nextMembershipName}}</text>
<view class="flex-row">
<text class="text-3">当前积分</text>
<text class="text-4">{{userInfo.consumerWallet.membershipProgress || 0}}</text>
<text class="text-4">{{userInfo.consumerMember.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 - parseInt(userInfo.consumerWallet.membershipProgress || 0)}} 积分可升级为{{userInfo.memberConfig.nextMembershipName}}</text>
<text class="text-2">还差 {{userInfo.memberConfig.nextLimitRequirements - parseInt(userInfo.consumerMember.membershipProgress || 0)}} 积分可升级为{{userInfo.memberConfig.nextMembershipName}}</text>
<view class="flex-row">
<text class="text-3">当前积分</text>
<text class="text-4">{{userInfo.consumerWallet.membershipProgress || 0}}</text>
<text class="text-4">{{userInfo.consumerMember.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 - parseInt(userInfo.consumerWallet.membershipProgress || 0)}} 积分可升级为{{userInfo.memberConfig.nextMembershipName}}</text>
<text class="text-2">还差 {{userInfo.memberConfig.nextLimitRequirements - parseInt(userInfo.consumerMember.membershipProgress || 0)}} 积分可升级为{{userInfo.memberConfig.nextMembershipName}}</text>
<view class="flex-row">
<text class="text-3">当前积分</text>
<text class="text-4">{{userInfo.consumerWallet.membershipProgress || 0}}</text>
<text class="text-4">{{userInfo.consumerMember.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