Skip to content

Let's use AI to Earn!

继续优化

DESKTOP-ZTS2NQJNA0a02ef62e12b
diff --git a/src/assets/task/qr0.jpg b/src/assets/task/qr0.jpg
new file mode 100644
index 00000000..3e9a468a
Binary files /dev/null and b/src/assets/task/qr0.jpg differ
diff --git a/src/views/task/mineTask.module.scss b/src/views/task/mineTask.module.scss
index f6981784..546b0fdd 100644
--- a/src/views/task/mineTask.module.scss
+++ b/src/views/task/mineTask.module.scss
@@ -180,22 +180,195 @@
}
.emptyContainer {
- padding: 40px 0;
- text-align: center;
+ background-color: #f9f9f9;
+ padding: 30px 20px;
+ border-radius: 8px;
+ margin-top: 20px;
}
.emptyText {
- margin-top: 16px;
- color: #666;
+ text-align: center;
+ margin-bottom: 30px;
h3 {
font-size: 16px;
- font-weight: normal;
+ font-weight: 500;
+ color: #333;
margin-bottom: 8px;
+
+ .emptyHighlight {
+ color: #ff4d4f;
+ font-weight: bold;
+ }
}
p {
- color: #999;
+ color: #666;
+ font-size: 14px;
+ }
+
+ .emptyLink {
+ color: #1890ff;
+ cursor: pointer;
+
+ &:hover {
+ text-decoration: underline;
+ }
+ }
+}
+
+.emptySubtitle {
+ text-align: center;
+ font-size: 15px;
+ color: #333;
+ margin-bottom: 20px;
+}
+
+.guideContainer {
+ border-radius: 8px;
+ padding: 20px;
+}
+
+.guideStep {
+ margin-bottom: 30px;
+
+ h4 {
+ text-align: center;
+ font-size: 15px;
+ font-weight: 500;
+ color: #333;
+ margin-bottom: 20px;
+ }
+}
+
+.qrCodeContainer {
+ display: flex;
+ justify-content: space-around;
+ margin: 0 auto;
+ max-width: 600px;
+}
+
+.qrCodeItem {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ width: 45%;
+}
+
+.qrCodeTitle {
+ text-align: center;
+ font-size: 14px;
+ color: #333;
+ margin-bottom: 15px;
+}
+
+.qrCodeWrapper {
+ width: 140px;
+ height: 140px;
+ border: 1px solid #eee;
+ padding: 5px;
+ background-color: #fff;
+ margin-bottom: 10px;
+}
+
+.qrCode {
+ width: 100%;
+ height: 100%;
+}
+
+.qrCodeCaption {
+ font-size: 14px;
+ color: #333;
+ margin-bottom: 4px;
+ text-align: center;
+}
+
+.qrCodeSubCaption {
+ font-size: 12px;
+ color: #999;
+ text-align: center;
+}
+
+.processContainer {
+ margin-top: 40px;
+}
+
+.processTitle {
+ text-align: center;
+ font-size: 15px;
+ font-weight: 500;
+ color: #333;
+ margin-bottom: 30px;
+ position: relative;
+
+ &:before, &:after {
+ content: '';
+ display: inline-block;
+ width: 30px;
+ height: 1px;
+ background-color: #ccc;
+ vertical-align: middle;
+ margin: 0 10px;
+ }
+}
+
+.processSteps {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ max-width: 700px;
+ margin: 0 auto;
+}
+
+.processStep {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ width: 20%;
+}
+
+.processIcon {
+ width: 50px;
+ height: 50px;
+ background-color: #fff;
+ border-radius: 50%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin-bottom: 10px;
+}
+
+.stepIcon {
+ width: 30px;
+ height: 30px;
+}
+
+.stepText {
+ text-align: center;
+ font-size: 12px;
+ color: #666;
+ max-width: 80px;
+}
+
+.processDivider {
+ flex-grow: 1;
+ height: 1px;
+ background-color: #e8e8e8;
+ position: relative;
+ margin: 0 5px;
+ margin-bottom: 30px;
+
+ &:after {
+ content: '';
+ position: absolute;
+ right: 0;
+ top: 50%;
+ transform: translateY(-50%);
+ width: 0;
+ height: 0;
+ border-top: 4px solid transparent;
+ border-bottom: 4px solid transparent;
+ border-left: 6px solid #e8e8e8;
}
}
@@ -326,43 +499,4 @@
}
}
}
-}
-
-.qrCodeContainer {
- display: flex;
- justify-content: center;
- gap: 40px;
- margin: 24px 0;
-}
-
-.qrCodeItem {
- display: flex;
- flex-direction: column;
- align-items: center;
-}
-
-.qrCodeWrapper {
- width: 120px;
- height: 120px;
- border: 1px solid #eee;
- border-radius: 4px;
- padding: 8px;
- background-color: #fff;
- margin-bottom: 12px;
-}
-
-.qrCode {
- width: 100%;
- height: 100%;
-}
-
-.qrCodeText {
- font-weight: 500;
- color: #333;
- margin-bottom: 4px;
-}
-
-.qrCodeSubtext {
- font-size: 12px;
- color: #999;
}
\ No newline at end of file
diff --git a/src/views/task/mineTask.tsx b/src/views/task/mineTask.tsx
index 7b187981..ab32bc86 100644
--- a/src/views/task/mineTask.tsx
+++ b/src/views/task/mineTask.tsx
@@ -30,7 +30,7 @@ import checkTaskImg from '@/assets/task/waits.png';
import publishTaskImg from '@/assets/task/fabu.png';
import rewardTaskImg from '@/assets/task/jiesuan.png';
import qr1 from '@/assets/task/qr1.png';
-import qr2 from '@/assets/task/qr2.png';
+import qr2 from '@/assets/task/qr0.jpg';
const UserTaskStatusNameMap = new Map<UserTaskStatus, string>([
[UserTaskStatus.DODING, '进行中'],
@@ -55,6 +55,82 @@ const UserTaskStatusColorMap = new Map<UserTaskStatus, string>([
[UserTaskStatus.REWARDED, 'success'],
]);
+ // 渲染空状态
+ const renderEmptyState = () => {
+ return (
+ <div className={styles.emptyContainer}>
+ <div className={styles.emptyText}>
+ <h3>接单前请务必先浏览《接单须知与常见问题解答》</h3>
+ <p>所有关于接单的秘诀都在这里,请不要错过</p>
+ </div>
+
+ <div className={styles.guideContainer}>
+ <div className={styles.guideStep}>
+ <h4>接单前完成以下步骤,接单快人一步</h4>
+
+ <div className={styles.qrCodeContainer}>
+ <div className={styles.qrCodeItem}>
+ <div className={styles.qrCodeWrapper}>
+ <img src={qr1} alt="扫码加入账号招募群" className={styles.qrCode} />
+ </div>
+ <p className={styles.qrCodeText}>扫码加入账号招募群</p>
+ <p className={styles.qrCodeSubtext}>不可在群内天打扰他人</p>
+ </div>
+
+ <div className={styles.qrCodeItem}>
+ <div className={styles.qrCodeWrapper}>
+ <img src={qr2} alt="扫码开启更多权益" className={styles.qrCode} />
+ </div>
+ <p className={styles.qrCodeText}>扫码开启更多权益</p>
+ <p className={styles.qrCodeSubtext}>手机扫码爱团团公众号</p>
+ </div>
+ </div>
+ </div>
+
+ <div className={styles.processContainer}>
+ <h4 className={styles.processTitle}>接单流程</h4>
+
+ <div className={styles.processSteps}>
+ <div className={styles.processStep}>
+ <div className={styles.processIcon}>
+ <img src={bindTaskImg} alt="前往管理中心绑定账号" className={styles.stepIcon} />
+ </div>
+ <p className={styles.stepText}>前往管理中心绑定账号</p>
+ </div>
+
+ <div className={styles.processDivider}></div>
+
+ <div className={styles.processStep}>
+ <div className={styles.processIcon}>
+ <img src={checkTaskImg} alt="等待平台验证通过" className={styles.stepIcon} />
+ </div>
+ <p className={styles.stepText}>等待平台验证通过</p>
+ </div>
+
+ <div className={styles.processDivider}></div>
+
+ <div className={styles.processStep}>
+ <div className={styles.processIcon}>
+ <img src={publishTaskImg} alt="一键发文" className={styles.stepIcon} />
+ </div>
+ <p className={styles.stepText}>一键发文</p>
+ </div>
+
+ <div className={styles.processDivider}></div>
+
+ <div className={styles.processStep}>
+ <div className={styles.processIcon}>
+ <img src={rewardTaskImg} alt="成功发文等待结算" className={styles.stepIcon} />
+ </div>
+ <p className={styles.stepText}>成功发文等待结算</p>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+ };
+
export default function Page() {
const [taskList, setTaskList] = useState<UserTask<Task<TaskDataInfo>>[]>([]);
const [pageInfo, setPageInfo] = useState({
@@ -203,12 +279,9 @@ export default function Page() {
<div className={styles.emptyContainer}>
<Empty description={false} />
<div className={styles.emptyText}>
- <h3>暂无任务</h3>
<p>您还没有接受任何任务,可以前往任务市场查看更多任务</p>
</div>
- <Button type="primary" onClick={openGuideModal} style={{ marginTop: 16 }}>
- 查看接单指南
- </Button>
+ {renderEmptyState()}
</div>
) : (
<div className={styles.taskList}>
@@ -326,7 +399,7 @@ export default function Page() {
<div className={styles.qrCodeContainer}>
<div className={styles.qrCodeItem}>
<div className={styles.qrCodeWrapper}>
- <img src={qr1} alt="任务市场公众号" className={styles.qrCode} />
+ <img src={qr2} alt="任务市场公众号" className={styles.qrCode} />
</div>
<div className={styles.qrCodeText}>任务市场公众号</div>
<div className={styles.qrCodeSubtext}>获取最新任务通知</div>