Skip to content

Commit

Permalink
Merge pull request #168 from MaggieMii/main
Browse files Browse the repository at this point in the history
🐞 fix: 修改评课部分bug
  • Loading branch information
MaggieMii authored Oct 23, 2024
2 parents a4cb277 + e5a53f9 commit 50c82e4
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 44,850 deletions.
44,827 changes: 0 additions & 44,827 deletions package-lock.json

This file was deleted.

7 changes: 2 additions & 5 deletions src/common/components/label3/label3.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,13 @@
box-shadow: 0rpx 5rpx 11rpx 2rpx rgba(0, 0, 0, 0.16);
border-radius: 16rpx 16rpx 16rpx 16rpx;
opacity: 1;
font-size: 22rpx;
font-size: 25rpx;
font-family:
Segoe UI-Regular,
Segoe UI;
font-weight: 400;
color: #f18900;
padding-left: 20rpx;
padding-right: 20rpx;
padding-top: 5rpx;
padding-bottom: 5rpx;
padding: 7rpx 25rpx;
margin-bottom: 15rpx;
margin-right: 15rpx;
display: inline-block;
Expand Down
5 changes: 3 additions & 2 deletions src/common/components/label3/label3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import { View } from '@tarojs/components';
import './label3.scss';

export default function Label3(props) {
const { handleChecked } = props;
const { handleChecked, handleClick } = props;

const label3Checked = (id) => {
handleChecked(id);
if (id) handleChecked(id);
handleClick();
// console.log("已点击")
};

Expand Down
4 changes: 2 additions & 2 deletions src/common/components/star/star.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.star {
width: 25rpx;
height: 25rpx;
width: 35rpx;
height: 35rpx;
margin-right: 5rpx;
}
10 changes: 9 additions & 1 deletion src/pages/evaluate/evaluate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,19 @@ export default function evaluate() {
// 执行其他需要的逻辑
};

const onLableClick = () => {
if (courseName == '只能评价自己学过的课程哦') {
void Taro.navigateTo({
url: '/pages/myclass/myclass',
});
}
};

return (
<Form className="view">
<View className="p">
<Text> 选择课程 : </Text>
<Label3 content={courseName}></Label3>
<Label3 handleClick={onLableClick} content={courseName}></Label3>
</View>
<View className="p">
<Text>评价星级 :</Text>
Expand Down
4 changes: 0 additions & 4 deletions src/pages/questionList/index.config.ts

This file was deleted.

8 changes: 0 additions & 8 deletions src/pages/questionList/index.scss

This file was deleted.

2 changes: 1 addition & 1 deletion src/pages/questionList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Button, View } from '@tarojs/components';
import Taro from '@tarojs/taro';
import { useEffect, useState } from 'react';

import './index.scss';
// import './index.scss';

import CourseInfo from '@/common/components/CourseInfo/CourseInfo';
import QuestionListComponent from '@/common/components/QuestionListComponent/QuestionListComponent';
Expand Down

0 comments on commit 50c82e4

Please sign in to comment.