123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <template>
- <div class="userCenterIntegralAccount">
- <div style="height:45px;line-height:42px">
- <div :class="informationsClass==1?'information2':'information1'"
- @click="getInformation(1)" class="cursor">
- {{ $i18n.locale == 'en' ? 'MyIntegral ' : '我的积分' }}
- </div>
- <div :class="informationsClass==2?'information2':'information1'"
- @click="getInformation(2)" class="cursor">
- {{ $i18n.locale == 'en' ? 'Integral Subsidiary' : '积分明细' }}
- </div>
- </div>
- <userCenterMyIntegral v-if="informationsClass==1"></userCenterMyIntegral>
- <userCenterIntegralSubsidiary v-if="informationsClass==2"></userCenterIntegralSubsidiary>
- </div>
- </template>
- <script>
- import userCenterMyIntegral from "@/views/userCenter/userCenterItem/userCenterMyIntegral";
- import userCenterIntegralSubsidiary from "@/views/userCenter/userCenterItem/userCenterIntegralSubsidiary";
- export default {
- name: "userCenterIntegralAccount",
- components: {userCenterMyIntegral, userCenterIntegralSubsidiary},
- data() {
- return {
- informationsClass: '1',
- }
- },
- mounted() {
- },
- methods: {
- getInformation(num) {
- this.informationsClass = num
- },
- }
- }
- </script>
- <style scoped lang="less">
- .userCenterIntegralAccount {
- width: 100%;
- background: #fff;
- min-height: 700px;
- }
- .information1 {
- display: inline-block;
- height: 100%;
- text-align: center;
- background: #f9f9f9;
- border-top: 3px solid #f9f9f9;
- color: #999;
- box-sizing: border-box;
- vertical-align: middle;
- font-weight: 600;
- padding: 0 20px;
- }
- .information1:hover {
- color: #FF0036;
- }
- .information2 {
- display: inline-block;
- height: 100%;
- text-align: center;
- border-top: 3px solid #2c5589;
- color: #2c5589;
- box-sizing: border-box;
- vertical-align: middle;
- font-weight: 600;
- padding: 0 20px;
- }
- </style>
|