|
@@ -2,10 +2,12 @@
|
|
|
<view style="padding: 16rpx;">
|
|
|
<view class="list_box">
|
|
|
<view class="item" v-for="(item, index) in list" :key="index">
|
|
|
- <image :src="$method.splitImgHost(item.coverUrl)"></image>
|
|
|
- <text>{{ item.goodsName }}</text>
|
|
|
- <text style="color:#999;margin-left:12rpx;">{{ item.secAllNum }}节</text>
|
|
|
- <view class="del_icon"><u-icon name="close" color="#fff" size="20" @click="delItem(index, item.goodsId)"></u-icon></view>
|
|
|
+ <image :src="item.coverUrl"></image>
|
|
|
+ <view style="height: 80rpx;overflow: hidden;">
|
|
|
+ <text >{{ item.goodsName }}</text>
|
|
|
+ <text style="color:#999;margin-left:12rpx;">{{ item.secAllNum }}节</text>
|
|
|
+ </view>
|
|
|
+ <view class="del_icon"><u-icon name="close" color="#fff" size="20" @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="#007AFF" size="32"></u-icon></view>
|
|
@@ -85,7 +87,7 @@
|
|
|
:name="item.goodsId"
|
|
|
>
|
|
|
<view class="course_item" :class="{selected:item.checked}">
|
|
|
- <view style="display: flex;align-items: center;"><image :src="$method.splitImgHost(item.coverUrl)" style="width: 278rpx;height: 134rpx;"></image></view>
|
|
|
+ <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>
|
|
@@ -199,6 +201,7 @@ export default {
|
|
|
for (let i = 0; i < res.data.rows.length; i++) {
|
|
|
res.data.rows[i].checked = false;
|
|
|
res.data.rows[i].disabled = false;
|
|
|
+ res.data.rows[i].coverUrl = self.$method.splitImgHost(res.data.rows[i].coverUrl);
|
|
|
}
|
|
|
}
|
|
|
self.list2 = res.data.rows;
|
|
@@ -311,6 +314,9 @@ export default {
|
|
|
this.form.endDate = this.$method.timestampToTime(res.data.data.endTime);
|
|
|
this.index_review = res.data.data.studyDay - 1;
|
|
|
this.form.week = res.data.data.studyCount;
|
|
|
+ res.data.data.goodsVos.forEach(item => {
|
|
|
+ item.coverUrl = this.$method.splitImgHost(item.coverUrl)
|
|
|
+ })
|
|
|
this.list = res.data.data.goodsVos;
|
|
|
this.businessId = res.data.data.goodsVos[0].businessId;
|
|
|
this.form.category = this.list[0].educationName + '-' + this.list[0].projectName + '-' + this.list[0].businessName;
|