mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-07 09:56:45 +08:00
feat:修改图片问题
This commit is contained in:
@@ -129,12 +129,9 @@
|
|||||||
<div class="good">
|
<div class="good">
|
||||||
<img
|
<img
|
||||||
v-if="item.praised"
|
v-if="item.praised"
|
||||||
src="../../assets/image/discuss/elsedianzan1.png"
|
src="../assets/image/discuss/elsedianzan1.png"
|
||||||
/>
|
|
||||||
<img
|
|
||||||
v-else
|
|
||||||
src="../../assets/image/discuss/elsedianzan.png"
|
|
||||||
/>
|
/>
|
||||||
|
<img v-else src="../assets/image/discuss/elsedianzan.png" />
|
||||||
</div>
|
</div>
|
||||||
<div class="gocount">{{ item.praiseNum || 0 }}</div>
|
<div class="gocount">{{ item.praiseNum || 0 }}</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -190,12 +187,12 @@
|
|||||||
<img
|
<img
|
||||||
v-if="itemc.praised"
|
v-if="itemc.praised"
|
||||||
class="gimg"
|
class="gimg"
|
||||||
src="../../assets/image/discuss/elsedianzan1.png"
|
src="../assets/image/discuss/elsedianzan1.png"
|
||||||
/>
|
/>
|
||||||
<img
|
<img
|
||||||
v-else
|
v-else
|
||||||
class="gimg"
|
class="gimg"
|
||||||
src="../../assets/image/discuss/elsedianzan.png"
|
src="../assets/image/discuss/elsedianzan.png"
|
||||||
/>
|
/>
|
||||||
<div class="gcou">
|
<div class="gcou">
|
||||||
{{ itemc.praiseNum || 0 }}
|
{{ itemc.praiseNum || 0 }}
|
||||||
@@ -538,7 +535,7 @@ function send() {
|
|||||||
width: 18px;
|
width: 18px;
|
||||||
height: 18px;
|
height: 18px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
background-image: url(../../assets/image/discuss/close.png);
|
background-image: url(../assets/image/discuss/close.png);
|
||||||
background-size: 100%;
|
background-size: 100%;
|
||||||
}
|
}
|
||||||
.btns {
|
.btns {
|
||||||
|
|||||||
@@ -576,9 +576,12 @@ function submitReplayComment() {
|
|||||||
for (let i = 0; i < commontList.value.length; i++) {
|
for (let i = 0; i < commontList.value.length; i++) {
|
||||||
if (commontList.value[i].id === replayComment.value.pid) {
|
if (commontList.value[i].id === replayComment.value.pid) {
|
||||||
let obj = {
|
let obj = {
|
||||||
|
id: res.data,
|
||||||
studentAvatar: userInfo.value.avatar,
|
studentAvatar: userInfo.value.avatar,
|
||||||
studentName: userInfo.value.realName,
|
studentName: userInfo.value.realName,
|
||||||
content: replayComment.value.content,
|
content: replayComment.value.content,
|
||||||
|
praised: false,
|
||||||
|
praiseNum: 0,
|
||||||
};
|
};
|
||||||
commontList.value[i].children.push(obj);
|
commontList.value[i].children.push(obj);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user