123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- <template>
- <view class="content">
- <u-tabs :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
- <view class="train" v-for="(item,index) in course" :key="index">
- <view class="train_name">
- <text class="name">懒懒熊</text>
- <text class="course_type">培训班</text>
- </view>
- <text class="courseName">{{tran_courseName}}</text>
- <view class="train_row">
- <text class="lable">开班时间</text>
- <text class="num">8月20号 10:00 </text>
- </view>
- <view class="train_row">
- <text class="lable">结束时间</text>
- <text class="num">9月18号</text>
- </view>
- <view class="time_row">
- <view class="left">
- <text class="lable">上课时间:</text>
- <text class="time">上午 10:00-12:00</text>
- </view>
- <view class="right">
- <text class="time">下午 10:00-12:00</text>
- </view>
- </view>
-
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- course:[1,2],
- tran_courseName:'儿童六一蛙泳培训课'
- }
- },
- onLoad() {
-
-
- },
- methods: {
-
- },
- }
- </script>
- <style lang="scss">
- page{
- background-color: #F5F5F5;
- .content{
- .train{
- width: 351px;
- height: 160px;
- margin: 12px auto 0;
- background-color: #FFFFFF;
- color: #333333;
- padding: 12px;
- .train_name{
- display: flex;
- justify-content: space-between;
- align-items: center;
- .name{
- font-size: 17px;
- font-weight: bold;
- }
- .course_type{
- background-color: #DCE7FF;
- width: 54px;
- height: 24px;
- line-height: 24px;
- color: #4A80FF;
- font-size: 14px;
- text-align: center;
- }
- }
- .courseName{
- display: inline-block;
- color: #999999;
- font-size: 14px;
- margin-top: 6px;
- }
- .train_row{
- margin-top: 6px;
- .lable{
- width: 55px;
- height: 21px;
- display: inline-block;
- line-height: 21px;
- text-align: center;
- background-color: #F5F5F5;
- font-size: 12px;
- margin-right: 7px;
- }
- .num{
- font-size: 14px;
- font-weight: bold;
- // color: #FF4600;
- }
- }
- .time_row{
- margin-top: 6px;
- display: flex;
- justify-content: space-between;
- .lable{
- display: inline-block;
- width: 60px;
- height: 21px;
- line-height: 21px;
- text-align: center;
- font-size: 12px;
- // margin-right: 7px;
- // box-sizing: content-box;
- }
- .time{
- font-size: 14px;
- font-weight: bold;
- }
- }
- }
- }
- }
- </style>
|