feat(小程序): 任务广场 + 任务详情 + 抢单/报名(与 web 同步)
- utils/tasks.js 增 listSquare/getTask/grabById(/opc/tasks 平台公开端点,带 token 取 can_accept) - pages/tasks 任务广场(公开可见,卡片含可接/条件不符徽标+原因,点击进详情,抢单) - pages/task-detail 任务详情(说明/预算/模式/截止/交付/发包方 + 按 can_accept 放行抢单/报名) - app.config 注册两页;「我的」页加「任务广场」入口(在扫码接单前) - Soft UI 浅色柔彩样式;build:weapp 通过
This commit is contained in:
@@ -391,6 +391,16 @@ export default function Mine() {
|
||||
</View>
|
||||
)}
|
||||
|
||||
{/* 任务广场入口:浏览待接单任务 */}
|
||||
<View className="card scan-entry-card" onClick={() => Taro.navigateTo({ url: '/pages/tasks/index' })}>
|
||||
<View className="scan-entry-icon">任</View>
|
||||
<View className="scan-entry-body">
|
||||
<Text className="scan-entry-title">任务广场</Text>
|
||||
<Text className="scan-entry-sub">浏览平台待接单任务,点击抢单 / 报名</Text>
|
||||
</View>
|
||||
<Text className="scan-entry-arrow">›</Text>
|
||||
</View>
|
||||
|
||||
{/* 扫码接单入口:扫描大屏任务二维码领取任务 */}
|
||||
<View className="card scan-entry-card" onClick={() => Taro.navigateTo({ url: '/pages/scan/index' })}>
|
||||
<View className="scan-entry-icon">QR</View>
|
||||
|
||||
Reference in New Issue
Block a user