|
|
|
@ -99,23 +99,23 @@
|
|
|
|
|
<div ref="imgs" class="classManage-pic-pic" v-if="classCulture.length != 0">
|
|
|
|
|
<div class="classCulture">
|
|
|
|
|
<div v-if="classCulture[0]"
|
|
|
|
|
style="position:absolute;display:inline-block;width: 165px;height: 120px; margin-bottom: 10px;margin-right: 10px;left: 0;top: 0;">
|
|
|
|
|
style="position:absolute;display:inline-block;width: 85px;height: 60px; bottom: 0;right: 0;">
|
|
|
|
|
<img-preview :imgObj="JSON.parse(classCulture[0].attachment_json)"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="classCulture[1]"
|
|
|
|
|
style="position:absolute;display:inline-block;width: 95px;height: 55px;margin-bottom: 10px; top: 0;right: 0;">
|
|
|
|
|
style="position:absolute;display:inline-block;width: 85px;height: 60px; bottom: 0;right: 0;">
|
|
|
|
|
<img-preview :imgObj="JSON.parse(classCulture[1].attachment_json)"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="classCulture[2]"
|
|
|
|
|
style="position:absolute;display:inline-block;width: 95px;height: 55px; right: 0;top: 64px;">
|
|
|
|
|
style="position:absolute;display:inline-block;width: 85px;height: 60px; bottom: 0;right: 0;">
|
|
|
|
|
<img-preview :imgObj="JSON.parse(classCulture[2].attachment_json)"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="classCulture[3]"
|
|
|
|
|
style="position:absolute;display:inline-block;width: 85px;height: 60px;left: 0;bottom: 0;">
|
|
|
|
|
style="position:absolute;display:inline-block;width: 85px;height: 60px; bottom: 0;right: 0;">
|
|
|
|
|
<img-preview :imgObj="JSON.parse(classCulture[3].attachment_json)"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="classCulture[4]"
|
|
|
|
|
style="position:absolute;display:inline-block;width: 85px;height: 60px; bottom: 0;left: 34%;">
|
|
|
|
|
style="position:absolute;display:inline-block;width: 85px;height: 60px; bottom: 0;right: 0;">
|
|
|
|
|
<img-preview :imgObj="JSON.parse(classCulture[4].attachment_json)"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="classCulture[5]"
|
|
|
|
@ -426,14 +426,14 @@
|
|
|
|
|
params: param,
|
|
|
|
|
method: "post",
|
|
|
|
|
}], (result) => {
|
|
|
|
|
// console.log('班级文化', result)
|
|
|
|
|
this.spinning = false;
|
|
|
|
|
let res = JSON.parse(result[0].data.result)
|
|
|
|
|
if (res.length != 0) {
|
|
|
|
|
res.forEach(item => {
|
|
|
|
|
let arr = JSON.parse(res)
|
|
|
|
|
arr.forEach(item => {
|
|
|
|
|
item.attachment_json = item.attachment_json.substr(1)
|
|
|
|
|
})
|
|
|
|
|
this.classCulture = res
|
|
|
|
|
this.classCulture = arr
|
|
|
|
|
} else {
|
|
|
|
|
this.classCultureEmpty = true
|
|
|
|
|
}
|
|
|
|
@ -473,6 +473,7 @@
|
|
|
|
|
method: "post",
|
|
|
|
|
}], (result) => {
|
|
|
|
|
// console.log('时事新闻', result)
|
|
|
|
|
this.spinning = false;
|
|
|
|
|
if (result[0].data.result.length != 0) {
|
|
|
|
|
let res = JSON.parse(result[0].data.result)
|
|
|
|
|
res.forEach(item => {
|
|
|
|
@ -490,7 +491,7 @@
|
|
|
|
|
} else {
|
|
|
|
|
this.factualNewsEmpty = true
|
|
|
|
|
}
|
|
|
|
|
this.spinning = false;
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
showInfo(item) {
|
|
|
|
|