Advertisement
Guest User

Untitled

a guest
Feb 12th, 2017
662
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.04 KB | None | 0 0
  1. <template>
  2.     <div id="profile">
  3.     <div id="colLeft" class="col">
  4.                
  5.      <app-customerInfo :customer="customer"></app-customerInfo>
  6.            
  7.     </div>
  8.     <div id="colRight" class="col">
  9.    
  10.     <app-profileRight></app-profileRight>
  11.  
  12.     </div>
  13.    
  14.     </div>
  15. </template>
  16.  
  17.  
  18. <script>
  19.     import CustomerInfo from "./modules/CustomerInfo.vue";
  20.     import ProfileRight from "./modules/ProfileRight.vue";
  21.  
  22.     import * as CONFIG from '../../../config.js';
  23.  
  24.     export default {
  25.         components: {
  26.             "app-customerInfo": CustomerInfo,
  27.             "app-profileRight": ProfileRight
  28.         },
  29.         name: 'ProfilePage',
  30.         data: function() {
  31.             return {}
  32.         },
  33.         computed: {
  34.             customer: async function() {
  35.                 this.axios.get('/api/customer/get/' + this.$route.params.id)
  36.                 .then(function(response){
  37.                     return(response.data);
  38.                 });
  39.             }
  40.         }
  41.  
  42.     };
  43.  
  44. </script>
  45.  
  46.  
  47. <style lang="scss" scoped>
  48.     @import '../../../styles/vars';
  49.     .className {
  50.         font-size: 2em;
  51.     }
  52.    
  53.     .list {
  54.         border: 1px solid $greyLight;
  55.         width: 100%;
  56.         .listItem {
  57.             display: flex;
  58.             flex-direction: row;
  59.             justify-content: space-around;
  60.             padding: 0.5em 0.25em;
  61.         }
  62.     }
  63.    
  64.     #profile {
  65.         display: flex;
  66.         flex: 1;
  67.         #colRight {
  68.             flex: 1;
  69.             padding: 0px 2em;
  70.         }
  71.         #colLeft {
  72.             flex: 1;
  73.             padding: 0px 2em;
  74.             #profileContactList {
  75.                 margin: 1em;
  76.                 .icon {
  77.                     font-size: 2em;
  78.                 }
  79.                 li {
  80.                     .icon {
  81.                         margin-right: 1em;
  82.                     }
  83.                     display: flex;
  84.                     padding: 0.5em;
  85.                     align-content: center;
  86.                 }
  87.             }
  88.         }
  89.     }
  90.  
  91. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement