Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Apr 27, 2017
1 parent 5df6356 commit 7ae9913
Show file tree
Hide file tree
Showing 13 changed files with 291 additions and 2 deletions.
31 changes: 31 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,37 @@
</div>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;width:0;height:0;visibility:hidden">
<defs>
<symbol viewBox="0 0 29.51 41.83" id="girl">
<path fill="#E37051" d="M9.024,28.252c0,0-8.101,3.859-9.023,13.578h13.293L9.024,28.252z"/>
<path fill="#E37051" d="M27.773,32.215V13.549C27.48-0.084,14.072,0,14.072,0C0.017,1.544,1.332,14.545,1.332,14.545l0.011,18.219
c4.22-7.736,12.719-7.535,12.719-7.535C23.566,25.084,27.773,32.215,27.773,32.215z M3.754,13.53l0.109-0.032L3.754,13.53z
M3.63,13.566C3.626,13.567,3.626,13.567,3.63,13.566z M3.631,13.566l0.049-0.014L3.631,13.566z M3.683,13.551l0.033-0.009
L3.683,13.551z M14.466,23.646l0.06,0.008L14.466,23.646z M14.69,23.676l0.091,0.012L14.69,23.676z M14.804,23.689l0.419,0.053
L14.804,23.689z M15.506,23.777l0.053,0.006L15.506,23.777z M15.643,23.793l0.074,0.01L15.643,23.793z M15.918,23.828l0.289,0.035
L15.918,23.828z M16.254,23.869l0.238,0.031L16.254,23.869z M16.613,23.914l0.248,0.031L16.613,23.914z M16.988,23.961L17.303,24
L16.988,23.961z M17.406,24.014l0.033,0.004L17.406,24.014z M17.621,24.039l0.111,0.016L17.621,24.039z M18.08,24.098l0.113,0.014
L18.08,24.098z M18.563,24.156l0.025,0.004L18.563,24.156z M18.746,24.18h0.002H18.746z M18.779,24.184l0.023,0.004L18.779,24.184z
M18.824,24.189l0.018,0.002C18.838,24.191,18.832,24.191,18.824,24.189z M14.214,23.615l0.007,0.002L14.214,23.615
C3.803,22.324,4.372,13.352,4.372,13.352c1.686-0.482,5.079-3.896,5.079-3.896L9.447,9.452l0.004,0.003
c6.052,4.673,15.348,3.846,15.348,3.846v0.116l0.002-0.024l-0.002,0.024C23.713,24.314,14.214,23.615,14.214,23.615z M14.379,23.637
l-0.061-0.008L14.379,23.637z M14.279,23.625l-0.031-0.004L14.279,23.625z M14.234,23.619l-0.01-0.002L14.234,23.619z M3.889,13.491
l0.112-0.032L3.889,13.491z M4.066,13.44l0.115-0.033L4.066,13.44z M4.188,13.405l0.023-0.007L4.188,13.405z M4.261,13.384
l0.014-0.004L4.261,13.384z M4.301,13.372l0.036-0.01L4.301,13.372z M4.352,13.357l0.018-0.005L4.352,13.357z M6.766,7.388
l0.009,0.007L6.766,7.388z M6.78,7.398l0.046,0.036L6.78,7.398z M6.848,7.451C6.849,7.452,6.85,7.453,6.851,7.454L6.848,7.451z
M6.881,7.477L6.89,7.483C6.887,7.481,6.884,7.479,6.881,7.477z M6.912,7.5l0.014,0.01C6.921,7.507,6.916,7.504,6.912,7.5z
M7.324,7.818l0.123,0.094L7.324,7.818z M7.602,8.031l0.097,0.075L7.602,8.031z M7.775,8.165L7.87,8.238L7.775,8.165z M7.954,8.303
L8.015,8.35L7.954,8.303z M8.216,8.505l0.031,0.023L8.216,8.505z M8.413,8.656l0.014,0.011L8.413,8.656z M8.543,8.757l0.029,0.022
L8.543,8.757z M8.706,8.882l0.201,0.154L8.706,8.882z M8.942,9.063l0.179,0.138L8.942,9.063z M9.276,9.321l0.009,0.007L9.276,9.321z
M9.375,9.397L9.392,9.41L9.375,9.397z M9.417,9.429l0.012,0.009L9.417,9.429z M24.813,13.272l0.008-0.063
C24.818,13.23,24.814,13.251,24.813,13.272z M24.826,13.142l0.041-0.42L24.826,13.142z M24.941,11.994l0.02-0.208L24.941,11.994z
M24.971,11.697l0.012-0.127L24.971,11.697z M24.998,11.409l0.018-0.161L24.998,11.409z M25.027,11.124l0.014-0.146L25.027,11.124z
M25.043,10.959l0.033-0.332L25.043,10.959z M25.092,10.481l0.025-0.258L25.092,10.481z M25.148,9.904l0.002-0.017L25.148,9.904z
M25.164,9.753l0.002-0.03L25.164,9.753z M25.178,9.605l0.006-0.059L25.178,9.605z M25.219,9.207l0.008-0.079L25.219,9.207z
M25.229,9.105l0.002-0.017L25.229,9.105z M25.236,9.019l0.01-0.087L25.236,9.019z M25.25,8.887l0.006-0.057L25.25,8.887z
M25.262,8.772v-0.01V8.772z M25.273,8.656l0.002-0.034L25.273,8.656z M25.279,8.596V8.588V8.596z M25.279,8.584l0.002-0.01
C25.281,8.578,25.279,8.581,25.279,8.584z"/>
<path fill="#E37051" d="M20.48,28.252l-4.91,13.578H29.51C29.51,41.83,28.432,31.852,20.48,28.252z"/>
</symbol>
<symbol viewBox="0 0 1024 1024" id="close">
<path d="M959.292416 127.2576 897.709056 65.163264 509.898752 450.018304 125.151232 65.29024 63.310848 127.1296 448.509952 512.347136 63.310848 897.565696 125.151232 959.404032 509.898752 574.675968 897.709056 959.531008 959.292416 897.437696 571.247616 512.347136Z" p-id="2397"></path>
</symbol>
Expand Down
12 changes: 11 additions & 1 deletion src/frames/addressbook/addressbook.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<li>
<h1>A</h1>
<ul>
<router-link to="" tag="li">
<router-link to="/addressbook/details" tag="li">
<div class="personlist_img">
<img src="../../images/chen.jpg" alt="">
</div>
Expand All @@ -77,6 +77,9 @@
</section>

