userCenterIntegralAccount.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <div class="userCenterIntegralAccount">
  3. <div style="height:45px;line-height:42px">
  4. <div :class="informationsClass==1?'information2':'information1'"
  5. @click="getInformation(1)" class="cursor">
  6. {{ $i18n.locale == 'en' ? 'MyIntegral ' : '我的积分' }}
  7. </div>
  8. <div :class="informationsClass==2?'information2':'information1'"
  9. @click="getInformation(2)" class="cursor">
  10. {{ $i18n.locale == 'en' ? 'Integral Subsidiary' : '积分明细' }}
  11. </div>
  12. </div>
  13. <userCenterMyIntegral v-if="informationsClass==1"></userCenterMyIntegral>
  14. <userCenterIntegralSubsidiary v-if="informationsClass==2"></userCenterIntegralSubsidiary>
  15. </div>
  16. </template>
  17. <script>
  18. import userCenterMyIntegral from "@/views/userCenter/userCenterItem/userCenterMyIntegral";
  19. import userCenterIntegralSubsidiary from "@/views/userCenter/userCenterItem/userCenterIntegralSubsidiary";
  20. export default {
  21. name: "userCenterIntegralAccount",
  22. components: {userCenterMyIntegral, userCenterIntegralSubsidiary},
  23. data() {
  24. return {
  25. informationsClass: '1',
  26. }
  27. },
  28. mounted() {
  29. },
  30. methods: {
  31. getInformation(num) {
  32. this.informationsClass = num
  33. },
  34. }
  35. }
  36. </script>
  37. <style scoped lang="less">
  38. .userCenterIntegralAccount {
  39. width: 100%;
  40. background: #fff;
  41. min-height: 700px;
  42. }
  43. .information1 {
  44. display: inline-block;
  45. height: 100%;
  46. text-align: center;
  47. background: #f9f9f9;
  48. border-top: 3px solid #f9f9f9;
  49. color: #999;
  50. box-sizing: border-box;
  51. vertical-align: middle;
  52. font-weight: 600;
  53. padding: 0 20px;
  54. }
  55. .information1:hover {
  56. color: #FF0036;
  57. }
  58. .information2 {
  59. display: inline-block;
  60. height: 100%;
  61. text-align: center;
  62. border-top: 3px solid #2c5589;
  63. color: #2c5589;
  64. box-sizing: border-box;
  65. vertical-align: middle;
  66. font-weight: 600;
  67. padding: 0 20px;
  68. }
  69. </style>