From 8b206c06e7b8fe61cbb7713677e4360762d2f7ff Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Tue, 27 Jul 2021 16:43:32 +0800
Subject: [PATCH] 加入聊天室
---
static/images/index/friend-list/kiko.jpg | 0
static/images/search/searchresultImg2.jpg | 0
static/images/chatroom/photo.png | 0
static/images/friendrequest/Forbes.jpg | 0
static/images/nav/back02.png | 0
static/images/chatroom/add.png | 0
static/images/chatroom/emoji.png | 0
static/images/index/top-bar/add.png | 0
static/images/userhome/gender.png | 0
static/images/pColumn/position.png | 0
static/images/search/search.png | 0
config/filter.js | 93 +++++++
static/images/common/back.png | 0
static/images/index/friend-list/xiedi.jpg | 0
static/images/login/biyan.png | 0
static/images/pColumn/alarm.png | 0
static/images/chatroom/file.png | 0
static/images/search/searchresultImg1.jpg | 0
static/images/chatroom/vedio.png | 0
static/images/login/c8.png | 0
static/images/chatroom/sound.png | 0
static/images/login/look.png | 0
pages.json | 32 ++
static/images/search/searchresultImg4.jpg | 0
static/images/search/searchresultImg3.jpg | 0
static/images/index/friend-list/me.jpg | 0
static/images/nav/back01.png | 0
static/images/userdetails/right-arrow.png | 0
static/images/chatroom/location.png | 0
static/images/index/top-bar/search.png | 0
static/images/index/friend-list/apply.png | 0
pages/groupChat/groupChat.vue | 4
static/images/search/searchresultImg6.jpg | 0
static/images/article/menu.png | 0
static/images/article/search.png | 0
static/images/chatroom/voice.png | 0
static/images/chatroom/load.png | 0
pages/talking/talking.vue | 55 ++++
static/images/clock/position01.png | 0
static/images/userhome/more.png | 0
static/images/search/searchresultImg5.jpg | 0
components/friend/friend.vue | 21 +
static/images/userhome/famale.png | 0
static/scss/index.scss | 108 +++++++++
static/images/userhome/male.png | 0
static/images/chatroom/placeholder-b.png | 0
static/images/friendrequest/evanyou.jpg | 0
static/images/search/searchresultImg8.jpg | 0
static/images/article/microphone.png | 0
static/images/pColumn/position-bule.png | 0
debugdate/debugdate.js | 357 +++++++++++++++++++++++++++++
static/images/index/friend-list/mengzi.jpg | 0
static/images/chatroom/camera.png | 0
static/images/login/right1.png | 0
static/images/chatroom/map.jpg | 0
static/images/index/top-bar/me.jpg | 0
static/images/search/searchresultImg7.jpg | 0
static/images/nav/back.png | 0
static/images/chatroom/placeholder-r.png | 0
static/images/friendrequest/mayun.jpg | 0
60 files changed, 666 insertions(+), 4 deletions(-)
diff --git a/components/friend/friend.vue b/components/friend/friend.vue
new file mode 100644
index 0000000..6e2506a
--- /dev/null
+++ b/components/friend/friend.vue
@@ -0,0 +1,21 @@
+<template>
+ <view>
+ {{data}}
+ </view>
+</template>
+
+<script>
+ export default {
+ name:"friend",
+ props:['data'],
+ data() {
+ return {
+
+ };
+ }
+ }
+</script>
+
+<style lang="scss">
+
+</style>
diff --git a/config/filter.js b/config/filter.js
new file mode 100644
index 0000000..8ea2527
--- /dev/null
+++ b/config/filter.js
@@ -0,0 +1,93 @@
+// tip值>99显示99+
+import Vue from 'vue'
+// tip值>99显示99+
+Vue.filter('tip', function (tip) {
+ if (tip > 99) {
+ return '99+'
+ }
+ return tip
+})
+
+
+
+export default {
+ date(time){
+ let oldDate = new Date(time)
+ let newDate = new Date()
+ var dayNum = "";
+ var getTime = (newDate.getTime() - oldDate.getTime())/1000;
+
+ if(getTime < 60*5){
+ dayNum = "刚刚";
+ }else if(getTime >= 60*5 && getTime < 60*60){
+ dayNum = parseInt(getTime / 60) + "分钟前";
+ }else if(getTime >= 3600 && getTime < 3600*24){
+ dayNum = parseInt(getTime / 3600) + "小时前";
+ }else if(getTime >= 3600 * 24 && getTime < 3600 * 24 * 30){
+ dayNum = parseInt(getTime / 3600 / 24 ) + "天前";
+ }else if(getTime >= 3600 * 24 * 30 && getTime < 3600 * 24 * 30 * 12){
+ dayNum = parseInt(getTime / 3600 / 24 / 30 ) + "个月前";
+ }else if(time >= 3600 * 24 * 30 * 12){
+ dayNum = parseInt(getTime / 3600 / 24 / 30 / 12 ) + "年前";
+ }
+
+ let year = oldDate.getFullYear();
+ let month = oldDate.getMonth()+1;
+ let day = oldDate.getDate();
+ let hour = oldDate.getHours();
+ let minute = oldDate.getMinutes();
+ let second = oldDate.getSeconds();
+ if(getTime < 60 * 5) {
+ return dayNum+" "+hour+":"+minute;
+ }else {
+ return dayNum+" "+year+"-"+month+"-"+day+" "+hour+":"+minute;
+ }
+ },
+
+ Msgdate(time){
+ let oldDate = new Date(time)
+ let newDate = new Date()
+ var dayNum = "";
+ var getTime = (newDate.getTime() - oldDate.getTime())/1000;
+
+ if(getTime < 60*5){
+ dayNum = "刚刚";
+ }else if(getTime >= 60*5 && getTime < 60*60){
+ dayNum = parseInt(getTime / 60) + "分钟前";
+ }else if(getTime >= 3600 && getTime < 3600*24){
+ dayNum = parseInt(getTime / 3600) + "小时前";
+ }else if(getTime >= 3600 * 24 && getTime < 3600 * 24 * 30){
+ dayNum = parseInt(getTime / 3600 / 24 ) + "天前";
+ }else if(getTime >= 3600 * 24 * 30 && getTime < 3600 * 24 * 30 * 12){
+ dayNum = parseInt(getTime / 3600 / 24 / 30 ) + "个月前";
+ }else if(time >= 3600 * 24 * 30 * 12){
+ dayNum = parseInt(getTime / 3600 / 24 / 30 / 12 ) + "年前";
+ }
+
+ let year = oldDate.getFullYear();
+ let month = oldDate.getMonth()+1;
+ let day = oldDate.getDate();
+ let hour = oldDate.getHours();
+ let minute = oldDate.getMinutes();
+ let second = oldDate.getSeconds();
+ if(getTime < 60 * 60 * 12) {
+ return dayNum;
+ }else if(getTime < 60 * 60 * 24){
+ return "昨天" + " " + hour + ":" +minute;
+ }else{
+ return dayNum+" "+year+"-"+month+"-"+day+" "+hour+":"+minute;
+ }
+ },
+ spaceTime(old, now) {
+ old = new Date(old)
+ now = new Date(now)
+ let told = old.getTime()
+ let tnow = now.getTime()
+ if(told > (tnow + 1000 * 60 * 5)) {
+ return now
+ }else {
+ return ''
+ }
+ }
+}
+
diff --git a/debugdate/debugdate.js b/debugdate/debugdate.js
new file mode 100644
index 0000000..b22430e
--- /dev/null
+++ b/debugdate/debugdate.js
@@ -0,0 +1,357 @@
+export default {
+ friends() {
+ let friendArr = [
+ {
+ id: 1,
+ name: '王野未',
+ head: require('@/static/images/index/top-bar/me.jpg'),
+ mess: '做个好梦',
+ data: new Date(),
+ tip: 1,
+ email: 'wangyewei1@foxmail.com',
+ intro: '求知若渴,虚心若愚',
+ sex: 'male',
+ sexImg: require('@/static/images/userhome/male.png')
+ },
+ {
+ id: 2,
+ name: '孟子',
+ head: require('@/static/images/index/friend-list/mengzi.jpg'),
+ mess: '所以我也想不通我要睡啥子觉,为了他们晓得',
+ data: new Date(),
+ tip: 0,
+ email: 'mengzi@163.com',
+ intro: '我的身体还有我的灵魂都没法知足,所以我也想不通我要睡啥子觉,为了他们晓得,为了妈跟老汉儿,如果我起不来就该被驾驶骂',
+ sex: 'male',
+ sexImg: require('@/static/images/userhome/male.png')
+ },
+ {
+ id: 3,
+ name: '谢帝',
+ head: require('@/static/images/index/friend-list/xiedi.jpg'),
+ mess: '是学校的赘肉,试卷上躺了我的遗骸,我拿起笔来',
+ data: new Date(),
+ tip: 2,
+ email: 'xiedi@163.com',
+ intro: '说唱在我心中还是一如既往的根本不用去想的去讲的保持一贯风靡',
+ sex: 'male',
+ sexImg: require('@/static/images/userhome/male.png')
+ },
+ {
+ id: 4,
+ name: '水原希子',
+ head: require('@/static/images/index/friend-list/kiko.jpg'),
+ mess: '早点休息哦宝贝',
+ data: new Date(),
+ tip: 208,
+ email: 'kiko@163.com',
+ intro: '水原希子(Mizuhara Kiko),1990年10月15日出生于美国德克萨斯州达拉斯。演员、模特。曾是日本杂志《ViVi》及日版《Seventeen》的专属模特',
+ sex: 'famale',
+ sexImg: require('@/static/images/userhome/famale.png')
+ },
+ {
+ id: 5,
+ mess: '吃点串呀',
+ data: new Date(),
+ tip: 1,
+ name: '撸串研究生',
+ email: 'luchuanyanjiusheng@foxmail.com',
+ head: require('@/static/images/search/searchresultImg1.jpg'),
+ intro: '我爱吃串',
+ sex: 'male',
+ sexImg: require('@/static/images/userhome/male.png')
+ },
+ {
+ id: 6,
+ mess: '你发现我了呀',
+ data: new Date(),
+ tip: 1,
+ name: '港城宝藏女孩',
+ email: 'gangchengbaozangnvhai@foxmail.com',
+ head: require('@/static/images/search/searchresultImg2.jpg'),
+ intro: '你在看我主页吗?',
+ sex: 'famale',
+ sexImg: require('@/static/images/userhome/famale.png')
+ },
+ {
+ id: 7,
+ mess: '哦',
+ data: new Date(),
+ tip: 1,
+ name: '不解风情的老妖怪',
+ email: 'yimiwuxiaokeai@foxmail.com',
+ head: require('@/static/images/search/searchresultImg3.jpg'),
+ intro: '为什么给我分配一些情侣头像啊',
+ sex: 'male',
+ sexImg: require('@/static/images/userhome/male.png')
+ },
+ {
+ id: 8,
+ mess: '晚上好呀~',
+ data: new Date(),
+ tip: 1,
+ name: '一米五的小可爱',
+ email: 'bujiefengqinglaotaoguai@foxmail.com',
+ head: require('@/static/images/search/searchresultImg4.jpg'),
+ intro: '个子矮矮,可可爱爱',
+ sex: 'famale',
+ sexImg: require('@/static/images/userhome/famale.png')
+ },
+ {
+ id: 9,
+ mess: '没钱还花呗了呀',
+ data: new Date(),
+ tip: 5,
+ name: '马云背后的女人',
+ email: 'ziwofoudingxianquzhe@foxmail.com',
+ head: require('@/static/images/search/searchresultImg5.jpg'),
+ intro: '马云靠我养',
+ sex: 'famale',
+ sexImg: require('@/static/images/userhome/famale.png')
+ },
+ {
+ id: 10,
+ mess: '我不行',
+ data: new Date(),
+ tip: 1,
+ name: '自我否定先驱者',
+ email: 'mayunbeihoudenvren@foxmail.com',
+ head: require('@/static/images/search/searchresultImg6.jpg'),
+ intro: '国际一级退堂鼓演奏家',
+ sex: 'male',
+ sexImg: require('@/static/images/userhome/male.png')
+ },
+ {
+ id: 11,
+ mess: '乖哦~',
+ data: new Date(),
+ tip: 5,
+ name: '联合国认证小可爱',
+ email: 'guojiatejibubaohudongwu@foxmail.com',
+ head: require('@/static/images/search/searchresultImg7.jpg'),
+ sex: 'famale',
+ sexImg: require('@/static/images/userhome/famale.png')
+ },
+ {
+ id: 12,
+ mess: '我又被打了',
+ data: new Date(),
+ tip: 20,
+ name: '国家特级不保护动物',
+ email: 'lianheguorenzhengxiaokeai@foxmail.com',
+ head: require('@/static/images/search/searchresultImg8.jpg'),
+ intro: '针对我?',
+ sex: 'male',
+ sexImg: require('@/static/images/userhome/male.png')
+ }
+
+
+ ]
+ return friendArr
+ },
+ applys(){
+ let applyArr = [
+ {
+ name:'好友申请',
+ head: require('@/static/images/index/friend-list/apply.png'),
+ mess: '若人生只如初见~',
+ tip: '3'
+ }
+ ]
+ return applyArr
+ },
+ isFriend(){
+ let isfriend = [
+ {
+ userid:1,
+ friend:2
+ },
+ {
+ userid:1,
+ friend:3
+ },
+ {
+ userid:1,
+ friend:4
+ },
+ {
+ userid:1,
+ friend:5
+ },
+ {
+ userid:1,
+ friend:9
+ },
+ {
+ userid:1,
+ friend:1,
+ }
+ ]
+ return isfriend
+ },
+ firendsRequest(){
+ let friendRequests = [
+ {
+ name: '马云',
+ head: require('@/static/images/friendrequest/mayun.jpg'),
+ message: '王总您好,我是阿里巴巴马云,刚才有跟你致电。',
+ date: new Date()
+ },
+ {
+ name: '尤雨溪 Evan You',
+ head: require('@/static/images/friendrequest/evanyou.jpg'),
+ message: '我是Vue.js尤雨溪',
+ date: new Date()
+ },
+ {
+ name: '福布斯·中国',
+ head: require('@/static/images/friendrequest/Forbes.jpg'),
+ message: '王总您好,恭喜您入围2020福布斯富豪排行榜',
+ date: new Date()
+ }
+ ]
+ return friendRequests
+ },
+ // 聊天消息
+ message(){
+ let msgs = [
+ // {
+ // id: 1,
+ // imgUrl; 'me.jpg',
+ // message: 'I miss u TaoXingyu',
+ // types: 0,
+ // time: new Date(),
+ // tip: ''
+ // },
+ {
+ id: 4,
+ imgUrl: 'kiko.jpg',
+ message: '增加数据条数',
+ types: 0,
+ time: new Date(),
+ tip: 13
+ },
+ {
+ id: 4,
+ imgUrl: 'kiko.jpg',
+ message: '开始写分页加载 2020/8/24',
+ types: 0,
+ time: new Date(),
+ tip: 12
+ },
+ {
+ id: 4,
+ imgUrl: 'kiko.jpg',
+ message: {
+ name: 'Komehyo',
+ address: '〒104-0061 東京都中央区銀座5丁目6−12 1F~4F みゆきビル',
+ latitude: '35.40159',
+ longitude: '139.45488'
+ },
+ types:3,
+ time:new Date(),
+ tip: 11
+ },
+ {
+ id: 1,
+ imgUrl: 'me.jpg',
+ message: {
+ name: '春熙路',
+ address: '四川省成都市锦江区春熙路',
+ latitude: '30.65331',
+ longitude: '104.07775'
+ },
+ types:3,
+ time:new Date(),
+ tip: 10
+ },
+ {
+ id: 1,
+ message: {
+ voice: 'b',
+ time: 5
+ },
+ imgUrl: 'me.jpg',
+ types: 2,
+ time: new Date(),
+ tip: 9
+ },
+ {
+ id: 4,
+ message: {
+ voice: 'a',
+ time: 60
+ },
+ imgUrl: 'kiko.jpg',
+ types: 2,
+ time: new Date(),
+ tip: 8
+ },
+ {
+ id: 1,
+ message: '我在写BUG',
+ imgUrl: 'me.jpg',
+ types: 0,
+ time: new Date() - 1000 * 60 * 10,
+ tip: 7
+ },
+ {
+ id: 4,
+ message: '你还在写代码吗?',
+ imgUrl: 'kiko.jpg',
+ types: 0,
+ time: new Date() - 1000 * 60 * 10,
+ tip: 6
+ },
+ {
+ id: 1,
+ message: '你每天都好看',
+ imgUrl: 'me.jpg',
+ types: 0,
+ time: new Date() - 1000,
+ tip: 5
+ },
+ {
+ id: 4,
+ message: 'kiko.jpg',
+ imgUrl: 'kiko.jpg',
+ types: 1,
+ time: new Date() - 1000,
+ tip: 4
+ },
+ {
+ id: 4,
+ message: '嘻嘻,你看我今天好不好看',
+ imgUrl: 'kiko.jpg',
+ types: 0,
+ time: new Date() - 1000 * 60 * 60,
+ tip: 3
+ },
+ {
+ id: 1,
+ message: '傻瓜,端午要说安康哦',
+ imgUrl: 'me.jpg',
+ types: 0,
+ time: new Date() - 1000 * 60 * 60,
+ tip: 2
+ },
+ {
+ id: 4,
+ message: '今天是端午节哦,端午节快乐',
+ imgUrl: 'kiko.jpg',
+ types: 0,
+ time: new Date() - 1000 * 60 * 600 ,
+ tip: 1
+ },
+ {
+ id: 4,
+ message: '早哦,宝贝',
+ imgUrl: 'kiko.jpg',
+ types: 0,
+ time: new Date() - 1000 * 60 * 600,
+ tip: 0
+ },
+ ]
+ return msgs
+ }
+}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index 04119bd..10ea13f 100644
--- a/pages.json
+++ b/pages.json
@@ -10,7 +10,7 @@
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
- },{
+ }, {
"path": "pages/home/home",
"style": {
"navigationBarTitleText": "首页",
@@ -41,6 +41,34 @@
"navigationStyle": "custom"
}
}, {
+ "path": "pages/talking/talking",
+ "style": {
+ "navigationBarTitleText": "好友",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
+ }, {
+ "path": "pages/groupChat/groupChat",
+ "style": {
+ "navigationBarTitleText": "聊天室",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
+ }, {
+ "path": "pages/groupChat/chatingQZ",
+ "style": {
+ "navigationBarTitleText": "聊天室",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
+ }, {
+ "path": "pages/groupChat/chating",
+ "style": {
+ "navigationBarTitleText": "聊天室",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
+ }, {
"path": "pages/company/company",
"style": {
"navigationBarTitleText": "服务单位",
@@ -164,7 +192,7 @@
"selectedIconPath": "static/images/tabbar/home_selected.png",
"text": "首页"
}, {
- "pagePath": "pages/demo/demo",
+ "pagePath": "pages/groupChat/groupChat",
"iconPath": "static/images/tabbar/demo.png",
"selectedIconPath": "static/images/tabbar/demo_selected.png",
"text": "好友"
diff --git a/pages/groupChat/groupChat.vue b/pages/groupChat/groupChat.vue
index af78597..952a2c7 100644
--- a/pages/groupChat/groupChat.vue
+++ b/pages/groupChat/groupChat.vue
@@ -213,9 +213,9 @@
},
onLoad: function(options) {
this.userName = options.login;
- if(options.txlType == 2){
+ // if(options.txlType == 2){
this.current = 2;
- }
+ // }
}
}
diff --git a/pages/talking/talking.vue b/pages/talking/talking.vue
new file mode 100644
index 0000000..ae48bde
--- /dev/null
+++ b/pages/talking/talking.vue
@@ -0,0 +1,55 @@
+<template>
+ <view class="container">
+ <u-navbar :is-fixed="false" :border-bottom="false" :is-back="false" title="好友"
+ :background="{ background: '#0BB9C8' }" title-color="#fff">
+ <image slot="right" src="/static/images/home/message.png" class="message-icon" mode="widthFix"></image>
+ </u-navbar>
+ <friend v-for="(item,index) in friendlist" :key='index' :data="item"></friend>
+ </view>
+</template>
+
+<script>
+ export default {
+ data() {
+ return {
+ friendlist:[
+ {
+ name: 'liu',
+ havetalk: 0,
+ id: 1,
+ msg: 'xxxxxxxxxx',
+ imgsrc:''
+ },{
+ name: 'liu2',
+ havetalk: 4,
+ id: 2,
+ msg: 'xxxxxxxxxx',
+ imgsrc:''
+ },
+ ]
+ };
+ },
+ onReady() {
+
+ },
+ methods: {
+ }
+ };
+</script>
+
+<style lang="scss">
+ .swiper-box {
+ height: 100vh;
+ }
+
+ .message-icon {
+ width: 32rpx;
+ height: auto;
+ margin-right: 27rpx;
+ }
+
+ .tab {
+ margin-bottom: 10rpx;
+ }
+
+</style>
diff --git a/static/images/article/menu.png b/static/images/article/menu.png
new file mode 100644
index 0000000..be426ea
--- /dev/null
+++ b/static/images/article/menu.png
Binary files differ
diff --git a/static/images/article/microphone.png b/static/images/article/microphone.png
new file mode 100644
index 0000000..f935545
--- /dev/null
+++ b/static/images/article/microphone.png
Binary files differ
diff --git a/static/images/article/search.png b/static/images/article/search.png
new file mode 100644
index 0000000..3295537
--- /dev/null
+++ b/static/images/article/search.png
Binary files differ
diff --git a/static/images/chatroom/add.png b/static/images/chatroom/add.png
new file mode 100644
index 0000000..c23c2aa
--- /dev/null
+++ b/static/images/chatroom/add.png
Binary files differ
diff --git a/static/images/chatroom/camera.png b/static/images/chatroom/camera.png
new file mode 100644
index 0000000..e6f2e3c
--- /dev/null
+++ b/static/images/chatroom/camera.png
Binary files differ
diff --git a/static/images/chatroom/emoji.png b/static/images/chatroom/emoji.png
new file mode 100644
index 0000000..f185ca5
--- /dev/null
+++ b/static/images/chatroom/emoji.png
Binary files differ
diff --git a/static/images/chatroom/file.png b/static/images/chatroom/file.png
new file mode 100644
index 0000000..294822d
--- /dev/null
+++ b/static/images/chatroom/file.png
Binary files differ
diff --git a/static/images/chatroom/load.png b/static/images/chatroom/load.png
new file mode 100644
index 0000000..092d727
--- /dev/null
+++ b/static/images/chatroom/load.png
Binary files differ
diff --git a/static/images/chatroom/location.png b/static/images/chatroom/location.png
new file mode 100644
index 0000000..3c29740
--- /dev/null
+++ b/static/images/chatroom/location.png
Binary files differ
diff --git a/static/images/chatroom/map.jpg b/static/images/chatroom/map.jpg
new file mode 100644
index 0000000..c138282
--- /dev/null
+++ b/static/images/chatroom/map.jpg
Binary files differ
diff --git a/static/images/chatroom/photo.png b/static/images/chatroom/photo.png
new file mode 100644
index 0000000..8811ac2
--- /dev/null
+++ b/static/images/chatroom/photo.png
Binary files differ
diff --git a/static/images/chatroom/placeholder-b.png b/static/images/chatroom/placeholder-b.png
new file mode 100644
index 0000000..6c1a4d8
--- /dev/null
+++ b/static/images/chatroom/placeholder-b.png
Binary files differ
diff --git a/static/images/chatroom/placeholder-r.png b/static/images/chatroom/placeholder-r.png
new file mode 100644
index 0000000..afdde32
--- /dev/null
+++ b/static/images/chatroom/placeholder-r.png
Binary files differ
diff --git a/static/images/chatroom/sound.png b/static/images/chatroom/sound.png
new file mode 100644
index 0000000..2e2f3e9
--- /dev/null
+++ b/static/images/chatroom/sound.png
Binary files differ
diff --git a/static/images/chatroom/vedio.png b/static/images/chatroom/vedio.png
new file mode 100644
index 0000000..b8a0cf1
--- /dev/null
+++ b/static/images/chatroom/vedio.png
Binary files differ
diff --git a/static/images/chatroom/voice.png b/static/images/chatroom/voice.png
new file mode 100644
index 0000000..0e0e918
--- /dev/null
+++ b/static/images/chatroom/voice.png
Binary files differ
diff --git a/static/images/clock/position01.png b/static/images/clock/position01.png
new file mode 100644
index 0000000..1c2c5a0
--- /dev/null
+++ b/static/images/clock/position01.png
Binary files differ
diff --git a/static/images/common/back.png b/static/images/common/back.png
new file mode 100644
index 0000000..57c1793
--- /dev/null
+++ b/static/images/common/back.png
Binary files differ
diff --git a/static/images/friendrequest/Forbes.jpg b/static/images/friendrequest/Forbes.jpg
new file mode 100644
index 0000000..78c0f07
--- /dev/null
+++ b/static/images/friendrequest/Forbes.jpg
Binary files differ
diff --git a/static/images/friendrequest/evanyou.jpg b/static/images/friendrequest/evanyou.jpg
new file mode 100644
index 0000000..8b8540d
--- /dev/null
+++ b/static/images/friendrequest/evanyou.jpg
Binary files differ
diff --git a/static/images/friendrequest/mayun.jpg b/static/images/friendrequest/mayun.jpg
new file mode 100644
index 0000000..ce3082c
--- /dev/null
+++ b/static/images/friendrequest/mayun.jpg
Binary files differ
diff --git a/static/images/index/friend-list/apply.png b/static/images/index/friend-list/apply.png
new file mode 100644
index 0000000..d02cf2d
--- /dev/null
+++ b/static/images/index/friend-list/apply.png
Binary files differ
diff --git a/static/images/index/friend-list/kiko.jpg b/static/images/index/friend-list/kiko.jpg
new file mode 100644
index 0000000..3081f49
--- /dev/null
+++ b/static/images/index/friend-list/kiko.jpg
Binary files differ
diff --git a/static/images/index/friend-list/me.jpg b/static/images/index/friend-list/me.jpg
new file mode 100644
index 0000000..c9413d4
--- /dev/null
+++ b/static/images/index/friend-list/me.jpg
Binary files differ
diff --git a/static/images/index/friend-list/mengzi.jpg b/static/images/index/friend-list/mengzi.jpg
new file mode 100644
index 0000000..866385c
--- /dev/null
+++ b/static/images/index/friend-list/mengzi.jpg
Binary files differ
diff --git a/static/images/index/friend-list/xiedi.jpg b/static/images/index/friend-list/xiedi.jpg
new file mode 100644
index 0000000..361b340
--- /dev/null
+++ b/static/images/index/friend-list/xiedi.jpg
Binary files differ
diff --git a/static/images/index/top-bar/add.png b/static/images/index/top-bar/add.png
new file mode 100644
index 0000000..9479fec
--- /dev/null
+++ b/static/images/index/top-bar/add.png
Binary files differ
diff --git a/static/images/index/top-bar/me.jpg b/static/images/index/top-bar/me.jpg
new file mode 100644
index 0000000..c9413d4
--- /dev/null
+++ b/static/images/index/top-bar/me.jpg
Binary files differ
diff --git a/static/images/index/top-bar/search.png b/static/images/index/top-bar/search.png
new file mode 100644
index 0000000..35a377d
--- /dev/null
+++ b/static/images/index/top-bar/search.png
Binary files differ
diff --git a/static/images/login/biyan.png b/static/images/login/biyan.png
new file mode 100644
index 0000000..2ab7e3a
--- /dev/null
+++ b/static/images/login/biyan.png
Binary files differ
diff --git a/static/images/login/c8.png b/static/images/login/c8.png
new file mode 100644
index 0000000..17dc005
--- /dev/null
+++ b/static/images/login/c8.png
Binary files differ
diff --git a/static/images/login/look.png b/static/images/login/look.png
new file mode 100644
index 0000000..5641c39
--- /dev/null
+++ b/static/images/login/look.png
Binary files differ
diff --git a/static/images/login/right1.png b/static/images/login/right1.png
new file mode 100644
index 0000000..dbc6d36
--- /dev/null
+++ b/static/images/login/right1.png
Binary files differ
diff --git a/static/images/nav/back.png b/static/images/nav/back.png
new file mode 100644
index 0000000..a41827e
--- /dev/null
+++ b/static/images/nav/back.png
Binary files differ
diff --git a/static/images/nav/back01.png b/static/images/nav/back01.png
new file mode 100644
index 0000000..fe900af
--- /dev/null
+++ b/static/images/nav/back01.png
Binary files differ
diff --git a/static/images/nav/back02.png b/static/images/nav/back02.png
new file mode 100644
index 0000000..8687521
--- /dev/null
+++ b/static/images/nav/back02.png
Binary files differ
diff --git a/static/images/pColumn/alarm.png b/static/images/pColumn/alarm.png
new file mode 100644
index 0000000..16baa55
--- /dev/null
+++ b/static/images/pColumn/alarm.png
Binary files differ
diff --git a/static/images/pColumn/position-bule.png b/static/images/pColumn/position-bule.png
new file mode 100644
index 0000000..86ffdcb
--- /dev/null
+++ b/static/images/pColumn/position-bule.png
Binary files differ
diff --git a/static/images/pColumn/position.png b/static/images/pColumn/position.png
new file mode 100644
index 0000000..b13a078
--- /dev/null
+++ b/static/images/pColumn/position.png
Binary files differ
diff --git a/static/images/search/search.png b/static/images/search/search.png
new file mode 100644
index 0000000..3dcc60e
--- /dev/null
+++ b/static/images/search/search.png
Binary files differ
diff --git a/static/images/search/searchresultImg1.jpg b/static/images/search/searchresultImg1.jpg
new file mode 100644
index 0000000..f351583
--- /dev/null
+++ b/static/images/search/searchresultImg1.jpg
Binary files differ
diff --git a/static/images/search/searchresultImg2.jpg b/static/images/search/searchresultImg2.jpg
new file mode 100644
index 0000000..8c389cb
--- /dev/null
+++ b/static/images/search/searchresultImg2.jpg
Binary files differ
diff --git a/static/images/search/searchresultImg3.jpg b/static/images/search/searchresultImg3.jpg
new file mode 100644
index 0000000..18dd4fe
--- /dev/null
+++ b/static/images/search/searchresultImg3.jpg
Binary files differ
diff --git a/static/images/search/searchresultImg4.jpg b/static/images/search/searchresultImg4.jpg
new file mode 100644
index 0000000..6c00205
--- /dev/null
+++ b/static/images/search/searchresultImg4.jpg
Binary files differ
diff --git a/static/images/search/searchresultImg5.jpg b/static/images/search/searchresultImg5.jpg
new file mode 100644
index 0000000..2ee8db5
--- /dev/null
+++ b/static/images/search/searchresultImg5.jpg
Binary files differ
diff --git a/static/images/search/searchresultImg6.jpg b/static/images/search/searchresultImg6.jpg
new file mode 100644
index 0000000..1df7a18
--- /dev/null
+++ b/static/images/search/searchresultImg6.jpg
Binary files differ
diff --git a/static/images/search/searchresultImg7.jpg b/static/images/search/searchresultImg7.jpg
new file mode 100644
index 0000000..dd9deff
--- /dev/null
+++ b/static/images/search/searchresultImg7.jpg
Binary files differ
diff --git a/static/images/search/searchresultImg8.jpg b/static/images/search/searchresultImg8.jpg
new file mode 100644
index 0000000..69588bc
--- /dev/null
+++ b/static/images/search/searchresultImg8.jpg
Binary files differ
diff --git a/static/images/userdetails/right-arrow.png b/static/images/userdetails/right-arrow.png
new file mode 100644
index 0000000..9f13d2a
--- /dev/null
+++ b/static/images/userdetails/right-arrow.png
Binary files differ
diff --git a/static/images/userhome/famale.png b/static/images/userhome/famale.png
new file mode 100644
index 0000000..e4814d7
--- /dev/null
+++ b/static/images/userhome/famale.png
Binary files differ
diff --git a/static/images/userhome/gender.png b/static/images/userhome/gender.png
new file mode 100644
index 0000000..6d6719e
--- /dev/null
+++ b/static/images/userhome/gender.png
Binary files differ
diff --git a/static/images/userhome/male.png b/static/images/userhome/male.png
new file mode 100644
index 0000000..285cf30
--- /dev/null
+++ b/static/images/userhome/male.png
Binary files differ
diff --git a/static/images/userhome/more.png b/static/images/userhome/more.png
new file mode 100644
index 0000000..46d7f77
--- /dev/null
+++ b/static/images/userhome/more.png
Binary files differ
diff --git a/static/scss/index.scss b/static/scss/index.scss
new file mode 100644
index 0000000..cc368cc
--- /dev/null
+++ b/static/scss/index.scss
@@ -0,0 +1,108 @@
+// 页面开头公共样式
+.content {
+ padding-top: var(--status-bar-height);
+ }
+
+
+// 头部公共样式
+.top-bar {
+ height: 88rpx;
+ position: fixed;
+ left: 0;
+ top: 0;
+ width: 100%;
+ display: flex;
+ align-items: center;
+ z-index: 999;
+ padding-top: var(--status-bar-height);
+
+
+ .top-bar-left {
+ margin-left: 32rpx;
+ justify-content: left;
+ flex: 1;
+
+ image {
+ width: 68rpx;
+ height: 68rpx;
+ border-radius: 16rpx;
+ }
+
+ .back-img {
+ left: 0;
+ width: 88rpx;
+ height : 88rpx;
+
+ image {
+ width: 26rpx;
+ height: 45rpx;
+ margin-top: 22rpx;
+ }
+ }
+
+ }
+ .top-bar-center {
+
+ .logo {
+ font-weight: bold;
+ color: grey;
+ }
+ }
+
+ .top-bar-right {
+ margin-right: 32rpx;
+ flex: 1;
+ text-align: right;
+ justify-content: right;
+
+ image {
+ width: 52rpx;
+ height: 52rpx;
+ margin-left: 52rpx;
+ }
+
+ .text {
+ font-size: $uni-font-size-lg;
+ font-weight: 500;
+ color: $uni-text-color;
+ }
+
+ .more-img {
+ padding-right: $uni-spacing-col-base;
+ position: relative;
+
+ image {
+ width: 52rpx;
+ height: 12rpx;
+ top: 0;
+ right: 0;
+ position: absolute;
+ }
+ }
+ }
+ }
+
+ // 底部样式
+ .bottom-bar {
+ position: fixed;
+ bottom: 0;
+ height: 90rpx;
+ width: 100%;
+ // padding: 12rpx $uni-spacing-col-base;
+ padding-top: 10rpx;
+ padding-bottom: var(--status-bar-height);
+
+ }
+
+ // 按钮公共样式1
+ .btn1 {
+ margin: 0 $uni-spacing-col-base;
+ line-height: 80rpx;
+ height: 80rpx;
+ border-radius: $uni-border-radius-sm;
+ font-size: 32rpx;
+ color: $uni-text-color;
+ text-align: center;
+ }
+
+
\ No newline at end of file
--
Gitblit v1.9.3