first commit
This commit is contained in:
@@ -0,0 +1,323 @@
|
||||
<template>
|
||||
<view v-if="loading" style="margin: 20rpx;">
|
||||
<!-- 用户信息骨架屏 -->
|
||||
<view class="skeleton-user-card">
|
||||
<view class="skeleton-avatar"></view>
|
||||
<view class="skeleton-user-info">
|
||||
<view class="skeleton-line skeleton-name"></view>
|
||||
<view class="skeleton-line skeleton-id"></view>
|
||||
<view class="skeleton-line skeleton-status"></view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
<!-- 服务列表骨架屏 -->
|
||||
<view class="skeleton-section-title"></view>
|
||||
<view class="skeleton-service-list">
|
||||
<view class="skeleton-service-item" v-for="i in 4" :key="i">
|
||||
<view class="skeleton-icon"></view>
|
||||
<view class="skeleton-line skeleton-service-name"></view>
|
||||
<view class="skeleton-arrow"></view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 退出登录按钮骨架屏 -->
|
||||
<view class="skeleton-logout-btn"></view>
|
||||
</view>
|
||||
<view v-else style="margin: 20rpx ;">
|
||||
<view class=""
|
||||
style="background: linear-gradient(to bottom,#E6F7FF,#FFFFFF) ; border-radius: 20rpx; display: flex; align-items: center; padding: 40rpx 20rpx; ">
|
||||
<image :src="Service.GetMateUrlByImg(riderInfo.headImg)"
|
||||
style="width: 110rpx; height: 110rpx; border-radius: 50%; border: 1rpx solid var(--nav-mian); " mode="">
|
||||
</image>
|
||||
<view class="" style="flex: 1; margin-left: 30rpx;">
|
||||
<view class="" style="display: flex; align-items: center; gap: 20rpx;">
|
||||
<view class="" style="font-size: 34rpx; font-weight: 600; color: var(--nav-mian); ">
|
||||
{{riderInfo.nick}}
|
||||
</view>
|
||||
<!-- <view class=""
|
||||
style="background-color: var(--nav-vice); color: #fff; padding: 4rpx 10rpx; border-radius: 4rpx; font-size: 24rpx; display: flex; align-items: baseline; justify-content: center; ">
|
||||
4.9
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="" style="margin: 10rpx 0; font-size: 28rpx; ">
|
||||
riderNo: {{ riderInfo.riderNo }}
|
||||
</view>
|
||||
<view class="" style="color: var(--nav-vice); font-weight: bold; ">
|
||||
{{ riderInfo.isOnline==0?'已下线':'已上线' }}
|
||||
</view>
|
||||
</view>
|
||||
<view @click="Service.GoPage('/pages/my/edit')" class="">
|
||||
<u-icon name="setting" size="20"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="" style="margin: 20rpx 0;">
|
||||
<text style="font-size: 34rpx; font-weight: 600; ">我的服务</text>
|
||||
</view>
|
||||
<view class="" style=" background-color: #fff; border-radius: 20rpx; ">
|
||||
<view class="" @click="gopage(funcItem,funcIndex)" v-for="(funcItem,funcIndex) in funcList" :key="funcIndex"
|
||||
style=" border-bottom: 1rpx solid #e2e2e2; display: flex; align-items: center; padding: 24rpx 30rpx; ">
|
||||
<image :src="Service.GetIconImg(funcItem.icon)" style="width: 50rpx; height: 50rpx; " mode=""></image>
|
||||
<view class="" style="flex: 1; font-size: 28rpx; margin-left: 20rpx; ">
|
||||
{{funcItem.name}}
|
||||
</view>
|
||||
<view class="">
|
||||
<up-icon name="arrow-right"></up-icon>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<button @click="Service.GoPage('/pages/my/login')" class="confirm-button">退出登录</button>
|
||||
<view class="" style="width: 100vw; height: 100rpx; ">
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onShow, onLoad } from "@dcloudio/uni-app";
|
||||
import { Service } from "@/Service/Service";
|
||||
import { ref } from 'vue'
|
||||
import { CNRiderDataService } from "@/Service/CN/CNRiderDataService"
|
||||
|
||||
|
||||
let loading = ref(true)
|
||||
|
||||
let funcList = ref([
|
||||
{
|
||||
name: '联系客服',
|
||||
icon: '/static/index/user/phone.png',
|
||||
path: '/pages/my/myKF'
|
||||
},
|
||||
{
|
||||
name: '异常订单',
|
||||
icon: '/static/index/user/warming.png',
|
||||
path: '/pages/my/AbnormalList'
|
||||
},
|
||||
// {
|
||||
// name: '签到与奖励',
|
||||
// icon: '/static/index/user/check.png',
|
||||
// path: '/pages/my/check'
|
||||
// },
|
||||
{
|
||||
name: '提现列表',
|
||||
icon: '/static/index/user/security.png',
|
||||
path: '/pages/my/withDrowList'
|
||||
},
|
||||
{
|
||||
name: '账号与安全',
|
||||
icon: '/static/index/user/security.png',
|
||||
path: '/pages/my/security'
|
||||
},
|
||||
{
|
||||
name: '评价中心',
|
||||
icon: '/static/index/user/security.png',
|
||||
path: '/pages/my/evaluate'
|
||||
}
|
||||
])
|
||||
|
||||
let riderInfo=ref<any>({})
|
||||
|
||||
onLoad(() => {
|
||||
|
||||
});
|
||||
|
||||
onShow(() => {
|
||||
getData()
|
||||
});
|
||||
|
||||
|
||||
const getData = () => {
|
||||
CNRiderDataService.GetRiderInfo().then(res => {
|
||||
loading.value = false
|
||||
if(res.data){
|
||||
riderInfo.value=res.data.riderInfo
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const gopage = (item : any, index : number) => {
|
||||
Service.GoPage(item.path)
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.confirm-button {
|
||||
width: 100%;
|
||||
height: 90rpx;
|
||||
background-color: #1677ff;
|
||||
color: #fff;
|
||||
font-size: 34rpx;
|
||||
font-weight: 600;
|
||||
border-radius: 45rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: none;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.confirm-button:active {
|
||||
background-color: #0958d9;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 骨架屏基础样式和动画
|
||||
.skeleton-loading {
|
||||
background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
|
||||
background-size: 200% 100%;
|
||||
animation: skeleton-loading 1.5s infinite;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
|
||||
@keyframes skeleton-loading {
|
||||
0% {
|
||||
background-position: 200% 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
background-position: -200% 0;
|
||||
}
|
||||
}
|
||||
|
||||
// 骨架屏公共样式
|
||||
.skeleton-line {
|
||||
height: 32rpx;
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
|
||||
// 用户信息卡片骨架
|
||||
.skeleton-user-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 40rpx 20rpx;
|
||||
background: linear-gradient(to bottom, #f0f0f0, #fafafa);
|
||||
border-radius: 20rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.skeleton-avatar {
|
||||
width: 110rpx;
|
||||
height: 110rpx;
|
||||
border-radius: 50%;
|
||||
background-color: #f0f0f0;
|
||||
|
||||
}
|
||||
|
||||
.skeleton-user-info {
|
||||
flex: 1;
|
||||
margin-left: 30rpx;
|
||||
}
|
||||
|
||||
.skeleton-name {
|
||||
width: 40%;
|
||||
height: 36rpx;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
|
||||
.skeleton-id {
|
||||
width: 60%;
|
||||
height: 30rpx;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
|
||||
.skeleton-status {
|
||||
width: 50%;
|
||||
height: 28rpx;
|
||||
}
|
||||
|
||||
// 数据统计卡片骨架
|
||||
.skeleton-stats-card {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
padding: 20rpx;
|
||||
}
|
||||
|
||||
.skeleton-stat-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
.skeleton-stat-value {
|
||||
width: 80%;
|
||||
height: 40rpx;
|
||||
margin-bottom: 12rpx;
|
||||
}
|
||||
|
||||
.skeleton-stat-label {
|
||||
width: 60%;
|
||||
height: 28rpx;
|
||||
}
|
||||
|
||||
// 服务列表骨架
|
||||
.skeleton-section-title {
|
||||
height: 40rpx;
|
||||
background-color: #fff;
|
||||
width: 30%;
|
||||
margin: 20rpx 0;
|
||||
|
||||
.skeleton-loading {}
|
||||
}
|
||||
|
||||
.skeleton-service-list {
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
overflow: hidden;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.skeleton-service-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 24rpx 30rpx;
|
||||
border-bottom: 1rpx solid #f5f5f5;
|
||||
}
|
||||
|
||||
.skeleton-service-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.skeleton-icon {
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 8rpx;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
|
||||
.skeleton-service-name {
|
||||
flex: 1;
|
||||
height: 30rpx;
|
||||
}
|
||||
|
||||
.skeleton-arrow {
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 4rpx;
|
||||
|
||||
}
|
||||
|
||||
// 退出登录按钮骨架
|
||||
.skeleton-logout-btn {
|
||||
height: 90rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 45rpx;
|
||||
margin-bottom: 20rpx;
|
||||
|
||||
}
|
||||
|
||||
// 底部占位
|
||||
.skeleton-bottom-space {
|
||||
height: 100rpx;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,487 @@
|
||||
<template>
|
||||
<!-- 骨架屏 -->
|
||||
<view v-if="loading" class="task-list-container skeleton-loading">
|
||||
<!-- 顶部标签栏 -->
|
||||
<view class="tab-bar">
|
||||
<view v-for="(tab, index) in tabs" :key="index" class="tab-item">
|
||||
<div class="skeleton-tab-text"></div>
|
||||
</view>
|
||||
</view>
|
||||
<view class="" style="width: 100vw; height: 120rpx"> </view>
|
||||
|
||||
<!-- 骨架屏订单列表 -->
|
||||
<view class="order-list">
|
||||
<!-- 骨架屏任务卡片 1 -->
|
||||
<view v-for="item in 3" class="task-section skeleton-card">
|
||||
<view class="" style="display: flex; align-items: center; justify-content: space-between;" >
|
||||
<div class="skeleton-tag"></div>
|
||||
<div class="skeleton-time-group">
|
||||
<div class="icon-placeholder"></div>
|
||||
<div class="skeleton-time-text"></div>
|
||||
</div>
|
||||
</view>
|
||||
<div class="skeleton-merchant-info">
|
||||
<div class="skeleton-merchant-name"></div>
|
||||
<div class="skeleton-distance"></div>
|
||||
</div>
|
||||
<div class="skeleton-address-info">
|
||||
<div class="icon-placeholder"></div>
|
||||
<div class="skeleton-address-text"></div>
|
||||
</div>
|
||||
<div class="skeleton-price-time-row">
|
||||
<div class="skeleton-price"></div>
|
||||
<div class="skeleton-time-group">
|
||||
<div class="icon-placeholder"></div>
|
||||
<div class="skeleton-time-text"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="skeleton-button"></div>
|
||||
</view>
|
||||
</view>
|
||||
<view class="" style="width: 100vw; display: flex; justify-content: center; margin-top: 20rpx; " >
|
||||
<view class="" style="width: 200rpx; height: 40rpx; background-color: #fff; border-radius: 4rpx; " >
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
<view v-else class="task-list-container">
|
||||
<!-- 顶部标签栏 -->
|
||||
<view class="tab-bar">
|
||||
<view v-for="(tab, index) in tabs" :key="index" class="tab-item" :class="{ active: activeTab === index }"
|
||||
@click="switchTab(index)">
|
||||
<text class="tab-text">{{ tab }}</text>
|
||||
<view v-if="activeTab === index" class="active-line"></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="" style="width: 100vw; height: 120rpx; ">
|
||||
|
||||
</view>
|
||||
<!-- 订单列表 -->
|
||||
<view class="order-list">
|
||||
<view @click="gopage()" v-for="(orderItem,orderIndex) in 3 " :key="orderIndex" class="task-section">
|
||||
<!-- 高价单标签 -->
|
||||
<view class="" style="display: flex; align-items: center; justify-content: space-between;">
|
||||
<view v-if="activeTab==0" class="high-price-tag" style="border-radius: 8rpx;" >
|
||||
<image :src="Service.GetIconImg('/static/index/task/fire.png')" style="width: 24rpx; height: 24rpx;" mode=""></image>
|
||||
<text class="high-price-text" style="margin-left: 4rpx;" >高价单</text>
|
||||
</view>
|
||||
<view v-else class="high-price-tag" :style="{'border':activeTab==1?'1rpx solid #52C41A':'1rpx solid #FAAD14','color':activeTab==1?'#52C41A':'#FAAD14' }" style="background-color: #fff;" >
|
||||
<text class="high-price-text">{{activeTab==1?'待取单':'配送中'}}</text>
|
||||
</view>
|
||||
<view class="" v-if="activeTab!==0" style="display: flex; align-items: baseline;">
|
||||
<up-icon name="phone" color="var(--nav-mian)" size="20"></up-icon>
|
||||
<text style="margin-left: 10rpx; color: var(--nav-mian); ">拨打商家</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 商家信息 -->
|
||||
<view class="merchant-info">
|
||||
<text class="merchant-name">老北京炸酱面</text>
|
||||
<text class="distance">500m</text>
|
||||
</view>
|
||||
|
||||
<!-- 地址信息 -->
|
||||
<view class="address-info">
|
||||
<up-icon name="map" color="#999" size="24rpx" />
|
||||
<text class="address-text">北京市朝阳区三里屯SOHO</text>
|
||||
<text v-if="activeTab!==0" class="address-text">共3件商品</text>
|
||||
</view>
|
||||
<!-- 商品次数-->
|
||||
<view v-if="activeTab==1" class="address-info">
|
||||
<text class="address-text">共3件商品</text>
|
||||
</view>
|
||||
|
||||
<!-- 价格和取餐时间 -->
|
||||
<view class="price-time-row">
|
||||
<view v-if="activeTab==0" class="">
|
||||
<text class="price">¥5.50</text>
|
||||
<text style="color: var(--nav-mian); font-weight: 600; margin-left: 10rpx; ">/单</text>
|
||||
</view>
|
||||
<view v-if="activeTab==1" class="">
|
||||
<text style="font-size: 30rpx; font-weight: 600; color: #1890FF; ">取件码: </text>
|
||||
<text style="color: var(--nav-mian); font-weight: 600; margin-left: 10rpx; ">A121</text>
|
||||
</view>
|
||||
<view v-if="activeTab==2" class="">
|
||||
<text class="address-text">据您1.2km</text>
|
||||
</view>
|
||||
<view class="pickup-time">
|
||||
<up-icon name="clock" color="#FF9500" size="24rpx" />
|
||||
<text class="time-text" :style="{'color':activeTab==0?'#FAAD14':'#FF0000'}" >{{activeTab==0?'12:30 前取餐':'12:30 前送达'}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 立即抢单按钮 -->
|
||||
<up-button type="primary" :color="activeTab==0?'#1890FF':(activeTab==1?'#52C41A':'#52C41A')" size="large" class="grab-btn">{{ activeTab==0?'立即抢单':(activeTab==1?'我已取餐':'确认送达') }}</up-button>
|
||||
</view>
|
||||
|
||||
<!-- 没有更多任务提示 -->
|
||||
<up-loadmore :status="status" />
|
||||
<view class="" style="width: 100vw; height: 60rpx; " ></view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onLoad } from '@dcloudio/uni-app'
|
||||
import { ref } from 'vue'
|
||||
import { Service } from '@/Service/Service'
|
||||
|
||||
let loading = ref(true)
|
||||
// 标签数据
|
||||
const tabs = ['新任务', '待取货', '配送中']
|
||||
const activeTab = ref(0)
|
||||
let status = ref('nomore')
|
||||
|
||||
|
||||
|
||||
onLoad(() => {
|
||||
setTimeout(() => {
|
||||
loading.value = false
|
||||
}, 1000)
|
||||
})
|
||||
|
||||
// 页面跳转
|
||||
const gopage = () => {
|
||||
if (activeTab.value == 0) {
|
||||
Service.GoPage('/pages/order/grabOrder')
|
||||
} else {
|
||||
Service.GoPage('/pages/order/orderDetail')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 切换标签
|
||||
const switchTab = (index : number) => {
|
||||
activeTab.value = index
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.task-list-container {
|
||||
background-color: #F5F5F5;
|
||||
}
|
||||
|
||||
/* 顶部标签栏 */
|
||||
.tab-bar {
|
||||
display: flex;
|
||||
background-color: #FFFFFF;
|
||||
padding: 20rpx 0 0;
|
||||
border-bottom: 1rpx solid #E5E5E5;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.tab-item {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 20rpx 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.tab-text {
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.tab-item.active .tab-text {
|
||||
color: var(--nav-mian);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.active-line {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 110rpx;
|
||||
height: 6rpx;
|
||||
background-color: var(--nav-mian);
|
||||
border-radius: 3rpx;
|
||||
}
|
||||
|
||||
/* 订单列表 */
|
||||
.order-list {
|
||||
padding: 0rpx 30rpx;
|
||||
}
|
||||
|
||||
.task-section {
|
||||
margin-top: 20rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
padding: 20rpx;
|
||||
}
|
||||
|
||||
|
||||
/* 标签样式 */
|
||||
.high-price-tag {
|
||||
width: fit-content;
|
||||
background-color: #FF7875;
|
||||
color: #FFFFFF;
|
||||
padding: 5rpx 20rpx;
|
||||
border-radius: 20rpx;
|
||||
font-size: 24rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.status-tag {
|
||||
position: absolute;
|
||||
top: 20rpx;
|
||||
left: 20rpx;
|
||||
padding: 5rpx 20rpx;
|
||||
border-radius: 20rpx;
|
||||
font-size: 24rpx;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.status-tag.pending {
|
||||
background-color: #4CD964;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.status-tag.delivering {
|
||||
background-color: #FF9500;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
/* 右侧操作按钮 */
|
||||
.right-action {
|
||||
position: absolute;
|
||||
top: 20rpx;
|
||||
right: 20rpx;
|
||||
}
|
||||
|
||||
.call-btn {
|
||||
padding: 5rpx 15rpx;
|
||||
font-size: 24rpx;
|
||||
line-height: 36rpx;
|
||||
}
|
||||
|
||||
/* 信息展示 */
|
||||
.merchant-info {
|
||||
margin-top: 20rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.merchant-name {
|
||||
font-size: 34rpx;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.distance {
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.address-info {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
margin-top: 15rpx;
|
||||
}
|
||||
|
||||
.address-text {
|
||||
margin-left: 10rpx;
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* 价格和时间 */
|
||||
.price-time-row {
|
||||
margin-top: 20rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.price {
|
||||
font-size: 36rpx;
|
||||
font-weight: 600;
|
||||
color: #FF3B30;
|
||||
}
|
||||
|
||||
.pickup-code {
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.pickup-time {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.time-text {
|
||||
margin-left: 8rpx;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
/* 按钮样式 */
|
||||
.grab-btn {
|
||||
margin-top: 25rpx;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
border-radius: 40rpx;
|
||||
}
|
||||
|
||||
.grab-btn {
|
||||
background-color: #007AFF;
|
||||
}
|
||||
|
||||
/* 没有更多任务 */
|
||||
.no-more-tasks {
|
||||
margin-top: 40rpx;
|
||||
text-align: center;
|
||||
padding: 20rpx 0;
|
||||
}
|
||||
|
||||
.no-more-text {
|
||||
font-size: 28rpx;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
/* 骨架屏样式 */
|
||||
.skeleton-loading .skeleton-card {
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
padding: 20rpx;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.skeleton-tab-text {
|
||||
width: 80rpx;
|
||||
height: 30rpx;
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 4rpx;
|
||||
}
|
||||
|
||||
.skeleton-tag {
|
||||
width: 100rpx;
|
||||
height: 30rpx;
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 15rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.skeleton-merchant-info {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 15rpx;
|
||||
}
|
||||
|
||||
.skeleton-merchant-name {
|
||||
width: 200rpx;
|
||||
height: 34rpx;
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 4rpx;
|
||||
}
|
||||
|
||||
.skeleton-distance {
|
||||
width: 60rpx;
|
||||
height: 28rpx;
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 4rpx;
|
||||
}
|
||||
|
||||
.skeleton-address-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.icon-placeholder {
|
||||
width: 24rpx;
|
||||
height: 24rpx;
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 4rpx;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
|
||||
.skeleton-address-text {
|
||||
width: 400rpx;
|
||||
height: 28rpx;
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 4rpx;
|
||||
}
|
||||
|
||||
.skeleton-price-time-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 25rpx;
|
||||
}
|
||||
|
||||
.skeleton-price {
|
||||
width: 80rpx;
|
||||
height: 36rpx;
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 4rpx;
|
||||
}
|
||||
|
||||
.skeleton-time-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.skeleton-time-text {
|
||||
width: 150rpx;
|
||||
height: 26rpx;
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 4rpx;
|
||||
}
|
||||
|
||||
.skeleton-button {
|
||||
width: 100%;
|
||||
height: 80rpx;
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 40rpx;
|
||||
}
|
||||
|
||||
/* 骨架屏动画 */
|
||||
.skeleton-card .skeleton-tag::after,
|
||||
.skeleton-card .skeleton-merchant-name::after,
|
||||
.skeleton-card .skeleton-distance::after,
|
||||
.skeleton-card .skeleton-address-text::after,
|
||||
.skeleton-card .icon-placeholder::after,
|
||||
.skeleton-card .skeleton-price::after,
|
||||
.skeleton-card .skeleton-time-text::after,
|
||||
.skeleton-card .skeleton-button::after,
|
||||
.skeleton-loading .skeleton-tab-text::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
|
||||
animation: shimmer 1.5s infinite;
|
||||
}
|
||||
|
||||
@keyframes shimmer {
|
||||
0% {
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: translateX(100%);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user