-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from MaggieMii/mhr-dev
✨ feat: 新增问题详情页面
- Loading branch information
Showing
11 changed files
with
466 additions
and
116 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { View } from '@tarojs/components'; | ||
import React from 'react'; | ||
import './index.scss'; | ||
|
||
interface ICourseInfoProps { | ||
name?: string; | ||
school?: string; | ||
teacher?: string; | ||
} | ||
|
||
const CourseInfo: React.FC<ICourseInfoProps> = ({ name, school, teacher }) => { | ||
return ( | ||
<View> | ||
<View className="theClassName">{name}</View> | ||
<View className="teacherName"> | ||
{school} {teacher} | ||
</View> | ||
</View> | ||
); | ||
}; | ||
|
||
export default CourseInfo; |
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,16 @@ | ||
.theClassName { | ||
font-size: 43rpx; | ||
font-weight: bold; | ||
color: #565552; | ||
text-align: center; | ||
margin-top: 22rpx; | ||
} | ||
|
||
.teacherName { | ||
font-size: 33rpx; | ||
font-weight: 400; | ||
color: #9f9f9c; | ||
text-align: center; | ||
margin-top: 15rpx; | ||
margin-bottom: 27rpx; | ||
} |
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 { Image, Text, View } from '@tarojs/components'; | ||
import React from 'react'; | ||
import './index.scss'; | ||
|
||
interface IPublishHeaderProps { | ||
avatarUrl: string; | ||
nickName: string; | ||
date: string; | ||
} | ||
|
||
const PublishHeader: React.FC<IPublishHeaderProps> = ({ avatarUrl, nickName, date }) => { | ||
return ( | ||
<View className="publish-header"> | ||
<Image src={avatarUrl} className="avatar" /> | ||
<View className="nameDate"> | ||
<Text className="nickname">{nickName}</Text> | ||
<View className="currentDate">{date}</View> | ||
</View> | ||
</View> | ||
); | ||
}; | ||
|
||
export default PublishHeader; |
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,26 @@ | ||
.avatar { | ||
width: 90.58rpx; | ||
height: 90.58rpx; | ||
border-radius: 100%; | ||
margin-right: 10px; | ||
border: #d2d5d8 solid 5rpx; | ||
margin-right: 27rpx; | ||
} | ||
|
||
.nickname { | ||
font-weight: bold; | ||
font-size: 22rpx; | ||
color: #565552; | ||
} | ||
|
||
.currentDate { | ||
font-weight: 400; | ||
font-size: 14rpx; | ||
color: #9f9f9c; | ||
margin-top: 20rpx; | ||
} | ||
|
||
.publish-header { | ||
display: flex; | ||
align-items: center; | ||
} |
Oops, something went wrong.