修改代码
This commit is contained in:
@ -85,15 +85,14 @@
|
||||
<mescroll-body @init="mescrollInit" @down="downCallback" :down="downOption" @up="List.upCallback" :up="upOption" fixed>
|
||||
<view
|
||||
class="flex items-center bg-white p-20rpx rounded-10rpx mx-30rpx mb-20rpx relative"
|
||||
v-for="(item, index) in list" :key="index"
|
||||
@click="List.handleReserveTeaSpecialist(item.team_user_id, item.state)">
|
||||
v-for="(item, index) in list" :key="index" >
|
||||
<view class="tea-specialist-time absolute z-3 top-6rpx left-0 bg-[#4C9F44] text-[#fff] font-400 text-18rpx flex items-center justify-center">
|
||||
{{ item.state == 0 ? '可约' : '工作中' }}
|
||||
</view>
|
||||
<view class="mr-28rpx relative z-2">
|
||||
<view class="mr-28rpx relative z-2" @click="List.handlePreviewImage(item.image)">
|
||||
<wd-img width="200rpx" height="200rpx" :src="item.image" mode="aspectFill"></wd-img>
|
||||
</view>
|
||||
<view class="flex-1">
|
||||
<view class="flex-1" @click="List.handleReserveTeaSpecialist(item.team_user_id, item.state)">
|
||||
<view class="flex items-center">
|
||||
<view class="font-bold text-[#303133] text-30rpx leading-42rpx mr-14rpx">
|
||||
{{ item.name }}
|
||||
@ -153,7 +152,7 @@
|
||||
import { useToast } from 'wot-design-uni'
|
||||
import { onPageScroll, onReachBottom } from '@dcloudio/uni-app'
|
||||
import useMescroll from "@/uni_modules/mescroll-uni/hooks/useMescroll.js"
|
||||
import { router } from '@/utils/tools'
|
||||
import { router, previewImage } from '@/utils/tools'
|
||||
import { getTeaSpecialist } from '@/api/tea-specialist'
|
||||
import TeaSpecialistLevel from '@/components/TeaSpecialistLevel.vue'
|
||||
import type { ITeaSpecialistResult } from '@/api/types/tea-specialist'
|
||||
@ -267,6 +266,13 @@
|
||||
router.navigateBack().catch(err => {
|
||||
router.switchTab('/pages/index/index')
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 预览图片
|
||||
*/
|
||||
handlePreviewImage: (img: any) => {
|
||||
previewImage(img, [img])
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -147,7 +147,7 @@
|
||||
<wd-img width="60rpx" height='60rpx' :src="`${OSS}icon/icon_close.png`"></wd-img>
|
||||
</view>
|
||||
<view class="text-36rpx text-[#121212] leading-50rpx text-center pt-50rpx pb-40rpx">茶艺服务</view>
|
||||
<scroll-view scroll-y class="h-800rpx">
|
||||
<scroll-view scroll-y class="h-900rpx">
|
||||
<view class="">
|
||||
<!-- 服务人数 -->
|
||||
<view class="mx-60rpx mb-56rpx">
|
||||
|
||||
Reference in New Issue
Block a user