Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 fix:修复bug #184

Merged
merged 2 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .yarn/releases/yarn-4.3.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/modules/login/components/AuthForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const AuthForm: React.FC = memo(() => {
password
onInput={(e) => setUserData({ ...userData, password: e.detail.value })}
></Input>
<Text className="text-sm text-gray-500">Forget your password?</Text>
<Text className="text-sm text-gray-500">请使用一站式账号密码登录</Text>
</View>
<View className="mb-12 mt-8 flex w-[90vw] flex-col gap-2">
<Button
Expand Down
16 changes: 7 additions & 9 deletions src/modules/profile/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ const Header: React.FC = memo(() => {
return (
<>
<Image src={TopBackground as string} className="h-[35vh] w-full"></Image>
<View className="absolute top-[12vh] flex w-full items-center gap-4 pl-14">
<View
className="absolute top-[12vh] flex w-full items-center gap-4 pl-14"
onClick={() => {
void Taro.navigateTo({ url: '/pages/editUser/index' });
}}
>
<View className="aspect-square h-[20vw] w-[20vw] rounded-full bg-white">
<Image
src={user.avatarUrl}
Expand All @@ -80,14 +85,7 @@ const Header: React.FC = memo(() => {
{user.selectedTitle !== 'None' && (
<TitleButton title={user.selectedTitle} isSelected></TitleButton>
)}
<Text
className="text-md font-bold text-white"
onClick={() => {
void Taro.navigateTo({ url: '/pages/editUser/index' });
}}
>
&gt;
</Text>
<Text className="text-md font-bold text-white">&gt;</Text>
</View>
<Text className="flex w-full justify-end text-xs font-bold text-orange-400">
{user.points}/{user.nextLevel}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/evaluate/evaluate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export default function evaluate() {
}
};

return accoutInfo.miniProgram.envVersion !== 'develop' ? (
return accoutInfo.miniProgram.envVersion === 'develop' ? (
<>因为政策原因,暂时无法评价课程</>
) : (
<Form className="view">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/shareGrades/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const ShareGrades = () => {
});
}
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
if (r.msg === '签约成功') {
if (r.msg === 'success') {
void Taro.showToast({
icon: 'success',
title: '签约成功!',
Expand Down
Loading