123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202 |
- <template>
- <view class="CourseManagement">
- <view class="Course-list">
- <view class="Course-list-item" v-for="(item, index) in courseListData" :key="index">
- <view class="Course-left">
- <image src="../../../static/image/course/img1.png" mode=""></image>
- </view>
- <view class="Course-right">
- <view class="title">
- <view class="title-content">
- {{item.title}}
- </view>
- <view class="title-money">
- ¥ {{item.money}}
- </view>
- </view>
- <view class="Course-time">
- <text class="Course-lesson-time">{{item.time}}</text>
- <text class="spacer">|</text>
- <text class="Course-lesson-week">{{item.times}}</text>
- </view>
- <view class="Course-btn">
- <view class="cancel-btn" v-show="true">
- 我要退款
- </view>
- <view class="submit-btn">
- 立即上课
- </view>
- </view>
- </view>
- </view>
- <view class="placeholder-view"></view>
- </view>
- </view>
- </template>
- <script>
- export default {
- name:'CourseManagement',
- data() {
- return {
- courseListData:[
- {
- img:'../../../static/image/course/img1.png',
- title: '4-6岁幼儿兴趣班',
- money: '30',
- time:'共7课时',
- times: '周二、周四上课',
- content: '适合4岁至6岁的小朋友学习开发运动潜力',
- },
- {
- img:'../../../static/image/course/img2.png',
- title: '7-9岁幼儿兴趣班',
- money: '40',
- time:'共7课时',
- times: '周二、周四上课',
- content: '适合4岁至6岁的小朋友学习开发运动潜力',
- },
- {
- img:'../../../static/image/course/img3.png',
- title: '9-12岁幼儿兴趣班',
- money: '60',
- time:'共7课时',
- times: '周二、周四上课',
- content: '适合4岁至6岁的小朋友学习开发运动潜力',
- },
- {
- img:'../../../static/image/course/img4.png',
- title: '12-15岁幼儿兴趣班',
- money: '70',
- time:'共7课时',
- times: '周二、周四上课',
- content: '适合4岁至6岁的小朋友学习开发运动潜力',
- },
-
- ],
- }
- },
- methods: {
-
- }
- }
- </script>
- <style lang="scss">
- .placeholder-view{
- width: 100%;
- height: 100upx;
- }
- .Course-list-item{
- width: 100%;
- height: 295upx;
- margin: 10upx 0;
- padding: 20upx 15upx;
- background: #FFFFFF;
- display: flex;
- align-items: center;
- justify-content: center;
- box-shadow:0px 7px 8px 0px rgba(237,237,237,0.36);
- }
- .Course-left{
- // width: 40%;
- width: 219upx;
- height: 219upx;
- margin-right: 35upx;
- image{
- width: 100%;
- height: 100%;
- }
- }
- .Course-right{
- width: 60%;
- .title{
- width: 100%;
- height: 40upx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 27upx;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- .title-content,.title-money{
- font-size:30upx;
- font-family:Source Han Sans CN;
- font-weight:400;
- color:rgba(72,72,72,1);
- }
- .title-content{
- width: 70%;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- }
- .title-money{
- width: 30%;
- color: #FF1111;
- text-align: right;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- }
- }
-
- .Course-time{
- width: 100%;
- height: 60upx;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- .Course-lesson-time,.Course-lesson-week{
- text-align: center;
- font-size:26upx;
- font-family:Source Han Sans CN;
- font-weight:400;
- color:rgba(97,97,97,1);
- }
- .spacer{
- text-align: center;
- font-size:26upx;
- font-family:Source Han Sans CN;
- font-weight:400;
- color:rgba(97,97,97,1);
- margin: 0 25upx;
- }
- }
- .Course-btn{
- width: 100%;
- height: 60upx;
- margin-top: 35upx;
- display: flex;
- align-items: center;
- justify-content: flex-end;
- .cancel-btn{
- width: 177upx;
- height: 59upx;
- line-height: 57upx;
- font-size: 30upx;
- font-family: Source Han Sans CN;
- font-weight: 400;
- color: rgba(129,129,129,1);
- border: 1px solid #A0A0A0;
- text-align: center;
- border-radius: 30upx;
- margin-right: 34upx;
- }
- .submit-btn{
- width: 177upx;
- height: 59upx;
- line-height: 57upx;
- font-size: 30upx;
- font-family: Source Han Sans CN;
- font-weight: 400;
- color: #FFFFFF;
- background: #F09A21;
- border: 1px solid #F09A21;
- text-align: center;
- border-radius: 30upx;
- }
- }
- }
- </style>
|