123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- <template>
- <div class="myActivities">
- <div class="actItem" v-for="item in actList" @click="toDetail(item)">
- <div class="actTop">
- <img src="https://www.idea-co-sf.com/gardenProduct/image/img1.png" class="actImg">
- <div class="actRight">
- <span class="actTitle">{{ item.name }}</span>
- <span class="actTime2">报名时间:2024/02/01~2024/02/16</span>
- <span class="actTime2">报名人数:23</span>
- </div>
- </div>
- <div class="actTime">
- <span class="time">开始时间:<span style="color: #666666">{{item.time}}</span></span>
- <span :class="item.type==='已结束'?'yjs':'dks'">{{item.type}}</span>
- </div>
- </div>
- </div>
- </template>
- <script>
- export default {
- name: "myActivities",
- data(){
- return{
- actList:[
- {name:'互联网私募如何入门?',time:'2021-1-21 13:00',type:'待开始'},
- {name:'公募基金中的大数据挖掘',time:'2021-1-21 13:00',type:'待开始'},
- {name:'年度小艾杯篮球赛开始啦',time:'2021-1-21 13:00',type:'已结束'},
- ]
- }
- },
- methods:{
- toDetail(){
- uni.navigateTo({
- url:"/pages/subPackages/minePages/registrationDetails",
- })
- }
- }
- }
- </script>
- <style lang="scss">
- .myActivities{
- padding: 24rpx 32rpx;
- .actItem{
- padding: 32rpx 0 22rpx 0;
- background: white;
- border-radius: 16rpx;
- margin-bottom: 24rpx;
- .actTop{
- display: flex;
- align-items: center;
- padding: 0 24rpx;
- box-sizing: border-box;
- .actImg{
- width: 200rpx;
- height: 144rpx;
- }
- }
- .actRight{
- display: flex;
- flex-direction: column;
- margin-left: 16rpx;
- .actTitle{
- color:#18172A;
- font-size: 32rpx;
- margin-bottom: 20rpx;
- width: 380rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .actTime2{
- font-size: 24rpx;
- color: #888888;
- margin: 4rpx 0;
- }
- }
- .actTime{
- margin-top: 24rpx;
- padding: 24rpx 32rpx 0 32rpx;
- display: flex;
- justify-content: space-between;
- border-top: 1px solid #E8EDF5;
- align-items: center;
- .time{
- color: #222222;
- font-size: 28rpx;
- }
- .yjs{
- background: rgba(163, 169, 177, 0.20);
- color: #888888;
- font-size: 28rpx;
- border-radius: 4rpx;
- width: 112rpx;
- height: 48rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .dks{
- background: rgba(3, 101, 249, 0.20);
- color: rgba(3, 101, 249, 1);
- font-size: 28rpx;
- border-radius: 4rpx;
- width: 112rpx;
- height: 48rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- }
- }
- }
- </style>
|