user.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <div class="user-point">
  3. <div class="point-rule">积分规则</div>
  4. <div class="point-wrapper">
  5. <u-image shape="circle" :lazy-load="true" width="100" height="100" :src="userInfo.face || '/static/missing-face.png'"></u-image>
  6. <div class="whether-point">
  7. <div>你的可用积分:<span class="point">{{userInfo.point || 0}}</span></div>
  8. </div>
  9. </div>
  10. </div>
  11. </template>
  12. <script>
  13. export default {
  14. data() {
  15. return {
  16. userInfo: this.$options.filters.isLogin() || {},
  17. };
  18. },
  19. mounted (){
  20. this.init()
  21. },
  22. methods: {
  23. init() {
  24. },
  25. },
  26. };
  27. </script>
  28. <style lang="scss" scoped>
  29. .user-point {
  30. padding: 0 20rpx;
  31. height: 300rpx;
  32. background: url("/static/point-bg.png") no-repeat;
  33. background-size: 100%;
  34. }
  35. .point{
  36. font-size: 40rpx;
  37. }
  38. .point-rule {
  39. color: #fff;
  40. display: flex;
  41. justify-content: flex-end;
  42. padding: 20rpx 0;
  43. }
  44. .point-wrapper {
  45. display: flex;
  46. }
  47. .whether-point {
  48. color: #fff;
  49. margin-left: 30rpx;
  50. font-size: 36rpx;
  51. font-weight: bold;
  52. }
  53. </style>