main
QMZ 1 month ago
parent 8efd2b19e6
commit 926575d6e6

@ -19,8 +19,8 @@
</div> </div>
<div style="right: -50%;position: relative;"> <div style="right: -20%;position: relative;">
<button class="deletebutto" @click="openModal" v-if="this.userid===this.postuserid&&!showModal"> <button class="deletebutto" @click="openModal" v-if="this.userid==this.postuserid&&!showModal">
× ×
删除 删除

@ -136,8 +136,8 @@
return; return;
} }
if(this.file)
{
try { try {
const formData = new FormData(); const formData = new FormData();
@ -155,6 +155,7 @@
console.log(error); console.log(error);
return; return;
} }
}
const newPost = { const newPost = {
userid: getUserId(), userid: getUserId(),

@ -66,7 +66,7 @@
</div> </div>
<div class=rightheat style="display: flex;flex-direction:column;"> <div class=rightheat style="display: flex;flex-direction:column;max-height: 100%;">
<div style="position:relative; top:1%; display: flex;flex-direction:row;justify-content:center;gap:15px"> <div style="position:relative; top:1%; display: flex;flex-direction:row;justify-content:center;gap:15px">
<el-icon color="red" size="30px"> <el-icon color="red" size="30px">
@ -125,15 +125,38 @@
<div class="familystorelist" <div class="familystorelist"
style="margin-top: 20px; display: flex; justify-content: center; flex-direction: column; gap: 10px;"> style="margin-top: 20px; display: flex; justify-content: center; flex-direction: column; gap: 10px;">
<div v-for="(story, index) in checkfamilystories" :key="index" class="familystore" <div v-for="(story, index) in checkfamilystories" :key="index" class="familystore"
style="width: 95%; height: 70px; background-color: rgba(255, 225, 240, 0.7); border-radius: 10%; position: relative;cursor: pointer;" :style="{
@click="checkbypostid(story.postid)"> width: '100%',
<img class="touxiang" src="story.photo" /> maxWidth: '600px',
<div class="familytitle">{{ story.username }}</div> height: '70px',
<div class="familycontent">{{ story.content }}</div> backgroundColor: 'rgba(255, 225, 240, 0.7)',
borderRadius: '10%',
position: 'relative',
cursor: 'pointer',
display: 'flex',
alignItems: 'center',
gap: '10px',
boxSizing: 'border-box'
}">
<img class="touxiang" :src="story.photo"
:style="{
width: '40px',
height: '40px',
borderRadius: '50%',
marginRight: '10px',
float: 'left'
}" />
<div class="familytitle" :style="{ fontWeight: 'bold', fontSize: '1.1em', color: '#333' }">
{{ story.username }}
</div>
<div class="familycontent" :style="{ fontSize: '0.9em', color: '#555' }">
{{ story.content }}
</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
@ -161,7 +184,7 @@
checkPostsindex: 0, checkPostsindex: 0,
checkPosts: [], checkPosts: [],
page: 1, page: 1,
userid: 1, userid:getUserId(),
totalPages: 1, totalPages: 1,
familystoriespage: 0, familystoriespage: 0,
checkfamilystories: [], checkfamilystories: [],
@ -184,6 +207,7 @@
// //
this.loadData(); this.loadData();
}, },

Loading…
Cancel
Save