You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
159 lines
3.1 KiB
159 lines
3.1 KiB
<!--服务详情页面-->
|
|
<template>
|
|
<view class="main_box">
|
|
<!-- 服务基本信息 -->
|
|
<view class="service_info_card" v-if="serviceInfo">
|
|
<view class="service_header">
|
|
<view class="service_title">{{ serviceInfo.title }}</view>
|
|
<view class="service_status" :class="serviceInfo.status">
|
|
{{ serviceInfo.status_text }}
|
|
</view>
|
|
</view>
|
|
|
|
<view class="service_details">
|
|
<view class="detail_item">
|
|
<view class="detail_label">服务时间</view>
|
|
<view class="detail_value">{{ serviceInfo.service_time }}</view>
|
|
</view>
|
|
<view class="detail_item">
|
|
<view class="detail_label">服务内容</view>
|
|
<view class="detail_value">{{ serviceInfo.content }}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 空状态 -->
|
|
<view class="empty_state" v-if="!loading && !serviceInfo">
|
|
<image src="/static/icon-img/empty.png" class="empty_icon"></image>
|
|
<view class="empty_text">暂无服务信息</view>
|
|
</view>
|
|
|
|
<!-- 加载状态 -->
|
|
<view class="loading_state" v-if="loading">
|
|
<view class="loading_text">加载中...</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
serviceInfo: null,
|
|
loading: false,
|
|
serviceId: null,
|
|
childId: null
|
|
}
|
|
},
|
|
onLoad(options) {
|
|
this.serviceId = options.serviceId
|
|
this.childId = options.childId
|
|
this.loadServiceInfo()
|
|
},
|
|
methods: {
|
|
async loadServiceInfo() {
|
|
// 模拟服务详情数据
|
|
this.serviceInfo = {
|
|
title: '课程跟踪服务',
|
|
status: 'completed',
|
|
status_text: '已完成',
|
|
service_time: '2024-01-15 10:00:00',
|
|
content: '针对学员的课程进度进行跟踪辅导,提供个性化建议。'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
.main_box {
|
|
background: #f8f9fa;
|
|
min-height: 100vh;
|
|
padding: 20rpx;
|
|
}
|
|
|
|
.service_info_card {
|
|
background: #fff;
|
|
border-radius: 16rpx;
|
|
padding: 32rpx;
|
|
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
|
|
|
|
.service_header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 32rpx;
|
|
padding-bottom: 24rpx;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
|
|
.service_title {
|
|
font-size: 36rpx;
|
|
font-weight: 600;
|
|
color: #333;
|
|
}
|
|
|
|
.service_status {
|
|
font-size: 24rpx;
|
|
padding: 8rpx 16rpx;
|
|
border-radius: 12rpx;
|
|
background: rgba(41, 211, 180, 0.1);
|
|
color: #29d3b4;
|
|
}
|
|
}
|
|
|
|
.service_details {
|
|
.detail_item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20rpx 0;
|
|
border-bottom: 1px solid #f8f9fa;
|
|
|
|
.detail_label {
|
|
font-size: 28rpx;
|
|
color: #666;
|
|
min-width: 160rpx;
|
|
}
|
|
|
|
.detail_value {
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
flex: 1;
|
|
text-align: right;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.empty_state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 120rpx 0;
|
|
|
|
.empty_icon {
|
|
width: 160rpx;
|
|
height: 160rpx;
|
|
margin-bottom: 32rpx;
|
|
opacity: 0.3;
|
|
}
|
|
|
|
.empty_text {
|
|
font-size: 28rpx;
|
|
color: #999;
|
|
}
|
|
}
|
|
|
|
.loading_state {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 60rpx 0;
|
|
|
|
.loading_text {
|
|
font-size: 28rpx;
|
|
color: #666;
|
|
}
|
|
}
|
|
</style>
|