-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
1 parent
e82724c
commit a72be82
Showing
13 changed files
with
480 additions
and
15 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 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 |
---|---|---|
|
@@ -5,5 +5,8 @@ | |
// height: 64px; | ||
vertical-align: middle; | ||
// line-height: 64px; | ||
.ivu-badge-dot{ | ||
top: 16px; | ||
} | ||
} | ||
} |
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 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 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 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,51 @@ | ||
import Mock from 'mockjs' | ||
import { doCustomTimes } from '@/libs/util' | ||
const Random = Mock.Random | ||
|
||
export const getMessageInit = () => { | ||
let unreadList = [] | ||
doCustomTimes(3, () => { | ||
unreadList.push(Mock.mock({ | ||
title: Random.cword(10, 15), | ||
create_time: '@date', | ||
msg_id: Random.increment(100) | ||
})) | ||
}) | ||
let readedList = [] | ||
doCustomTimes(4, () => { | ||
readedList.push(Mock.mock({ | ||
title: Random.cword(10, 15), | ||
create_time: '@date', | ||
msg_id: Random.increment(100) | ||
})) | ||
}) | ||
let trashList = [] | ||
doCustomTimes(2, () => { | ||
trashList.push(Mock.mock({ | ||
title: Random.cword(10, 15), | ||
create_time: '@date', | ||
msg_id: Random.increment(100) | ||
})) | ||
}) | ||
return { | ||
unread: unreadList, | ||
readed: readedList, | ||
trash: trashList | ||
} | ||
} | ||
|
||
export const getContentByMsgId = () => { | ||
return `<divcourier new',="" monospace;font-weight:="" normal;font-size:="" 12px;line-height:="" 18px;white-space:="" pre;"=""><div> <span style="font-size: medium;">这是消息内容,这个内容是使用<span style="color: rgb(255, 255, 255); background-color: rgb(28, 72, 127);">富文本编辑器</span>编辑的,所以你可以看到一些<span style="text-decoration-line: underline; font-style: italic; color: rgb(194, 79, 74);">格式</span></span></div><ol><li>你可以查看Mock返回的数据格式,和api请求的接口,来确定你的后端接口的开发</li><li>使用你的真实接口后,前端页面基本不需要修改即可满足基本需求</li><li>快来试试吧</li></ol><p>${Random.csentence(100, 200)}</p></divcourier>` | ||
} | ||
|
||
export const hasRead = () => { | ||
return true | ||
} | ||
|
||
export const removeReaded = () => { | ||
return true | ||
} | ||
|
||
export const restoreTrash = () => { | ||
return true | ||
} |
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
Oops, something went wrong.