Authored by TaoHuang

add page

@@ -42,7 +42,7 @@ export default { @@ -42,7 +42,7 @@ export default {
42 .title { 42 .title {
43 display: inline-block; 43 display: inline-block;
44 color: black; 44 color: black;
45 - font-size: 15PX; 45 + font-size: 17PX;
46 line-height: 45PX; 46 line-height: 45PX;
47 } 47 }
48 48
1 <template> 1 <template>
2 <div class="desc-wrapper"> 2 <div class="desc-wrapper">
3 - <div class="title"> 3 + <div class="title-wrapper">
4 <TitleComp txt="活动说明"></TitleComp> 4 <TitleComp txt="活动说明"></TitleComp>
5 </div> 5 </div>
6 <p class="desc"> 6 <p class="desc">
@@ -33,15 +33,16 @@ export default { @@ -33,15 +33,16 @@ export default {
33 margin-bottom: 40px; 33 margin-bottom: 40px;
34 } 34 }
35 35
36 -.title { 36 +.title-wrapper {
37 text-align: left; 37 text-align: left;
38 - margin-bottom: 20px; 38 + margin-bottom: 60px;
39 } 39 }
40 40
41 .desc { 41 .desc {
42 text-align: left; 42 text-align: left;
43 - font-size: 20px;  
44 - line-height: 1.5; 43 + font-size: 24px;
  44 + color: #94b0c4;
  45 + line-height: 50px;
45 } 46 }
46 47
47 </style> 48 </style>
1 <template> 1 <template>
2 <div class="wrapper"> 2 <div class="wrapper">
3 - <div class="item title"> 3 + <div class="title-wrapper">
4 <TitleComp txt="我的收款银行"></TitleComp> 4 <TitleComp txt="我的收款银行"></TitleComp>
5 </div> 5 </div>
6 <template v-if="status === 1"> 6 <template v-if="status === 1">
7 - <div class="item">您还未绑定银行卡,将无法收款!</div>  
8 <div class="item"> 7 <div class="item">
9 - <div class="btn">添加银行卡</div> 8 + <span>您还未绑定银行卡,将无法收款</span>
  9 + <span class="link">添加银行卡</span>
10 </div> 10 </div>
11 </template> 11 </template>
12 <template v-else> 12 <template v-else>
@@ -29,7 +29,7 @@ export default { @@ -29,7 +29,7 @@ export default {
29 props: { 29 props: {
30 status: { 30 status: {
31 type: Number, 31 type: Number,
32 - default: 2 32 + default: 1
33 } 33 }
34 } 34 }
35 }; 35 };
@@ -38,12 +38,14 @@ export default { @@ -38,12 +38,14 @@ export default {
38 <style lang="scss" scoped> 38 <style lang="scss" scoped>
39 .item { 39 .item {
40 text-align: left; 40 text-align: left;
41 - font-size: 20px; 41 + font-size: 24px;
42 margin-bottom: 20px; 42 margin-bottom: 20px;
  43 + color: white;
43 } 44 }
44 45
45 -.title { 46 +.title-wrapper {
46 text-align: left; 47 text-align: left;
  48 + margin-bottom: 60px;
47 } 49 }
48 50
49 .btn { 51 .btn {
@@ -55,5 +57,6 @@ export default { @@ -55,5 +57,6 @@ export default {
55 } 57 }
56 58
57 .link { 59 .link {
  60 + color: #64ad88;
58 } 61 }
59 </style> 62 </style>
  1 +<template>
  2 + <div class="bg">
  3 +
  4 + </div>
  5 +</template>
  6 +
  7 +<script>
  8 +export default {
  9 + name: 'Banner'
  10 +}
  11 +</script>
  12 +
  13 +<style lang="scss" scoped>
  14 +.bg {
  15 + height: 620px;
  16 +}
  17 +</style>
1 <template> 1 <template>
2 <div class="wrapper"> 2 <div class="wrapper">
3 - <div class="title"> 3 + <div class="title-wrapper">
4 <TitleComp txt="我邀请的好友"></TitleComp> 4 <TitleComp txt="我邀请的好友"></TitleComp>
5 </div> 5 </div>
6 6
@@ -67,26 +67,34 @@ export default { @@ -67,26 +67,34 @@ export default {
67 <style lang="scss" scoped> 67 <style lang="scss" scoped>
68 .wrapper { 68 .wrapper {
69 text-align: center; 69 text-align: center;
  70 + color: white;
70 } 71 }
71 72
72 -.title { 73 +.title-wrapper {
73 text-align: left; 74 text-align: left;
74 - margin-bottom: 20px; 75 + margin-bottom: 60px;
75 } 76 }
76 77
77 .table { 78 .table {
78 margin-top: 20px; 79 margin-top: 20px;
79 width: 100%; 80 width: 100%;
  81 + font-size: 24px;
  82 +
  83 + th {
  84 + font-weight: bold;
  85 + color: white;
  86 + }
80 87
81 tbody { 88 tbody {
82 tr { 89 tr {
83 - height: 50px;  
84 - border-bottom: 1px solid black; 90 + height: 110px;
  91 + box-shadow: inset 0 -1px 0 0 rgba(255,255,255,0.09);
85 92
86 span { 93 span {
  94 + color: #94b0c4;
87 display: inline-block; 95 display: inline-block;
88 - height: 50px;  
89 - line-height: 50px; 96 + height: 110px;
  97 + line-height: 110px;
90 } 98 }
91 } 99 }
92 } 100 }
1 <template> 1 <template>
2 - <div class="wrapper">  
3 - <div class="item title">我的邀请码</div>  
4 - <div class="item code">{{code}}</div>  
5 - <div class="item">  
6 - <div class="btn">  
7 - 复制  
8 - </div>  
9 - </div> 2 + <div class="wrapper">
  3 + <template v-if="code">
  4 + <div class="item title mg4">我的邀请码</div>
  5 + <div class="item code mg3">{{code}}</div>
10 6
11 - <div class="item count-wrapper">  
12 - <div class="count">  
13 - <div>22</div>  
14 - <div>已经邀请好友</div>  
15 - </div>  
16 7
17 - <div class="count">  
18 - <div>325</div>  
19 - <div>好友完成订单数</div> 8 + <div class="item count-wrapper">
  9 + <div >
  10 + <div class="count">22</div>
  11 + <div class="tip">已经邀请好友</div>
  12 + </div>
  13 +
  14 + <div >
  15 + <div class="count">325</div>
  16 + <div class="tip">好友完成订单数</div>
  17 + </div>
20 </div> 18 </div>
21 - </div> 19 + </template>
  20 +
  21 + <template v-else>
  22 + <div class="item mg5">
  23 + <div class="tip2">您还未入驻</div>
  24 + <div class="tip2">请先入驻获得邀请码</div>
  25 + </div>
  26 + <div class="item mg2">
  27 + <div class="btn">
  28 + 立即入驻
  29 + </div>
  30 + </div>
  31 + </template>
22 </div> 32 </div>
23 </template> 33 </template>
24 34
@@ -32,7 +42,7 @@ export default { @@ -32,7 +42,7 @@ export default {
32 code: { 42 code: {
33 type: String, 43 type: String,
34 default() { 44 default() {
35 - return 'huangtao'; 45 + return '';
36 } 46 }
37 } 47 }
38 }, 48 },
@@ -67,11 +77,12 @@ export default { @@ -67,11 +77,12 @@ export default {
67 77
68 <style lang="scss" scoped> 78 <style lang="scss" scoped>
69 .wrapper { 79 .wrapper {
70 - width: 100%;  
71 - height: 400px;  
72 - border-radius: 150px; 80 + width: 650px;
  81 + height: 504px;
73 text-align: center; 82 text-align: center;
74 overflow: hidden; 83 overflow: hidden;
  84 + background: url("~statics/image/invite/invite_bg@3x.png");
  85 + background-size: cover;
75 } 86 }
76 87
77 .item { 88 .item {
@@ -80,27 +91,65 @@ export default { @@ -80,27 +91,65 @@ export default {
80 91
81 .title { 92 .title {
82 color: black; 93 color: black;
83 - font-size: 20px; 94 + font-size: 28px;
  95 + font-weight: bold;
84 } 96 }
85 97
86 .code { 98 .code {
87 color: black; 99 color: black;
88 - font-weight: bold;  
89 - font-size: 30px; 100 + font-weight: bolder;
  101 + font-size: 80px;
  102 + letter-spacing: 4px;
  103 +}
  104 +
  105 +.mg2 {
  106 + margin-top: 20px;
  107 +}
  108 +
  109 +.mg3 {
  110 + margin-top: 12px;
  111 +}
  112 +
  113 +.mg4 {
  114 + margin-top: 84px;
  115 +}
  116 +
  117 +.mg5 {
  118 + margin-top: 116px;
  119 + margin-bottom: 54px;
90 } 120 }
91 121
92 .btn { 122 .btn {
93 display: inline-block; 123 display: inline-block;
94 - width: 200px;  
95 - height: 50px; 124 + width: 464px;
  125 + height: 100px;
96 color: white; 126 color: white;
97 - background-color: black;  
98 - font-size: 20px;  
99 - line-height: 50px; 127 + background-color: #08304b;
  128 + font-size: 28px;
  129 + line-height: 100px;
100 } 130 }
101 131
102 .count-wrapper { 132 .count-wrapper {
103 display: flex; 133 display: flex;
104 justify-content: space-around; 134 justify-content: space-around;
105 } 135 }
  136 +
  137 +.count {
  138 + font-size: 28px;
  139 + height: 40px;
  140 + line-height: 40px;
  141 +}
  142 +
  143 +.tip {
  144 + font-size: 22px;
  145 + color: #999;
  146 + height: 32px;
  147 + line-height: 32px;
  148 +}
  149 +
  150 +.tip2 {
  151 + font-size: 40px;
  152 + font-weight: bold;
  153 + margin-bottom: 12px;
  154 +}
106 </style> 155 </style>
1 <template> 1 <template>
2 <div class="wrapper"> 2 <div class="wrapper">
3 - <div style="display: flex; justify-content: space-between; align-items: baseline;"> 3 + <div class="title-wrapper" style="display: flex; justify-content: space-between; align-items: baseline;">
4 <TitleComp txt="我的收款记录"></TitleComp> 4 <TitleComp txt="我的收款记录"></TitleComp>
5 - <span style="display: inline-block;">每月29日结算下一周期的佣金</span> 5 + <span class="font" style="display: inline-block; color: white;">每月29日结算下一周期的佣金</span>
6 </div> 6 </div>
7 7
8 <table class="table"> 8 <table class="table">
@@ -68,10 +68,15 @@ export default { @@ -68,10 +68,15 @@ export default {
68 <style lang="scss" scoped> 68 <style lang="scss" scoped>
69 .wrapper { 69 .wrapper {
70 text-align: center; 70 text-align: center;
  71 + color: white;
71 } 72 }
72 73
73 - .title {  
74 - margin-bottom: 20px; 74 + .title-wrapper {
  75 + margin-bottom: 60px;
  76 +
  77 + .font {
  78 + font-size: 24px;
  79 + }
75 } 80 }
76 81
77 .tip { 82 .tip {
@@ -82,16 +87,23 @@ export default { @@ -82,16 +87,23 @@ export default {
82 .table { 87 .table {
83 margin-top: 20px; 88 margin-top: 20px;
84 width: 100%; 89 width: 100%;
  90 + font-size: 24px;
  91 +
  92 + th {
  93 + font-weight: bold;
  94 + color: white;
  95 + }
85 96
86 tbody { 97 tbody {
87 tr { 98 tr {
88 - height: 50px;  
89 - border-bottom: 1px solid black; 99 + height: 110px;
  100 + box-shadow: inset 0 -1px 0 0 rgba(255, 255, 255, 0.09);
90 101
91 span { 102 span {
  103 + color: #94b0c4;
92 display: inline-block; 104 display: inline-block;
93 - height: 50px;  
94 - line-height: 50px; 105 + height: 110px;
  106 + line-height: 110px;
95 } 107 }
96 } 108 }
97 } 109 }
@@ -14,15 +14,16 @@ export default { @@ -14,15 +14,16 @@ export default {
14 display: inline-block; 14 display: inline-block;
15 height: 80px; 15 height: 80px;
16 line-height: 80px; 16 line-height: 80px;
17 - font-size: 30px; 17 + font-size: 40px;
18 font-weight: bold; 18 font-weight: bold;
  19 + color: white;
19 20
20 &:before { 21 &:before {
21 content: "\00a0"; 22 content: "\00a0";
22 position: absolute; 23 position: absolute;
23 display: inline-block; 24 display: inline-block;
24 - width: 20PX;  
25 - border-bottom: 4px solid black; 25 + width: 32px;
  26 + border-bottom: 6px solid #64ad88;
26 } 27 }
27 } 28 }
28 </style> 29 </style>
1 <template> 1 <template>
2 <div class="body-wrapper"> 2 <div class="body-wrapper">
  3 + <BannerPage></BannerPage>
3 <InviteCode class="mg"></InviteCode> 4 <InviteCode class="mg"></InviteCode>
4 <FriendList class="mg"></FriendList> 5 <FriendList class="mg"></FriendList>
5 <BankStatus class="mg"></BankStatus> 6 <BankStatus class="mg"></BankStatus>
6 <RecordList class="mg"></RecordList> 7 <RecordList class="mg"></RecordList>
7 - <DescPage></DescPage> 8 + <DescPage class="mg"></DescPage>
8 </div> 9 </div>
9 </template> 10 </template>
10 11
@@ -14,6 +15,7 @@ import FriendList from './components/friend-list'; @@ -14,6 +15,7 @@ import FriendList from './components/friend-list';
14 import BankStatus from './components/bankcard-status'; 15 import BankStatus from './components/bankcard-status';
15 import RecordList from './components/record-list'; 16 import RecordList from './components/record-list';
16 import DescPage from '../components/desc'; 17 import DescPage from '../components/desc';
  18 +import BannerPage from './components/banner';
17 19
18 export default { 20 export default {
19 name: 'detailPage', 21 name: 'detailPage',
@@ -22,7 +24,8 @@ export default { @@ -22,7 +24,8 @@ export default {
22 FriendList, 24 FriendList,
23 BankStatus, 25 BankStatus,
24 RecordList, 26 RecordList,
25 - DescPage 27 + DescPage,
  28 + BannerPage
26 } 29 }
27 }; 30 };
28 </script> 31 </script>
@@ -30,10 +33,18 @@ export default { @@ -30,10 +33,18 @@ export default {
30 <style lang="scss" scoped> 33 <style lang="scss" scoped>
31 .body-wrapper { 34 .body-wrapper {
32 padding: 0 20PX; 35 padding: 0 20PX;
33 - margin-top: 40px; 36 + background-color: #08304b;
34 } 37 }
35 38
36 .mg { 39 .mg {
37 - margin-bottom: 40px; 40 + margin: 0 auto;
  41 + margin-bottom: 110px;
  42 + text-align: center;
  43 +
  44 + &:last-child {
  45 + margin-bottom: 0;
  46 + padding-bottom: 120px;
  47 + }
38 } 48 }
  49 +
39 </style> 50 </style>
1 <template> 1 <template>
2 <div class="body-wrapper"> 2 <div class="body-wrapper">
3 - <div class="item">  
4 - <div class="tip">您还未入驻,请先入驻获得邀请码</div>  
5 - </div>  
6 - <div class="item">  
7 - <div class="btn" @click="onClick">立即入驻</div>  
8 - </div>  
9 -  
10 - <div class="item">  
11 - <DescPage></DescPage>  
12 - </div> 3 + <BannerPage class="mg"></BannerPage>
  4 + <InviteCode class="mg"></InviteCode>
  5 + <DescPage class="mg"></DescPage>
13 </div> 6 </div>
14 </template> 7 </template>
15 8
16 <script> 9 <script>
  10 +import BannerPage from '../detail/components/banner';
17 import DescPage from '../components/desc'; 11 import DescPage from '../components/desc';
  12 +import InviteCode from '../detail/components/invite-code';
18 13
19 export default { 14 export default {
20 name: 'welcomePage', 15 name: 'welcomePage',
21 components: { 16 components: {
22 - DescPage 17 + BannerPage,
  18 + DescPage,
  19 + InviteCode
23 }, 20 },
24 methods: { 21 methods: {
25 onClick() { 22 onClick() {
@@ -33,11 +30,7 @@ export default { @@ -33,11 +30,7 @@ export default {
33 30
34 .body-wrapper { 31 .body-wrapper {
35 padding: 0 20PX; 32 padding: 0 20PX;
36 -}  
37 -  
38 -.item {  
39 - text-align: center;  
40 - margin-bottom: 40px; 33 + background-color: #08304b;
41 } 34 }
42 35
43 .tip { 36 .tip {
@@ -55,4 +48,15 @@ export default { @@ -55,4 +48,15 @@ export default {
55 line-height: 60px; 48 line-height: 60px;
56 } 49 }
57 50
  51 +.mg {
  52 + margin: 0 auto;
  53 + margin-bottom: 110px;
  54 + text-align: center;
  55 +
  56 + &:last-child {
  57 + margin-bottom: 0;
  58 + padding-bottom: 120px;
  59 + }
  60 +}
  61 +
58 </style> 62 </style>