Skip to content

Commit

Permalink
🐞 fix:修复comment文件
Browse files Browse the repository at this point in the history
  • Loading branch information
eleliauk committed Aug 24, 2024
1 parent 756b156 commit 59a7c99
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions project.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"appid": "wx6220588048f6e417",
"setting": {
"urlCheck": true,
"es6": false,
"enhance": false,
"es6": true,
"enhance": true,
"compileHotReLoad": false,
"postcss": true,
"preloadBackgroundData": false,
Expand Down
10 changes: 5 additions & 5 deletions src/common/components/comment/comment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function Comment(props: CommentInfo & { type?: string }) {
return (
<View className="bigcomment" onClick={handleClick}>
<View className="commentplus">
{isCoursePending ? (
{!courseDetail[course_id || 0] ? (
<>
<View className="classTitle">pending</View>
</>
Expand All @@ -57,20 +57,20 @@ export default function Comment(props: CommentInfo & { type?: string }) {
</>
)}
<View className="comment">
{isPublisherInfoPending || !publisher_id ? (
{!publisher[publisher_id || 0] ? (
<>
<View>pending</View>
</>
) : (
<>
<View
className="tx"
style={`background-image: url(${publisher[publisher_id].avatar});`}
style={`background-image: url(${publisher[publisher_id || 0]?.avatar});`}
></View>
<View className="userName">{publisher[publisher_id].nickname}</View>
<View className="userName">{publisher[publisher_id || 0]?.nickname}</View>
<View className="time">{ctimeDate.toLocaleString()}</View>
<View className="stars">
<ShowStar score={props.star_rating}></ShowStar>
<ShowStar score={props?.star_rating}></ShowStar>
</View>
<Image
// style={`display:${props.isHot ? 'block' : 'none'}`}
Expand Down

0 comments on commit 59a7c99

Please sign in to comment.