|
@@ -5,6 +5,7 @@ import { PropType } from 'vue'
|
|
|
import { Content } from '../../../../core/models/moment'
|
|
|
import dayjs from 'dayjs'
|
|
|
import { useRouter } from '../../../../core/utils/router'
|
|
|
+import { map } from '@designer-hub/assets/src/assets/svgs'
|
|
|
|
|
|
const props = defineProps({
|
|
|
customClass: {
|
|
@@ -22,81 +23,97 @@ const toDetail = () => {
|
|
|
}
|
|
|
</script>
|
|
|
<template>
|
|
|
- <view class="relative w-full box-border" :class="customClass" @click="toDetail">
|
|
|
- <view class="relative h-full mx--2.5 mb--6 mt--1 box-border">
|
|
|
- <wd-img :width="'100%'" :height="'100%'" :src="studyTourItemBg" mode="widthFix"></wd-img>
|
|
|
- </view>
|
|
|
- <view class="absolute left-0 right-0 top-1 bottom-6 z-1 p-3.5">
|
|
|
- <view class="w-full h-full flex flex-col justify-between">
|
|
|
- <div>1</div>
|
|
|
- <div class="w-[321px] h-[88px] relative">
|
|
|
- <div class="w-[94px] h-3 left-[185px] top-[64px] absolute">
|
|
|
- <div
|
|
|
- class="left-0 top-0 absolute text-black/40 text-sm font-normal font-['PingFang SC'] leading-[34px]"
|
|
|
- >
|
|
|
- <!-- 07.15 08.10 -->
|
|
|
+ <div
|
|
|
+ class="relative box-border aspect-[1.15/1] bg-[length:100%] flex flex-col"
|
|
|
+ :class="customClass"
|
|
|
+ :style="{ backgroundImage: `url(${studyTourItemBg})` }"
|
|
|
+ @click="toDetail"
|
|
|
+ >
|
|
|
+ <div class="flex flex-col pt-2.25 px-6 gap-6">
|
|
|
+ <div class="flex gap-1">
|
|
|
+ <wd-img width="23" height="23" :src="map"></wd-img>
|
|
|
+ <div class="text-white text-base font-normal font-['PingFang SC'] leading-relaxed">
|
|
|
+ 第二站
|
|
|
+ </div>
|
|
|
+ <div class="flex-1"></div>
|
|
|
+ <div class="bg-[#f3f3f3] rounded-[20px] backdrop-blur-[15px] px-4 py-1.5">
|
|
|
+ <div class="text-black/40 text-sm font-normal font-['PingFang SC']">未开始</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="flex gap-4 pt-2">
|
|
|
+ <wd-img
|
|
|
+ width="110"
|
|
|
+ height="88"
|
|
|
+ custom-class="rounded-[10px] overflow-hidden vertical-bottom"
|
|
|
+ src="https://via.placeholder.com/110x88"
|
|
|
+ mode="scaleToFill"
|
|
|
+ />
|
|
|
+ <div class="flex flex-col justify-around">
|
|
|
+ <div class="text-black text-base font-normal font-['PingFang SC'] leading-relaxed">
|
|
|
+ {{ options.title }}
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <div class="text-black/40 text-sm font-normal font-['PingFang SC'] leading-[34px]">
|
|
|
+ 游学时间:
|
|
|
+ </div>
|
|
|
+ <div class="text-black/40 text-sm font-normal font-['PingFang SC'] leading-[34px]">
|
|
|
{{
|
|
|
(dayjs(options.studyStartDate).format('MM.DD'),
|
|
|
dayjs(options.studyEndDate).format('MM.DD'))
|
|
|
}}
|
|
|
</div>
|
|
|
</div>
|
|
|
- <wd-img
|
|
|
- custom-class="w-[110px] h-[88px] left-0 top-0 absolute rounded-[10px] overflow-hidden vertical-bottom"
|
|
|
- src="https://via.placeholder.com/110x88"
|
|
|
- mode="scaleToFill"
|
|
|
- />
|
|
|
- <div
|
|
|
- class="w-[202px] left-[119px] top-0 absolute text-black text-base font-normal font-['PingFang SC'] leading-relaxed"
|
|
|
- >
|
|
|
- <!-- 活动预告 | 日本研学·东京艺术大学设计游学 -->
|
|
|
- {{ options.title }}
|
|
|
- </div>
|
|
|
- <div
|
|
|
- class="left-[119px] top-[64px] absolute text-black/40 text-sm font-normal font-['PingFang SC'] leading-[34px]"
|
|
|
- >
|
|
|
- 游学时间:
|
|
|
+ <div class="flex">
|
|
|
+ <div class="text-black/40 text-sm font-normal font-['PingFang SC'] leading-[34px]">
|
|
|
+ 兑换积分:
|
|
|
+ </div>
|
|
|
+ <div class="text-[#ef4343] text-xl font-normal font-['D-DIN Exp'] leading-[34px]">
|
|
|
+ 12100
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <view class="flex items-center justify-between mb-1.5">
|
|
|
+ <div></div>
|
|
|
+ </div>
|
|
|
+ <div class="flex justify-between">
|
|
|
+ <view
|
|
|
+ class="flex items-center text-black/40 text-sm font-normal font-['PingFang SC'] leading-[34px]"
|
|
|
+ >
|
|
|
+ 距结束还剩
|
|
|
<view
|
|
|
- class="flex items-center text-black/40 text-sm font-normal font-['PingFang SC'] leading-[34px]"
|
|
|
+ class="w-4 h-4 bg-black/90 rounded flex-col justify-center items-center gap-2.5 inline-flex mx-1.5"
|
|
|
>
|
|
|
- 距结束还剩
|
|
|
- <view
|
|
|
- class="w-4 h-4 bg-black/90 rounded flex-col justify-center items-center gap-2.5 inline-flex mx-1.5"
|
|
|
- >
|
|
|
- <view
|
|
|
- class="text-white text-[10px] font-normal font-['PingFang SC'] leading-[10.18px]"
|
|
|
- >
|
|
|
- 05
|
|
|
- </view>
|
|
|
+ <view class="text-white text-[10px] font-normal font-['PingFang SC'] leading-[10.18px]">
|
|
|
+ 05
|
|
|
</view>
|
|
|
- 天
|
|
|
- <div
|
|
|
- class="w-4 h-4 bg-black/90 rounded flex-col justify-center items-center gap-2.5 inline-flex mx-1.5"
|
|
|
- >
|
|
|
- <div
|
|
|
- class="text-white text-[10px] font-normal font-['PingFang SC'] leading-[10.18px]"
|
|
|
- >
|
|
|
- 05
|
|
|
- </div>
|
|
|
+ </view>
|
|
|
+ 天
|
|
|
+ <div
|
|
|
+ class="w-4 h-4 bg-black/90 rounded flex-col justify-center items-center gap-2.5 inline-flex mx-1.5"
|
|
|
+ >
|
|
|
+ <div class="text-white text-[10px] font-normal font-['PingFang SC'] leading-[10.18px]">
|
|
|
+ 05
|
|
|
</div>
|
|
|
- 时
|
|
|
- <div
|
|
|
- class="w-4 h-4 bg-black/90 rounded flex-col justify-center items-center gap-2.5 inline-flex mx-1.5"
|
|
|
- >
|
|
|
- <div
|
|
|
- class="text-white text-[10px] font-normal font-['PingFang SC'] leading-[10.18px]"
|
|
|
- >
|
|
|
- 05
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ 时
|
|
|
+ <div
|
|
|
+ class="w-4 h-4 bg-black/90 rounded flex-col justify-center items-center gap-2.5 inline-flex mx-1.5"
|
|
|
+ >
|
|
|
+ <div class="text-white text-[10px] font-normal font-['PingFang SC'] leading-[10.18px]">
|
|
|
+ 05
|
|
|
</div>
|
|
|
- 分
|
|
|
- </view>
|
|
|
- <tilted-button>立即报名</tilted-button>
|
|
|
+ </div>
|
|
|
+ 分
|
|
|
</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ <tilted-button>立即报名</tilted-button>
|
|
|
+ </div>
|
|
|
+ <div class="flex justify-between border-t-solid border-t-[#f2f2f2] border-t-1 py-4">
|
|
|
+ <div></div>
|
|
|
+ <div
|
|
|
+ class="text-justify text-black/40 text-xs font-normal font-['PingFang SC'] leading-relaxed"
|
|
|
+ >
|
|
|
+ 黄金会员以上等级可报名
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</template>
|