|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <view style="padding: 30rpx;">
|
|
|
+ <view style="padding: 16rpx;">
|
|
|
<view class="list_box">
|
|
|
<view class="item" v-for="(item, index) in list" :key="index">
|
|
|
<image :src="item.coverUrl"></image>
|
|
@@ -10,7 +10,7 @@
|
|
|
<view class="del_icon"><u-icon name="minus-circle-fill" color="#EB4D3D" size="40" @click="delItem(index)"></u-icon></view>
|
|
|
</view>
|
|
|
<view class="item" style="vertical-align: top;">
|
|
|
- <view class="item_add" @click="openSel"><u-icon name="plus-circle-fill" color="#32467B" size="32"></u-icon></view>
|
|
|
+ <view class="item_add" @click="openSel"><u-icon name="plus-circle-fill" color="#007AFF" size="32"></u-icon></view>
|
|
|
<view style="color:#999;text-align: center;">添加网课</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -68,39 +68,47 @@
|
|
|
</u-popup>
|
|
|
<u-popup v-model="show" mode="bottom">
|
|
|
<view class="popup_box">
|
|
|
- <view class="popup_title">
|
|
|
- <u-row>
|
|
|
- <u-col span="6"><view class="title_r">我的课程</view></u-col>
|
|
|
- <u-col span="3" offset="3"><view class="title_l" @click="submit">确认</view></u-col>
|
|
|
- </u-row>
|
|
|
+ <view>
|
|
|
+ <view class="line1"></view>
|
|
|
+ <view class="grade">选择课程</view>
|
|
|
+ <u-line></u-line>
|
|
|
</view>
|
|
|
<view class="popup_list" v-if="list2.length !== 0">
|
|
|
- <view class="popup_item" v-for="(item, index) in list2" :key="index">
|
|
|
-
|
|
|
- <u-checkbox
|
|
|
- :disabled="item.disabled"
|
|
|
- @change="checkboxChange"
|
|
|
- shape="circle"
|
|
|
- active-color="#32467B"
|
|
|
- v-model="item.checked"
|
|
|
- :key="index"
|
|
|
- :name="item.goodsId"
|
|
|
- >
|
|
|
- <view style="display: flex;align-items: center;">
|
|
|
- <view style="display: flex;align-items: center;"><image :src="item.coverUrl" style="width: 278rpx;height: 134rpx;"></image></view>
|
|
|
- <view style="margin: 30rpx;">
|
|
|
- <view>{{ item.goodsName }}</view>
|
|
|
- <view style="color:#999;">{{ item.secAllNum }}节</view>
|
|
|
+ <scroll-view class="list_in" scroll-y="true">
|
|
|
+ <view class="popup_item" v-for="(item, index) in list2" :key="index">
|
|
|
+
|
|
|
+ <u-checkbox
|
|
|
+ :disabled="item.disabled"
|
|
|
+ @change="checkboxChange"
|
|
|
+ shape="circle"
|
|
|
+ active-color="#007AFF"
|
|
|
+ v-model="item.checked"
|
|
|
+ :key="index"
|
|
|
+ :name="item.goodsId"
|
|
|
+ >
|
|
|
+ <view class="course_item" :class="{selected:item.checked}">
|
|
|
+ <view style="display: flex;align-items: center;"><image :src="item.coverUrl" style="width: 278rpx;height: 134rpx;"></image></view>
|
|
|
+ <view style="margin: 16rpx;">
|
|
|
+ <view>{{ item.goodsName }}</view>
|
|
|
+ <view style="color:#999;">{{ item.secAllNum }}节</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- </u-checkbox>
|
|
|
-
|
|
|
- </view>
|
|
|
+ </u-checkbox>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </scroll-view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view class="popup_list" v-else><u-empty text="请前往购买课程" mode="list"></u-empty></view>
|
|
|
+
|
|
|
+ <view class="submit_wrap">
|
|
|
+ <view class="title_l" @click="submit">确认</view>
|
|
|
+
|
|
|
</view>
|
|
|
- <view v-else><u-empty text="请前往购买课程" mode="list"></u-empty></view>
|
|
|
</view>
|
|
|
</u-popup>
|
|
|
<view @click="resultForm" class="submit_btn">确认计划</view>
|
|
|
+
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -408,7 +416,7 @@ export default {
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
</style>
|
|
|
-<style scope>
|
|
|
+<style scope lang="scss">
|
|
|
.dis_ss {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
@@ -440,34 +448,60 @@ export default {
|
|
|
}
|
|
|
.form {
|
|
|
padding: 0 16rpx !important;
|
|
|
- margin-top: 30rpx;
|
|
|
+ margin-top: 16rpx;
|
|
|
}
|
|
|
input {
|
|
|
text-align: right;
|
|
|
}
|
|
|
.popup_item {
|
|
|
width: 100%;
|
|
|
- /* height: 182rpx; */
|
|
|
- background: #ffffff;
|
|
|
- box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
|
|
|
border-radius: 32rpx;
|
|
|
- margin: 20rpx 0;
|
|
|
- padding: 10rpx;
|
|
|
+ margin: 10rpx 0;
|
|
|
+ padding: 0 20rpx;
|
|
|
display: flex;
|
|
|
+
|
|
|
+ .course_item {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ width:660rpx;
|
|
|
+ padding:26rpx;
|
|
|
+
|
|
|
+ &.selected {
|
|
|
+ background:#EBF5FF;
|
|
|
+ border-radius: 24rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
.popup_list {
|
|
|
- height: 500rpx;
|
|
|
+ position:relative;
|
|
|
+ flex:1;
|
|
|
padding: 0 20rpx;
|
|
|
+
|
|
|
+ .list_in {
|
|
|
+ position: absolute;
|
|
|
+ left:0;
|
|
|
+ top:0;
|
|
|
+ width:100%;
|
|
|
+ height:100%;
|
|
|
+ overflow: scroll;
|
|
|
+ }
|
|
|
}
|
|
|
-.title_l {
|
|
|
- width: 88rpx;
|
|
|
- height: 48rpx;
|
|
|
- background: #32467b;
|
|
|
- border-radius: 16rpx;
|
|
|
- font-size: 28rpx;
|
|
|
- color: #ffffff;
|
|
|
- text-align: center;
|
|
|
- line-height: 48rpx;
|
|
|
+.submit_wrap {
|
|
|
+ background:#fff;
|
|
|
+ padding:18rpx 0;
|
|
|
+
|
|
|
+
|
|
|
+ .title_l {
|
|
|
+ margin:0 auto;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 64rpx;
|
|
|
+ width: 200rpx;
|
|
|
+ height: 64rpx;
|
|
|
+ background: linear-gradient(0deg, #015EEA, #00C0FA);
|
|
|
+ border-radius: 32rpx;
|
|
|
+ color:#fff;
|
|
|
+ font-size: 30rpx;
|
|
|
+ }
|
|
|
}
|
|
|
.title_r {
|
|
|
font-size: 30rpx;
|
|
@@ -475,12 +509,25 @@ input {
|
|
|
font-weight: bold;
|
|
|
color: #2f4379;
|
|
|
}
|
|
|
-.popup_title {
|
|
|
- width: 100%;
|
|
|
- margin: 40rpx;
|
|
|
+.grade {
|
|
|
+ font-size: 24rpx;
|
|
|
+ color: #999999;
|
|
|
+ margin: 0 auto;
|
|
|
+ margin: 10rpx 0;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+.line1 {
|
|
|
+ width: 80rpx;
|
|
|
+ height: 8rpx;
|
|
|
+ background: #999999;
|
|
|
+ border-radius: 4rpx;
|
|
|
+ margin: 0 auto;
|
|
|
+ margin-top: 15rpx;
|
|
|
}
|
|
|
.popup_box {
|
|
|
- height: 600rpx;
|
|
|
+ height: 680rpx;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
}
|
|
|
.del_icon {
|
|
|
position: absolute;
|
|
@@ -514,12 +561,11 @@ input {
|
|
|
.list_box {
|
|
|
width: 100%;
|
|
|
background: #ffffff;
|
|
|
- box-shadow: 0rpx 0rpx 1rpx 4rpx rgba(145, 156, 178, 0.1);
|
|
|
border-radius: 32rpx;
|
|
|
padding: 20rpx 0;
|
|
|
}
|
|
|
|
|
|
page {
|
|
|
- background: #ffffff;
|
|
|
+ background:rgba(234,238,241,1)
|
|
|
}
|
|
|
</style>
|