实现服务页面接入

This commit is contained in:
2026-05-14 17:02:16 +08:00
parent 0ffbc53902
commit 309f50a637
26 changed files with 2216 additions and 492 deletions

View File

@@ -1,5 +1,5 @@
<template>
<scroll-view class="page" scroll-y="true">
<ServicePageScaffold title="执行任务">
<ServicePanel title="执行任务" subtitle="按移动执行页风格,先做任务卡片与状态动作。">
<view v-for="item in tasks" :key="item.id" class="task-card" @click="goDetail(item.id)">
<view class="task-top">
@@ -15,12 +15,13 @@
<view class="action-btn">{{ item.actionText }}</view>
</view>
</ServicePanel>
</scroll-view>
</ServicePageScaffold>
</template>
<script setup lang="uts">
import { ref } from 'vue'
import { onLoad, onShow } from '@dcloudio/uni-app'
import ServicePageScaffold from '@/components/homeService/ServicePageScaffold.uvue'
import ServicePanel from '@/components/homeService/ServicePanel.uvue'
import ServiceStatusTag from '@/components/homeService/ServiceStatusTag.uvue'
import { fetchWorkerTasks } from '@/services/homeServiceService.uts'