Skip to content

Commit 114b831

Browse files
committed
profile
1 parent cf3c791 commit 114b831

15 files changed

+822
-56
lines changed

build/webpack.base.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var projectRoot = path.resolve(__dirname, '../')
55

66
module.exports = {
77
entry: {
8-
app: ['./src/main.js','./src/auth/index.js']
8+
app: ['native-promise-only','./src/main.js','./src/auth/index.js']
99
},
1010
output: {
1111
path: config.build.assetsRoot,

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
"dependencies": {
1414
"babel-runtime": "^6.0.0",
1515
"bootstrap": "^3.3.6",
16+
"native-promise-only": "^0.8.1",
1617
"validator": "^5.2.0",
1718
"vue": "^1.0.20",
19+
"vue-file-upload": "0.0.4",
1820
"vue-resource": "^0.7.0",
1921
"vue-router": "^0.7.13"
2022
},

src/App.vue

Lines changed: 101 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,45 @@ body {
8282
font-weight:100;
8383
}
8484
85+
.nav-tabs > li.disabled > a:hover {
86+
border-color: transparent;
87+
cursor:auto
88+
}
89+
.nav-tabs > li > a:hover {
90+
border-color: #d9d9d9 #d9d9d9 transparent;
91+
cursor:pointer;
92+
}
93+
.nav-tabs > li.active > a,
94+
.nav-tabs > li.active > a:hover,
95+
.nav-tabs > li.active > a:focus {
96+
color: white;
97+
border: 1px solid #e9573e;
98+
background-color: #e9573e;
99+
}
100+
.nav-tabs.nav-justified > .active > a,
101+
.nav-tabs.nav-justified > .active > a:hover,
102+
.nav-tabs.nav-justified > .active > a:focus {
103+
border: 1px solid #e9573e;
104+
cursor:auto;
105+
}
106+
107+
.nav-tabs.nav-justified > li > a {
108+
border-bottom: 1px solid #e9573e!important;
109+
font-size: 26px;
110+
line-height: 60px;
111+
font-weight: 300;
112+
}
113+
114+
.nav > li > a:hover,
115+
.nav > li > a:focus {
116+
background-color: #d9d9d9;
117+
}
118+
119+
.nav-justified {
120+
height:110px;
121+
}
122+
123+
85124
table, .table{
86125
font-size:18px;
87126
background-color:white;
@@ -108,10 +147,53 @@ table, .table *{
108147
border-color: transparent;
109148
}
110149
150+
.pagination > .disabled > span,
151+
.pagination > .disabled > span:hover,
152+
.pagination > .disabled > span:focus,
153+
.pagination > .disabled > a,
154+
.pagination > .disabled > a:hover,
155+
.pagination > .disabled > a:focus{
156+
background-color:white;
157+
color:#d9d9d9;
158+
}
159+
160+
.pagination-bar * {
161+
cursor: auto!important;
162+
}
163+
.pagination-bar>li>span:hover{
164+
background-color: white
165+
}
166+
.pagination-bar input{
167+
width:32px;
168+
}
169+
111170
.table-hover > tbody > tr:hover {
112171
background-color: #d9d9d9;
113172
}
114173
174+
.avatar{
175+
width: 220px;
176+
height:220px;
177+
padding:0;
178+
margin:0;
179+
background-color: #d9d9d9;
180+
text-align: center;
181+
}
182+
.avatar img{
183+
width:220px;
184+
height: 220px;
185+
}
186+
span.fileupload-button{
187+
width: 220px!important;
188+
line-height: 48px!important;
189+
background-color: #f9682e!important;
190+
border-color:#f9682e!important;
191+
font-size: 20px!important;
192+
font-weight: 200!important;
193+
margin-top:12px!important;
194+
z-index:1!important
195+
}
196+
115197
a.without-underline:hover {
116198
text-decoration: none!important;
117199
}
@@ -335,18 +417,27 @@ ul.dropdown-menu > li > a:focus {
335417
z-index:9998;
336418
}
337419
338-
</style>
339-
own-menu > li > a:hover,
340-
ul.dropdown-menu > li > a:focus {
341-
text-decoration: none;
342-
color: #f3f4f6;
343-
background-color: #818384;
420+
.btn-lg-group{
421+
margin-top:10px
422+
}
423+
.btn-lg-group .btn-lg
424+
{
425+
width:190px
344426
}
345427
346-
.isFullscreen {
347-
position:fixed;
348-
height:100%;
349-
z-index:9998;
428+
.profile-wraper{
429+
width:750px;
430+
margin:auto
431+
}
432+
433+
div.inputGender button
434+
{
435+
height: 50px;
436+
width: 100px;
437+
}
438+
div.inputGender *{
439+
font-size: 20px;
440+
font-weight: 200;
350441
}
351442
352443
</style>

src/components/Missions.vue

Lines changed: 16 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
<th>开始时间</th>
3737
<th>结束时间</th>
3838
<th>推广方式</th>
39-
<th>单价</th>
40-
<th>总数量</th>
41-
<th>剩余数量</th>
42-
<th>总金额</th>
43-
<th>操作</th>
39+
<th class="text-right">单价</th>
40+
<th class="text-right">总数量</th>
41+
<th class="text-right">剩余数量</th>
42+
<th class="text-right">总金额</th>
43+
<th class="text-center">操作</th>
4444
</tr>
4545
</thead>
4646
<tbody>
@@ -50,44 +50,44 @@
5050
<td>{{mission.beginTime}}</td>
5151
<td>{{mission.finishTime}}</td>
5252
<td>{{mission.strategy}}</td>
53-
<td>{{mission.unitPrice}}</td>
54-
<td>{{mission.amount}}</td>
55-
<td>{{mission.remain}}</td>
56-
<td>{{mission.totalPrice}}</td>
57-
<td>
53+
<td class="text-right">{{mission.unitPrice}}</td>
54+
<td class="text-right">{{mission.amount}}</td>
55+
<td class="text-right">{{mission.remain}}</td>
56+
<td class="text-right">{{mission.totalPrice}}</td>
57+
<td class="text-right">
5858
<button class="btn btn-primary" @click="routerGo({name:'missions-edit',params:{missionId:mission.id}})" >编辑</button>
5959
<button class="btn btn-danger" @click="removeMissionConfirm(mission.id)">删除</button>
6060
</td>
6161
</tr>
6262
</tbody>
6363
</table>
6464

65-
<ul class="pagination">
66-
<li v-if="pageCurrent != 1">
65+
<ul class="pagination" v-if="pageTotal>1" >
66+
<li :class="(pageCurrent == 1)?'disabled':''">
6767
<a @click="page(1)" aria-label="Previous">
6868
<span aria-hidden="true">首页</span>
6969
</a>
7070
</li>
71-
<li v-if="pageCurrent != 1">
71+
<li :class="(pageCurrent == 1)?'disabled':''">
7272
<a @click="prevPage()" aria-label="Previous">
7373
<span aria-hidden="true">上一页</span>
7474
</a>
7575
</li>
7676
<li v-for="thePage in pageTotal" :class="((pageCurrent==thePage+1)?'active':'')">
7777
<a @click="page($index+1)">{{thePage+1}}</a>
7878
</li>
79-
<li v-if="pageCurrent != pageTotal">
79+
<li :class="(pageCurrent == pageTotal)?'disabled':''">
8080
<a @click="nextPage()" aria-label="Next" >
8181
<span aria-hidden="true">下一页</span>
8282
</a>
8383
</li>
84-
<li v-if="pageCurrent != pageTotal">
84+
<li :class="(pageCurrent == pageTotal)?'disabled':''">
8585
<a @click="page(pageTotal)" aria-label="Next" >
8686
<span aria-hidden="true">尾页</span>
8787
</a>
8888
</li>
8989
</ul>
90-
<ul class="pagination pagination-bar pull-right">
90+
<ul class="pagination pagination-bar pull-right" v-if="pageTotal>1">
9191
<li>
9292
<span>
9393
当前第{{pageCurrent}}页/共{{pageTotal}}页&nbsp;转到
@@ -197,17 +197,3 @@ export default {
197197

198198
<!-- Add "scoped" attribute to limit CSS to this component only -->
199199
-->
200-
201-
<style scoped>
202-
.pagination-bar * {
203-
cursor: auto!important;
204-
}
205-
.pagination-bar>li>span:hover{
206-
background-color: white
207-
}
208-
.pagination-bar input{
209-
width:32px;
210-
}
211-
212-
213-
</style>

0 commit comments

Comments
 (0)