123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- <template>
- <view class="teaching_case">
- <view class="img">
- <!-- <slot name="img"></slot> -->
- <image src="../../static/activity/bg2.png" mode="aspectFill"></image>
- </view>
-
- <view class="right">
- <view class="title">
- <view class="tag">类型</view>
- <text>这里是活动标题标题标题</text>
- </view>
-
- <view class="introduce">
- 活动描述活动描述活动描述活动描述活动描述活动描述活动描述
- </view>
-
- <view class="operate">
- <view class="left">
- <view class="money">¥188</view>
- <view class="person">已报名123人</view>
- </view>
- <button class="btn">立即报名</button>
- </view>
- </view>
- </view>
-
- </template>
- <script>
- export default {
- name:"activity-case",
- data() {
- return {
-
- };
- }
- }
- </script>
- <style lang="scss">
- .teaching_case{
- display: flex;
- justify-content: space-between;
- margin-bottom: 20px;
- // padding-right: 20px;
- padding: 0 15px;
-
- .img{
- width: 180rpx;
- height: 180rpx;
- image{
- width: 100%;
- height:100%;
- }
- }
- .right{
- padding-left: 15px;
- flex: 1;
- width: 100rpx;
- display: flex;
- flex-direction: column;
- align-content: flex-end ;
- .title{
- display: flex;
- margin-bottom: 5px;
- .tag{
- border: 1px #00b2b6 solid;
- font-size: 12px;
- display: flex;
- white-space: nowrap;
- justify-content: center;
- align-items: center;
- padding: 2px 4px;
- border-radius: 3px;
- margin-right: 10rpx;
- color: #00b2b6;
- }
- text{
- overflow: hidden;
- text-overflow:ellipsis;
- white-space: nowrap;
- }
-
- }
- .introduce{
- font-size: 16px;
- color: #a7a7a7;
- // padding: 20rpx 0;
- overflow: hidden;
- text-overflow:ellipsis;
- white-space: nowrap;
- }
- .operate{
- display: flex;
- justify-content: space-between;
- align-items: flex-end;
- .left{
- display: flex;
- justify-content: space-between;
- width: 260rpx;
- .money{
- color: #FFA338 ;
- font-weight: bold;
- font-size: 36rpx;
- }
- .person{
- padding-top: 10rpx;
- font-size: 24rpx;
-
- }
- }
- .btn{
- width: 80px;
- font-size: 12px;
- background-color: #3081e8;
- color: #fff;
- border-radius: 30px;
- margin: 0;
- float: right;
- margin-top: 10px;
- }
- }
- }
- }
- </style>
|