-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
807 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
const Mock = require('mockjs') | ||
const Random = Mock.Random; | ||
|
||
const chatList = [ | ||
{ | ||
id:1, | ||
type:'group', | ||
img:Random.image('200x200','#ffcc33'), | ||
title:'小黑的群组', | ||
msg:'可爱多:[动画表情]', | ||
time:'2/16' | ||
}, | ||
{ | ||
id:2, | ||
type:'group', | ||
img:Random.image('200x200','#EFF1F3'), | ||
title:'一只菜喵', | ||
msg:'', | ||
time:'1/15' | ||
}, | ||
{ | ||
id:3, | ||
type:'group', | ||
img:Random.image('200x200','#F7DE1F'), | ||
title:'孤独的狼', | ||
msg:'', | ||
time:'1/14' | ||
}, | ||
{ | ||
id:4, | ||
type:'group', | ||
img:Random.image('200x200','#D09000'), | ||
title:'桃子的聊天室', | ||
msg:'', | ||
time:'1/14' | ||
}, | ||
{ | ||
id:5, | ||
type:'group', | ||
img:Random.image('200x200','#ffcc33'), | ||
title:'小黑的群组', | ||
msg:'可爱多:[动画表情]', | ||
time:'2/16' | ||
}, | ||
{ | ||
id:6, | ||
type:'group', | ||
img:Random.image('200x200','#EFF1F3'), | ||
title:'一只菜喵', | ||
msg:'', | ||
time:'1/15' | ||
}, | ||
{ | ||
id:7, | ||
type:'group', | ||
img:Random.image('200x200','#F7DE1F'), | ||
title:'孤独的狼', | ||
msg:'', | ||
time:'1/14' | ||
}, | ||
{ | ||
id:8, | ||
type:'group', | ||
img:Random.image('200x200','#D09000'), | ||
title:'桃子的聊天室', | ||
msg:'', | ||
time:'1/14' | ||
}, | ||
{ | ||
id:9, | ||
type:'group', | ||
img:Random.image('200x200','#ffcc33'), | ||
title:'小黑的群组', | ||
msg:'可爱多:[动画表情]', | ||
time:'2/16' | ||
}, | ||
{ | ||
id:10, | ||
type:'group', | ||
img:Random.image('200x200','#EFF1F3'), | ||
title:'一只菜喵', | ||
msg:'', | ||
time:'1/15' | ||
}, | ||
{ | ||
id:11, | ||
type:'group', | ||
img:Random.image('200x200','#F7DE1F'), | ||
title:'孤独的狼', | ||
msg:'', | ||
time:'1/14' | ||
}, | ||
{ | ||
id:12, | ||
type:'group', | ||
img:Random.image('200x200','#D09000'), | ||
title:'桃子的聊天室', | ||
msg:'', | ||
time:'1/14' | ||
} | ||
] | ||
|
||
|
||
module.exports = { | ||
chatList | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const Mock = require('mockjs') | ||
const express = require('express') | ||
const router = require('./router') | ||
|
||
|
||
const app = express() | ||
|
||
app.all('*', function(req, res, next) { | ||
res.header("Access-Control-Allow-Origin", "*"); | ||
res.header("Access-Control-Allow-Headers", "X-Requested-With"); | ||
res.header("Access-Control-Allow-Methods","PUT,POST,GET,DELETE,OPTIONS"); | ||
res.header("X-Powered-By",' 3.2.1') | ||
res.header("Content-Type", "application/json;charset=utf-8"); | ||
next(); | ||
}); | ||
|
||
app.use('/',router); | ||
|
||
app.listen(3103,function(){ | ||
console.log('3103端口监听中...'); | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const express = require('express') | ||
const router = express.Router() | ||
|
||
let chatData = require('./data/chatList') | ||
|
||
router.get('/api/chatList',(req,res) => { | ||
// console.log(JSON.stringify(chatData.chatList)) | ||
res.send(JSON.stringify(chatData.chatList)); | ||
}) | ||
|
||
// router.get('/api/chatList',(req,res) => { | ||
// res.send(JSON.stringify(chatData.chatList)); | ||
// }) | ||
|
||
module.exports = router; |
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
*{ | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
li{ | ||
list-style: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@import '../../static/iconfont/iconfont.css'; | ||
|
||
|
||
.background{ | ||
position: relative; | ||
width: 100%; | ||
height: 100vh; | ||
background-color: #90B1A0; | ||
} | ||
.container{ | ||
display: flex; | ||
position: absolute; | ||
top: 5%; | ||
left: 15%; | ||
width: 70%; | ||
height: 90%; | ||
min-width: 800px; | ||
background-color: #2B9E93; | ||
border-radius: 20px; | ||
overflow: hidden; | ||
box-sizing: border-box; | ||
box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px; | ||
} |
Oops, something went wrong.