diff --git a/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue b/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue index be93015e..a3d4a28e 100644 --- a/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue +++ b/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue @@ -38,7 +38,7 @@
- +
{{ item.name }}
diff --git a/src/project/huizhili/AppCooperationPropaganda/fodderList.vue b/src/project/huizhili/AppCooperationPropaganda/fodderList.vue index 3e8dd182..49e4b634 100644 --- a/src/project/huizhili/AppCooperationPropaganda/fodderList.vue +++ b/src/project/huizhili/AppCooperationPropaganda/fodderList.vue @@ -3,27 +3,67 @@ -
-
-
-
-
{{ item.title }}
-
{{ item.content }}
+
+
+ +
+
{{ item.title }}
+
{{ item.content }}
+
+ +
+
+ +
+
+
{{ item.title }}
+
{{ item.fileSizeStr }}
-
-
- - + +
+
+ +
+
+
{{ item.title }}
+
www.baidu.com
+
+ +
+
+ +
+
+
{{ item.title }}
+
{{ item.fileSizeStr }}
+
+
+ +
+
+ +
+
+
{{ item.title }}
+
{{ item.fileSizeStr }}
+
+
+ +
+
+ +
+
+
百度一下你就知道
+ +
+
+
+
+ +
@@ -61,17 +101,28 @@ export default { this.list = res.data.records.map(e=> { return { ...e, - isChecked: this.checkedList.map(i=> i.id==e.id), + isChecked: this.checkedList.find(i=> i.id==e.id), } }) } }) }, + itemCheck(e) { + e.isChecked = !!!e.isChecked + if (e.isChecked) { + this.checkedList.push(e) + } else { + let index = this.checkedList.findIndex(item=> item.id==e.id) + index>=0 && this.checkedList.splice(index,1) + } + uni.setStorageSync('checkedList', this.checkedList) + }, submit() { + // this.checkList = this.list.map() if (!this.checkedList.length) { return this.$u.toast(`请选择${this.typeArr[this.mstType]}`) } - uni.$emit("fodder", [this.selected]) + uni.$emit("fodder", [this.checkedList]) uni.setStorageSync('checkedList', this.checkedList) uni.navigateBack() } @@ -99,69 +150,85 @@ export default { .fodderList { padding-bottom: 120px; box-sizing: border-box; - .card-box { + + .card { + background: #fff; + padding: 24px 32px; + box-sizing: border-box; + margin-top: 24px; + display: flex; + align-items: center; + width: 100%; background: #fff; - padding: 24px 32px; - box-sizing: border-box; - margin-top: 24px; - .card { - display: flex; - align-items: center; - width: 100%; - .left { - width: calc(100% - 50px); - height: auto; - background: #f2f2f2; - border-radius: 12px; - padding: 16px; - box-sizing: border-box; + .left { + width: calc(100% - 50px); + height: auto; + background: #f2f2f2; + border-radius: 12px; + padding: 16px; + box-sizing: border-box; - .title { - font-size: 32px; - font-weight: 600; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } + .title { + font-size: 32px; + font-weight: 600; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } - .info { - text-overflow: -o-ellipsis-lastline; - overflow: hidden; - text-overflow: ellipsis; - display: -webkit-box; - -webkit-line-clamp: 2; - line-clamp: 2; - -webkit-box-orient: vertical; - color: #999; - } + .info { + text-overflow: -o-ellipsis-lastline; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; + line-clamp: 2; + -webkit-box-orient: vertical; + color: #999; + } - .mar-top { - margin-top: auto; - } - .files { - display: flex; + .mar-top { + margin-top: auto; + } + .files { + display: flex; - .pic { - width: 100px; - height: 100px; - img { - width: 100%; - height: 100%; - } - } - .files-r { + .pic { + width: 100px; + height: 100px; + margin-right: 20px; + img { width: 100%; + height: 100%; } } + + .pics { + width: 140px; + height: 140px; + margin-right: 20px; + img { + width: 100%; + height: 100%; + } + } + + .pic-r { + width: calc(100% - 160px); + } + + .files-r { + width: calc(100% - 120px); + } } - .right { - text-align: right; - width: 50px; - img { - width: 40px; - height: 40px; - } + } + .right { + text-align: right; + width: 50px; + img { + width: 40px; + height: 40px; } } }