123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <template>
- <view class="content">
- <view class="per_course" v-for="(item,index) in course" :key="index">
- <view class="per_name">
- <text class="name">懒懒熊</text>
- <text class="course_type">私教课</text>
- </view>
- <view class="per_row">
- <text class="lable">总共预约</text>
- <text class="num">9次</text>
- </view>
- <view class="per_row">
- <text class="lable">剩余预约</text>
- <text class="num">9次</text>
- </view>
- <view class="time_row">
- <text class="lable">到期时间:</text>
- <text class="time">2021.09.12</text>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- course:[1,2],
- }
- },
- onLoad() {
-
-
- },
- methods: {
-
- },
- }
- </script>
- <style lang="scss">
- page{
- background-color: #F5F5F5;
- .content{
- .per_course{
- width: 351px;
- margin: 12px auto 0;
- background-color: #FFFFFF;
- color: #333333;
- padding: 12px;
- .per_name{
- display: flex;
- justify-content: space-between;
- align-items: center;
- .name{
- font-size: 17px;
- font-weight: bold;
- }
- .course_type{
- background-color: #E5FAF3;
- width: 54px;
- height: 24px;
- line-height: 24px;
- color: #00A421;
- font-size: 14px;
- text-align: center;
- }
- }
- .per_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: 16px;
- color: #FF4600;
- }
- }
- .time_row{
- margin-top: 6px;
- .lable{
- display: inline-block;
- width: 60px;
- height: 21px;
- line-height: 21px;
- text-align: center;
- font-size: 12px;
- }
- .time{
- font-size: 14px;
- font-weight: bold;
- }
- }
- }
- }
- }
- </style>
|