<foot-guide></foot-guide>
<transition name="router-show">
<router-view></router-view>
</transition>
</section>
</template>

Expand Down Expand Up @@ -109,6 +112,13 @@
</script>
<style lang="scss" scoped>
@import "../../style/public";
.router-show-enter-active,.router-show-leave-active{
transition: all .4s;
}
.router-show-enter,.router-show-leave-active{
transform:translateX(100%)
}
.contacts{
width:100%;
background:#fff;
Expand Down
216 changes: 216 additions & 0 deletions src/frames/addressbook/details/details.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
<template>
<section class="child_page">
<head-top crossover="详细资料"></head-top>
<div class="details">
<div class="details_li">
<div class="details_left">
<img src="../../../images/chen.jpg" alt="">
</div>
<div class="details_right">
<div class="details_right_top">
<span>百里辰</span>
<div class="sexsvg">
<svg>
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#girl"></use>
</svg>
</div>
</div>
<div class="details_right_obt">
微信号:bailichen
</div>
</div>
</div>
<div class="details_li">
<router-link to='' class="setnote">
设置备注和标签
</router-link>
</div>
<div class="details_person">
<div class="details_person_top">
<div class="area_details_left">
地区
</div>
<div class="area_details_right">
埃及
</div>
</div>
<div class="person_photo">
<router-link to='' class="details_person_a">
<div class="person_photo_left">
个人相册
</div>
<div class="person_photo_right clear">
<img src="../../../images/chen.jpg" alt="">
<img src="../../../images/cangdu.jpg" alt="">
<img src="../../../images/hu.jpg" alt="">
</div>
</router-link>
</div>
<div class="details_person_more">
<router-link to='' class="clickmore">
更多
</router-link>
</div>
</div>
<div class="sendmessage">
<router-link to='/dialogue/conversation' class="send">
发消息
</router-link>
</div>
</div>
<transition name="router-show">
<router-view></router-view>
</transition>
</section>
</template>

<script>
import headTop from 'src/components/header/head'
export default{
data(){
return{
}
},
created(){
},
mounted(){
},
components:{
headTop,
},
computed:{
},
methods:{
}
}
</script>
<style lang="scss" scoped>
@import "src/style/public";
.router-show-enter-active,.router-show-leave-active{
transition: all .4s;
}
.router-show-enter,.router-show-leave-active{
transform:translateX(100%)
}
.child_page{
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 203;
background-color: #ebebeb;
}
.details{
width:100%;
padding-top:2.9226633rem;
.details_li{
padding:0.512rem 0.5973333333rem;
background:#fff;
margin-bottom:0.8533333333rem;
@include justify(flex-start);
.details_left{
margin-right:1.024rem;
img{
display: block;
@include widthHeight(2.7306666667rem,2.7306666667rem);
}
}
.details_right{
.details_right_top{
@include justify(flex-start);
margin-top:0.256rem;
margin-bottom:0.4266666667rem;
span{
display:block;
@include sizeColor(0.64rem,#000);
margin-right:0.4266666667rem;
}
.sexsvg{
@include widthHeight(.64rem,.90rem);
@include align(center);
svg{
@include widthHeight(100%,.64rem);
}
}
}
.details_right_obt{
@include sizeColor(0.512rem,#666);
}
}
.setnote{
display:block;
width:100%;
@include sizeColor(0.64rem,#000);
}
}
.details_person{
padding:0.512rem 0.5973333333rem;
background:#fff;
.details_person_top{
@include justify(flex-start);
border-bottom:1px solid #e2e2e2;
padding-bottom:0.6826666667rem;
.area_details_left{
@include sizeColor(0.64rem,#000);
}
.area_details_right{
@include sizeColor(0.512rem,#666);
margin-left:2.432rem;
@include align(center);
}
}
.details_person_more{
.clickmore{
display:block;
width:100%;
padding-top:0.7253333333rem;
@include sizeColor(0.64rem,#000);
}
}
.person_photo{
border-bottom:1px solid #e2e2e2;
.details_person_a{
display:block;
@include justify(flex-start);
.person_photo_left{
@include sizeColor(0.64rem,#000);
@include align(center);
}
.person_photo_right{
margin-left:1.0666666667rem;
padding:0.3413333333rem 0;
img{
float:left;
@include widthHeight(2.56rem,2.56rem);
margin-right:16px;
}
}
}
}
}
.sendmessage{
width:14.1653333333rem;
margin:0 auto;
margin-top:0.8533333333rem;
.send{
display:block;
border-radius:5px;
text-align:center;
width:14.1226666667rem;
border:1px solid #3e8d3e;
background:#1aad16;
@include sizeColor(0.7253333333rem,#fff);
letter-spacing:4px;
line-height:2.0053333333rem;
}
}
}
</style>
Binary file added src/images/a.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/b1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/c.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/d.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/e.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/f.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/g.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/h.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion src/router/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import App from '../APP'
const dialogue = r => require.ensure([], () => r(require('../frames/dialogue/dialogue')), 'dialogue')
const conversation = r => require.ensure([], () => r(require('../frames/dialogue/conversation/conversation')), 'conversation')
const addressbook = r => require.ensure([], () => r(require('../frames/addressbook/addressbook')), 'addressbook')
const details = r => require.ensure([], () => r(require('../frames/addressbook/details/details')), 'details')
const find = r => require.ensure([], () => r(require('../frames/find/find')), 'find')
const me = r => require.ensure([], () => r(require('../frames/me/me')), 'me')
const computer = r => require.ensure([], () => r(require('../frames/computer/computer')), 'computer')
Expand Down Expand Up @@ -30,7 +31,17 @@ export default[{
component: conversation,}, //对话详情页
],
},
{path: '/addressbook', component: addressbook}, //通讯录
{
path: '/addressbook',
component: addressbook,
children: [
{
path: '/addressbook/details',
component: details,
}
]

}, //通讯录
{path: '/find', component: find}, //发现
{path: '/search', component: search}, //发现
{path: '/me', component: me,
Expand Down
21 changes: 21 additions & 0 deletions src/service/data/contacts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* wxid-微信号
*
*
*
*
*
*
*
*/


export const contacts = {
A:[
{
"wxid":"As小白",
"headurl":"../../../images/a.jpg",

}
]
}

0 comments on commit 7ae9913

Please sign in to comment.