洋浦学校八大中心 德育管理前端

init
gongdi 2 years ago
parent 634346af0f
commit 5070a0b4bd

@ -99,23 +99,23 @@
<div ref="imgs" class="classManage-pic-pic" v-if="classCulture.length != 0"> <div ref="imgs" class="classManage-pic-pic" v-if="classCulture.length != 0">
<div class="classCulture"> <div class="classCulture">
<div v-if="classCulture[0]" <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)"/> <img-preview :imgObj="JSON.parse(classCulture[0].attachment_json)"/>
</div> </div>
<div v-if="classCulture[1]" <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)"/> <img-preview :imgObj="JSON.parse(classCulture[1].attachment_json)"/>
</div> </div>
<div v-if="classCulture[2]" <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)"/> <img-preview :imgObj="JSON.parse(classCulture[2].attachment_json)"/>
</div> </div>
<div v-if="classCulture[3]" <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)"/> <img-preview :imgObj="JSON.parse(classCulture[3].attachment_json)"/>
</div> </div>
<div v-if="classCulture[4]" <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)"/> <img-preview :imgObj="JSON.parse(classCulture[4].attachment_json)"/>
</div> </div>
<div v-if="classCulture[5]" <div v-if="classCulture[5]"
@ -426,14 +426,14 @@
params: param, params: param,
method: "post", method: "post",
}], (result) => { }], (result) => {
// console.log('', result)
this.spinning = false; this.spinning = false;
let res = JSON.parse(result[0].data.result) let res = JSON.parse(result[0].data.result)
if (res.length != 0) { if (res.length != 0) {
res.forEach(item => { let arr = JSON.parse(res)
arr.forEach(item => {
item.attachment_json = item.attachment_json.substr(1) item.attachment_json = item.attachment_json.substr(1)
}) })
this.classCulture = res this.classCulture = arr
} else { } else {
this.classCultureEmpty = true this.classCultureEmpty = true
} }
@ -473,6 +473,7 @@
method: "post", method: "post",
}], (result) => { }], (result) => {
// console.log('', result) // console.log('', result)
this.spinning = false;
if (result[0].data.result.length != 0) { if (result[0].data.result.length != 0) {
let res = JSON.parse(result[0].data.result) let res = JSON.parse(result[0].data.result)
res.forEach(item => { res.forEach(item => {
@ -490,7 +491,7 @@
} else { } else {
this.factualNewsEmpty = true this.factualNewsEmpty = true
} }
this.spinning = false;
}) })
}, },
showInfo(item) { showInfo(item) {

Loading…
Cancel
Save