123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <template>
- <div class="userCenterMyOrder">
- <div style="height:45px;line-height:42px">
- <div :class="informationsClass==1?'information2':'information1'"
- @click="getInformation(1)" class="cursor">
- {{ $t('common.myOrder') }}
- </div>
- <div :class="informationsClass==2?'information2':'information1'"
- @click="getInformation(2)" class="cursor">
- {{ $t('common.myAddress') }}
- </div>
- <!-- <div :class="informationsClass==3?'information2':'information1'"
- @click="getInformation(3)" class="cursor">
- {{ $t('common.myBalance') }}
- </div> -->
- </div>
- <userCenterMyOrderCom v-if="informationsClass==1"></userCenterMyOrderCom>
- <userCenterMyAddress v-if="informationsClass==2"></userCenterMyAddress>
- <!-- <userCenterMyBalance v-if="informationsClass==3"></userCenterMyBalance> -->
- </div>
- </template>
- <script>
- import userCenterMyOrderCom from "@/views/userCenter/userCenterItem/userCenterMyOrderCom";
- import userCenterMyAddress from "@/views/userCenter/userCenterItem/userCenterMyAddress";
- import userCenterMyBalance from "@/views/userCenter/userCenterItem/userCenterMyBalance";
- export default {
- name: "userCenterMyOrder",
- components:{userCenterMyOrderCom,userCenterMyAddress,userCenterMyBalance},
- data() {
- return {
- informationsClass: this.$route.query.key?this.$route.query.key:"1",
- }
- },
- mounted() {
- },
- methods: {
- getInformation(num) {
- this.informationsClass = num
- },
- }
- }
- </script>
- <style scoped lang="less">
- .userCenterMyOrder {
- width: 100%;
- background: #fff;
- min-height: 800px;
- }
- .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>
|